Background
CVE-2026-139080 is a Linux kernel vulnerability in the OCFS2 (Oracle Cluster File System version 2) driver, specifically inside the extended attribute (xattr) subsystem under fs/ocfs2/xattr.c. The flaw is classified by upstream as ocfs2: reject inconsistent local xattr entries and is reached through ordinary VFS attribute operations rather than through any exotic interface.
What the bug actually is
OCFS2 stores xattr entries in two layouts: local/inline, where the value lives inside the metadata entry and is bounded by OCFS2_XATTR_INLINE_SIZE, and non-local, where the value lives in a separate region whose length is described by xe_value_size. The bug is a semantic invariant violation: an entry can carry OCFS2_XATTR_ENTRY_LOCAL while keeping a xe_value_size that exceeds OCFS2_XATTR_INLINE_SIZE.
The helper namevalue_size_xe() (fs/ocfs2/xattr.c:231) assumes those two properties are mutually consistent. Existing metadata validation only checks whether a value fits inside its declared storage region; it never checks whether the local flag is consistent with the declared value size. As a result, a malformed entry can be cached, traverse lookup and bucket-maintenance paths, and reach namevalue_size_xe(), where it fires the BUG_ON and aborts the kernel:
kernel BUG at fs/ocfs2/xattr.c:231!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
RIP: 0010:namevalue_size_xe fs/ocfs2/xattr.c:231 [inline]
RIP: 0010:ocfs2_xa_block_wipe_namevalue+0x2e4/0x330 fs/ocfs2/xattr.c:1638
The supplied call trace reaches the assertion through a fully standard VFS path: do_sys_openat2() → path_openat() → handle_truncate() → do_truncate() → notify_change() → setattr_prepare() → security_inode_killpriv() → vfs_removexattr() → ocfs2_xattr_security_set() → ocfs2_xattr_set() → ocfs2_xattr_set_handle() → ocfs2_xattr_ibody_set() → ocfs2_xa_set() → ocfs2_xa_remove() → ocfs2_xa_remove_entry() → ocfs2_xa_wipe_namevalue() → ocfs2_xa_block_wipe_namevalue() → namevalue_size_xe(). In other words, simply opening an OCFS2 inode for truncation, when that inode already contains a malformed xattr entry, is sufficient to crash the host.
Impact profile
The observable effect is an Oops: invalid opcode triggered by an assertion. In the worst case the host panics; there is no indication in the trace or advisory of out-of-bounds memory access, controlled write, or information disclosure. KASAN was enabled in the reporter's environment, but the abort is assertion-based rather than a KASAN redzone hit, which is consistent with a logic-invariant failure rather than memory corruption. The practical impact is therefore availability only.
Affected systems
- Product: Linux kernel, OCFS2 filesystem driver (
fs/ocfs2/)
- Affected component: extended attribute code in
fs/ocfs2/xattr.c, includingnamevalue_size_xe(),ocfs2_xa_block_wipe_namevalue(),ocfs2_xa_wipe_namevalue(),ocfs2_xa_remove_entry(),ocfs2_xa_remove(),ocfs2_xa_set(),ocfs2_xattr_ibody_set(),__ocfs2_xattr_set_handle(),ocfs2_xattr_set(), andocfs2_xattr_security_set().
- Affected deployments: hosts that mount or operate on OCFS2 volumes containing the inconsistent local xattr entry. OCFS2 is a clustered filesystem used mainly in Oracle RAC/Clusterware-style deployments and similar multi-node shared-storage setups, which narrows the exposed population relative to ext4 or XFS.
- Affected kernel versions: the supplied sources do not enumerate specific vulnerable or fixed kernel versions and do not provide an upstream commit hash. Operators must verify against their distribution's kernel advisory for CVE-2026-139080 whether their build contains the upstream fix.
- CVSS / exploitation data: no CVSS base score or vector is published, no exploit code is on record, and the CVE is not listed on the CISA Known Exploited Vulnerabilities catalog.
Trigger prerequisites
The crash requires an inconsistent OCFS2 xattr entry on disk. Realistic delivery channels include a deliberately crafted OCFS2 image mounted (or loop-mounted) by a privileged party, a corrupted entry on an already-deployed OCFS2 volume, or an untrusted shared OCFS2 cluster volume. Unprivileged users cannot create this state through the standard VFS xattr API; the local/value-size coupling is maintained by OCFS2's own writers. Detonation then occurs during a routine attribute operation such as opening a file for truncation.
Mitigation
The upstream resolution is titled ocfs2: reject inconsistent local xattr entries and does three things:
- Adds the missing local/value-size invariant check inside the existing flat and bucket metadata validators.
- Applies the same check before accepting matched entries and before traversing bucket entries on any path that calls
namevalue_size_xe().
- Returns an OCFS2 corruption error in place of the assertion.
That last point matters operationally: after the fix, a malformed image produces a clean corruption rejection instead of a host panic — converting a kernel crash into a recoverable per-file error.
For organizations unable to patch immediately, the practical defensive posture is to treat OCFS2 images from outside administrative control as untrusted input and avoid mounting them on production hosts, to avoid OCFS2 for any image-processing or upload-handling workload where the image content is attacker-influenced, and to ensure that the ability to mount OCFS2 is restricted to trusted administrators. KASAN-instrumented kernels and OCFS2 metadata fuzzing corpora remain an effective way to surface residual variants in the same code area.
Detection is straightforward: alerting on kernel logs containing kernel BUG at fs/ocfs2/xattr.c, namevalue_size_xe, ocfs2_xa_block_wipe_namevalue, or ocfs2_xattr_security_set, especially when paired with a preceding truncate/open on an OCFS2 path, is a strong indicator of this issue or a closely related OCFS2 xattr defect.