{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-142941","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.338Z","datePublished":"2026-12-03T03:26:10.966Z","dateUpdated":"2026-12-03T03:26:10.966Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-03T03:26:10.966Z"},"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":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/xattr.c"],"versions":[{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"589b8fba927628d2e6ade31f3a1d51f8aa5881dc","status":"affected","versionType":"git"},{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"fac6efd385b6ef1837db55bb245a29aaa805e2be","status":"affected","versionType":"git"},{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"4421c714ad802d8b899924968fd27e4e08af71a2","status":"affected","versionType":"git"},{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"1ad15ef839a9a4f34cd7614944064729b24ccff6","status":"affected","versionType":"git"},{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"1f6e76cd8ec05e45876da0851b5b8b4a01a33d49","status":"affected","versionType":"git"},{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"1974916a5336c2ae0eca2be35272b5f2c7dc5369","status":"affected","versionType":"git"},{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"7e76e1eae6d60c550f3b3bc949544ed7cc841e3d","status":"affected","versionType":"git"},{"version":"85db90e77806d48a19fda77dabe8897d369a1710","lessThan":"c204bf5ac3eeb66648904d0374d6f7b84d843aac","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/xattr.c"],"versions":[{"version":"2.6.29","status":"affected"},{"version":"0","lessThan":"2.6.29","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/589b8fba927628d2e6ade31f3a1d51f8aa5881dc"},{"url":"https://git.kernel.org/stable/c/fac6efd385b6ef1837db55bb245a29aaa805e2be"},{"url":"https://git.kernel.org/stable/c/4421c714ad802d8b899924968fd27e4e08af71a2"},{"url":"https://git.kernel.org/stable/c/1ad15ef839a9a4f34cd7614944064729b24ccff6"},{"url":"https://git.kernel.org/stable/c/1f6e76cd8ec05e45876da0851b5b8b4a01a33d49"},{"url":"https://git.kernel.org/stable/c/1974916a5336c2ae0eca2be35272b5f2c7dc5369"},{"url":"https://git.kernel.org/stable/c/7e76e1eae6d60c550f3b3bc949544ed7cc841e3d"},{"url":"https://git.kernel.org/stable/c/c204bf5ac3eeb66648904d0374d6f7b84d843aac"}],"title":"ocfs2: fix deadlock in inline-data truncate transactions","x_generator":{"engine":"bippy-1.2.0"}}}}