ocfs2: reject inconsistent xattr bucket during defrag
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The Linux kernel ocfs2 filesystem driver, from version 2.6.28, can hit a BUG() in ocfs2_defrag_xattr_bucket() when an xattr bucket holds overlapping name/value entries or an inflated xh_free_start. The bucket validation checks each entry in isolation and accepts such corrupt data, so a setxattr operation that triggers defragmentation can crash the kernel. An attacker needs to be able to corrupt the on-disk bucket.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
In the Linux kernel, the following vulnerability has been resolved: ocfs2: reject inconsistent xattr bucket during defrag ocfs2_defrag_xattr_bucket() has two mlog_bug_on_msg() checks that assume the name/value pairs in a bucket are disjoint and that xh_free_start is not below the compacted region. ocfs2_validate_xattr_bucket() only checks each entry in isolation, so a corrupt bucket holding overlapping entries, or one with an inflated xh_free_start, passes validation and then hits BUG() in defrag when a setxattr triggers it. Defrag works on a linear copy of the bucket and does not touch the real blocks before the copy back, so the checks can return an error instead of calling BUG().
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 2.6.28 and later | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1 | Patch available | CNA |
- Linux VendorLinux Affected 2.6.28 and later Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1 Patch available CNA
Remediation
The Linux kernel fixes this in versions 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 and 7.4-rc1. Defrag now returns an error instead of calling BUG() when the bucket is inconsistent.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139506
- 2026-11-30 Alias added: GHSA-p44w-m5mr-xcpq
References
Other 8
- https://git.kernel.org/stable/c/63081155c69087310192c722b67c2cb16d0fe078
- https://git.kernel.org/stable/c/e4f3d9d11e5492a610192199644de4874b816dbd
- https://git.kernel.org/stable/c/bfe9f0d1221d5b60e1eee15cf37195b4d6f01d4c
- https://git.kernel.org/stable/c/abb6d65435990a9ba68f19ca9f66fc84d6f96c18
- https://git.kernel.org/stable/c/ee8f1d6ae1e52f55302ab94ba4fa447fdfb3b966
- https://git.kernel.org/stable/c/f171a81a29c510d617585be3eed04f05c71a141d
- https://git.kernel.org/stable/c/2e6afa1a19213848be34c61ed8d88342c831c406
- https://git.kernel.org/stable/c/bd40b997f04542869afeabe94f2cf1a016fc9bfa
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-139506 · CVE Program
- CVE-2026-139506 · NVD
- GHSA-p44w-m5mr-xcpq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences