{"id":"CVE-2026-142941","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T04:18:35.653","lastModified":"2026-12-03T04:18:35.653","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix deadlock in inline-data truncate transactions\n\nUpdating an inode xattr can cause an ABBA deadlock with inline file\ntruncation:\n\n  ocfs2_truncate_file()\n    down_write(&oi->ip_alloc_sem)\n    ocfs2_truncate_inline()\n      ocfs2_start_trans()\n\n  ocfs2_xattr_set()\n    ocfs2_start_trans()\n    ocfs2_xattr_ibody_set()\n      down_write(&oi->ip_alloc_sem)\n\nThe xattr set path starts the merged transaction before the inode-body\nxattr helper acquires ip_alloc_sem, reversing the ip_alloc_sem ->\ntransaction order used by the allocation and truncate paths.  The\ntransaction merge in commit 85db90e77806 (\"ocfs2/xattr: Merge xattr set\ntransaction.\") introduced this ordering.\n\nFix it by acquiring ip_alloc_sem once in ocfs2_xattr_set(), before xattr\npreparation, allocation reservations and ocfs2_start_trans(), and removing\nthe per-helper acquisition from ocfs2_xattr_ibody_find(),\nocfs2_xattr_ibody_set() and ocfs2_xattr_create_index_block().  These\nhelpers now assert via lockdep that the caller holds ip_alloc_sem.\n\nocfs2_xattr_set_handle(), which only sets initial ACL or security xattrs\non unpublished inodes inside the create transaction, takes ip_alloc_sem\nunder a dedicated lockdep subclass so that the assertions hold without\ncreating a transaction -> ip_alloc_sem cycle against the ip_alloc_sem ->\ntransaction order.  The inode is unpublished, so the acquisition can never\ncontend.\n\nThis keeps the established ip_alloc_sem -> transaction order and makes the\nlocking unconditional, so lockdep can verify a single plain ordering\ninstead of conditional acquisitions."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["fs/ocfs2/xattr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"589b8fba927628d2e6ade31f3a1d51f8aa5881dc","versionType":"git","status":"affected"},{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"fac6efd385b6ef1837db55bb245a29aaa805e2be","versionType":"git","status":"affected"},{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"4421c714ad802d8b899924968fd27e4e08af71a2","versionType":"git","status":"affected"},{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"1ad15ef839a9a4f34cd7614944064729b24ccff6","versionType":"git","status":"affected"},{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"1f6e76cd8ec05e45876da0851b5b8b4a01a33d49","versionType":"git","status":"affected"},{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"1974916a5336c2ae0eca2be35272b5f2c7dc5369","versionType":"git","status":"affected"},{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"7e76e1eae6d60c550f3b3bc949544ed7cc841e3d","versionType":"git","status":"affected"},{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"c204bf5ac3eeb66648904d0374d6f7b84d843aac","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["fs/ocfs2/xattr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"2.6.29","status":"affected"},{"version":"0","lessThan":"2.6.29","versionType":"semver","status":"unaffected"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/1974916a5336c2ae0eca2be35272b5f2c7dc5369","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/1ad15ef839a9a4f34cd7614944064729b24ccff6","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/1f6e76cd8ec05e45876da0851b5b8b4a01a33d49","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/4421c714ad802d8b899924968fd27e4e08af71a2","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/589b8fba927628d2e6ade31f3a1d51f8aa5881dc","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/7e76e1eae6d60c550f3b3bc949544ed7cc841e3d","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c204bf5ac3eeb66648904d0374d6f7b84d843aac","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/fac6efd385b6ef1837db55bb245a29aaa805e2be","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}