CVE-2026-142941

Not scored yetLast modified Dec 3, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: fix deadlock in inline-data truncate transactions

Updating an inode xattr can cause an ABBA deadlock with inline file truncation:

ocfs2_truncate_file() down_write(&oi->ip_alloc_sem) ocfs2_truncate_inline() ocfs2_start_trans()

ocfs2_xattr_set() ocfs2_start_trans() ocfs2_xattr_ibody_set() down_write(&oi->ip_alloc_sem)

The xattr set path starts the merged transaction before the inode-body xattr helper acquires ip_alloc_sem, reversing the ip_alloc_sem -> transaction order used by the allocation and truncate paths. The transaction merge in commit 85db90e77806 ("ocfs2/xattr: Merge xattr set transaction.") introduced this ordering.

Fix it by acquiring ip_alloc_sem once in ocfs2_xattr_set(), before xattr preparation, allocation reservations and ocfs2_start_trans(), and removing the per-helper acquisition from ocfs2_xattr_ibody_find(), ocfs2_xattr_ibody_set() and ocfs2_xattr_create_index_block(). These helpers now assert via lockdep that the caller holds ip_alloc_sem.

ocfs2_xattr_set_handle(), which only sets initial ACL or security xattrs on unpublished inodes inside the create transaction, takes ip_alloc_sem under a dedicated lockdep subclass so that the assertions hold without creating a transaction -> ip_alloc_sem cycle against the ip_alloc_sem -> transaction order. The inode is unpublished, so the acquisition can never contend.

This keeps the established ip_alloc_sem -> transaction order and makes the locking unconditional, so lockdep can verify a single plain ordering instead of conditional acquisitions.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142942In the Linux kernel, the following vulnerability has been resolved: bpf: Destroy callee-local dynptrs on subprog return A data slice is vaCVE-2026-142943In the Linux kernel, the following vulnerability has been resolved: ASoC: amd: acp3x-es83xx: Keep an owned codec device reference acpi_getCVE-2026-142944In the Linux kernel, the following vulnerability has been resolved: ASoC: amd: acp-es8336: Use an owned codec device reference acpi_get_fiCVE-2026-142945In the Linux kernel, the following vulnerability has been resolved: ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device() RCVE-2026-142946In the Linux kernel, the following vulnerability has been resolved: ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device() RepCVE-2026-142947In the Linux kernel, the following vulnerability has been resolved: cxl/core: Skip einj_inject creation when devm_add_action_or_reset() faiCVE-2026-142948In the Linux kernel, the following vulnerability has been resolved: i2c: designware: queue only one read command for block reads i2c_dw_xfCVE-2026-142949In the Linux kernel, the following vulnerability has been resolved: tcp: fix NULL pointer dereference when restarting a Fast Open listener CVE-2026-142950In the Linux kernel, the following vulnerability has been resolved: nvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsystem() CoCVE-2026-142951In the Linux kernel, the following vulnerability has been resolved: sctp: fix skb_over_panic when adding addresses with a pending delete ofCVE-2026-142952In the Linux kernel, the following vulnerability has been resolved: accel/ivpu: Defer recovery until probe completes An error IRQ that firCVE-2026-142953In the Linux kernel, the following vulnerability has been resolved: gpio: mpsse: reject bulk-in endpoints smaller than 3 bytes mpsse_read(
CVE-2026-142941: Unscored | Vulnix