{"api_version":"1","generated_at":"2026-12-03T05:42:35+00:00","cve":"CVE-2026-142941","urls":{"html":"https://cve.report/CVE-2026-142941","api":"https://cve.report/api/cve/CVE-2026-142941.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142941","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142941"},"summary":{"title":"ocfs2: fix deadlock in inline-data truncate transactions","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:35","updated_at":"2026-12-03 04:18:35"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/1974916a5336c2ae0eca2be35272b5f2c7dc5369","name":"https://git.kernel.org/stable/c/1974916a5336c2ae0eca2be35272b5f2c7dc5369","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7e76e1eae6d60c550f3b3bc949544ed7cc841e3d","name":"https://git.kernel.org/stable/c/7e76e1eae6d60c550f3b3bc949544ed7cc841e3d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/589b8fba927628d2e6ade31f3a1d51f8aa5881dc","name":"https://git.kernel.org/stable/c/589b8fba927628d2e6ade31f3a1d51f8aa5881dc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c204bf5ac3eeb66648904d0374d6f7b84d843aac","name":"https://git.kernel.org/stable/c/c204bf5ac3eeb66648904d0374d6f7b84d843aac","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fac6efd385b6ef1837db55bb245a29aaa805e2be","name":"https://git.kernel.org/stable/c/fac6efd385b6ef1837db55bb245a29aaa805e2be","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1f6e76cd8ec05e45876da0851b5b8b4a01a33d49","name":"https://git.kernel.org/stable/c/1f6e76cd8ec05e45876da0851b5b8b4a01a33d49","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1ad15ef839a9a4f34cd7614944064729b24ccff6","name":"https://git.kernel.org/stable/c/1ad15ef839a9a4f34cd7614944064729b24ccff6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4421c714ad802d8b899924968fd27e4e08af71a2","name":"https://git.kernel.org/stable/c/4421c714ad802d8b899924968fd27e4e08af71a2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142941","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142941","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 85db90e77806d48a19fda77dabe8897d369a1710 589b8fba927628d2e6ade31f3a1d51f8aa5881dc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 85db90e77806d48a19fda77dabe8897d369a1710 fac6efd385b6ef1837db55bb245a29aaa805e2be git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 85db90e77806d48a19fda77dabe8897d369a1710 4421c714ad802d8b899924968fd27e4e08af71a2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 85db90e77806d48a19fda77dabe8897d369a1710 1ad15ef839a9a4f34cd7614944064729b24ccff6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 85db90e77806d48a19fda77dabe8897d369a1710 1f6e76cd8ec05e45876da0851b5b8b4a01a33d49 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 85db90e77806d48a19fda77dabe8897d369a1710 1974916a5336c2ae0eca2be35272b5f2c7dc5369 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 85db90e77806d48a19fda77dabe8897d369a1710 7e76e1eae6d60c550f3b3bc949544ed7cc841e3d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 85db90e77806d48a19fda77dabe8897d369a1710 c204bf5ac3eeb66648904d0374d6f7b84d843aac git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.29","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.29 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/ocfs2/xattr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"589b8fba927628d2e6ade31f3a1d51f8aa5881dc","status":"affected","version":"85db90e77806d48a19fda77dabe8897d369a1710","versionType":"git"},{"lessThan":"fac6efd385b6ef1837db55bb245a29aaa805e2be","status":"affected","version":"85db90e77806d48a19fda77dabe8897d369a1710","versionType":"git"},{"lessThan":"4421c714ad802d8b899924968fd27e4e08af71a2","status":"affected","version":"85db90e77806d48a19fda77dabe8897d369a1710","versionType":"git"},{"lessThan":"1ad15ef839a9a4f34cd7614944064729b24ccff6","status":"affected","version":"85db90e77806d48a19fda77dabe8897d369a1710","versionType":"git"},{"lessThan":"1f6e76cd8ec05e45876da0851b5b8b4a01a33d49","status":"affected","version":"85db90e77806d48a19fda77dabe8897d369a1710","versionType":"git"},{"lessThan":"1974916a5336c2ae0eca2be35272b5f2c7dc5369","status":"affected","version":"85db90e77806d48a19fda77dabe8897d369a1710","versionType":"git"},{"lessThan":"7e76e1eae6d60c550f3b3bc949544ed7cc841e3d","status":"affected","version":"85db90e77806d48a19fda77dabe8897d369a1710","versionType":"git"},{"lessThan":"c204bf5ac3eeb66648904d0374d6f7b84d843aac","status":"affected","version":"85db90e77806d48a19fda77dabe8897d369a1710","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ocfs2/xattr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.29"},{"lessThan":"2.6.29","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"2.6.29","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"2.6.29","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"2.6.29","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"2.6.29","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"2.6.29","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"2.6.29","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"2.6.29","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"2.6.29","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:26:10.966Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142941","datePublished":"2026-12-03T03:26:10.966Z","dateReserved":"2026-12-03T03:10:28.338Z","dateUpdated":"2026-12-03T03:26:10.966Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:35","lastModifiedDate":"2026-12-03 04:18:35","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142941","Ordinal":"1","Title":"ocfs2: fix deadlock in inline-data truncate transactions","CVE":"CVE-2026-142941","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142941","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"ocfs2: fix deadlock in inline-data truncate transactions"}]}}}