Skip to main content
Menu
CVEs

Linux kernel crash from inconsistent xattr entries in OCFS2

Affects Linux kernel versions before 7.3.6 when a mounted OCFS2 image contains a malformed local xattr entry. Fixed in 7.3.6.

CVE-2026-139080EUVD-2026-138633GHSA-2FPW-M2J2-HQQJPublished November 30, 2026, updated

7.1HighCNA
Exploited
No known exploitation
Fix
Vendor patch: 415ad9147484a9994ad7963c46aaf56e14dd3b49
Who is exposed
Specific setups only

Summary

Written by a model

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

ocfs2: reject inconsistent local xattr entries

[BUG] A corrupt OCFS2 xattr entry can set OCFS2_XATTR_ENTRY_LOCAL while keeping xe_value_size larger than OCFS2_XATTR_INLINE_SIZE. When that entry reaches namevalue_size_xe(), the filesystem hits its BUG_ON:

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 Call Trace: ocfs2_xa_wipe_namevalue fs/ocfs2/xattr.c:1470 [inline] ocfs2_xa_remove_entry+0xae/0x1d0 fs/ocfs2/xattr.c:1941 ocfs2_xa_remove fs/ocfs2/xattr.c:2043 [inline] ocfs2_xa_set+0x11a8/0x30a0 fs/ocfs2/xattr.c:2247 ocfs2_xattr_ibody_set+0x302/0xc50 fs/ocfs2/xattr.c:2795 __ocfs2_xattr_set_handle+0x7e6/0xdb0 fs/ocfs2/xattr.c:3416 ocfs2_xattr_set+0x1447/0x2610 fs/ocfs2/xattr.c:3650 ocfs2_xattr_security_set+0x37/0x50 fs/ocfs2/xattr.c:7241 __vfs_removexattr+0x14d/0x1d0 fs/xattr.c:518 cap_inode_killpriv+0x29/0x50 security/commoncap.c:355 security_inode_killpriv+0x105/0x220 security/security.c:2724 setattr_prepare+0x147/0x8a0 fs/attr.c:219 ocfs2_setattr+0x504/0x1fd0 fs/ocfs2/file.c:1148 notify_change+0x4b5/0x1030 fs/attr.c:546 do_truncate+0x1d2/0x230 fs/open.c:68 handle_truncate fs/namei.c:3596 [inline] do_open fs/namei.c:3979 [inline] path_openat+0x260f/0x2ce0 fs/namei.c:4134 do_filp_open+0x1f6/0x430 fs/namei.c:4161 do_sys_openat2+0x117/0x1c0 fs/open.c:1437 ...

[CAUSE] namevalue_size_xe() assumes that local entries contain an inline value no larger than OCFS2_XATTR_INLINE_SIZE. Existing xattr metadata validation only checks whether the value fits the storage region, and cached entries can reach lookup and bucket maintenance paths without a semantic check. A corrupt entry can therefore be passed to namevalue_size_xe().

[FIX] Validate the local/value-size invariant in the existing flat and bucket metadata validators and before accepting matched entries or traversing bucket entries in paths that call namevalue_size_xe(). Return an OCFS2 corruption error instead of firing the assertion.

Who should check

Teams running Linux kernels with OCFS2 filesystem support, especially those that mount OCFS2 images from untrusted sources. Check any kernel built with ocfs2 enabled.

“a victim mounts the crafted OCFS2 image through ocfs2_fill_super()”

cve.org

What to do

  1. Check whether your setup matches what the bug needs.

    A crafted or corrupted OCFS2 image with an on-disk local xattr entry whose value size is over 80 bytes. The corrupt image must be mounted on the affected system.
  2. Apply the vendor's patch: 415ad9147484a9994ad7963c46aaf56e14dd3b49.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-139080 (ocfs2: reject inconsistent local xattr entries), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-139080 (entry last updated 2026-12-02):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 2.6.34
Vendor patches: 415ad9147484a9994ad7963c46aaf56e14dd3b49 (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1d1bcc50465e24d999bfecc539753d0820ddfcc2). Check each asset for these patch ids, not only its version.
Conditions (all must be true for the bug to be hit):
- A crafted or corrupted OCFS2 image with an on-disk local xattr entry whose value size is over 80 bytes. (source: https://www.cve.org/CVERecord?id=CVE-2026-139080)
- The corrupt image must be mounted on the affected system. (source: https://www.cve.org/CVERecord?id=CVE-2026-139080)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: local access, no login, a user action.
CISA KEV: CVE-2026-139080 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-139080 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/1d1bcc50465e24d999bfecc539753d0820ddfcc2
- https://git.kernel.org/stable/c/415ad9147484a9994ad7963c46aaf56e14dd3b49
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1d1bcc50465e24d999bfecc539753d0820ddfcc2
- https://www.cve.org/CVERecord?id=CVE-2026-139080
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-139080
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-139080"}.

Affected versions

cve.now Index

32Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure5/25Specific setups only
  • Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
  • Severity7.1/10CVSS 7.1
  • No patch0/5No signal

What would change the score

  • Would score about 82 if added to CISA KEV
  • Would score about 77 if CISA's SSVC rates exploitation active
  • Would score about 42 if CISA's SSVC rates it automatable

Timeline

  1. CVE published
  2. First seen by cve.now1 day
  3. Posted on X by cve.now1 day
  4. Record last updated

Evidence 4

Questions about CVE-2026-139080

Is CVE-2026-139080 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

Removing or replacing the bad extended attribute entry can trigger a kernel BUG crash, which can hang the OCFS2 volume or panic the node. A removal followed by a getxattr call can also copy up to about one block of unrelated kernel memory to userspace.

Source: cve.org, git.kernel.org

Which versions are affected by CVE-2026-139080?

Linux: version 2.6.34.

Source: cve.now feed data

Am I affected, and how do I check?

Linux kernel versions before 7.3.6 are affected. The setup involves a crafted or corrupted OCFS2 image with an on-disk local xattr entry whose value size is over 80 bytes, mounted on the system. To check, run uname -r for the kernel version and findmnt -t ocfs2 to see whether any OCFS2 volumes are mounted.

Source: cve.org, git.kernel.org

How do I fix CVE-2026-139080?

Upgrade the Linux kernel to 7.3.6 or later. The fix is upstream commit 415ad9147484a9994ad7963c46aaf56e14dd3b49, which validates the local/value-size invariant in the flat and bucket metadata validators.

Source: cve.org, git.kernel.org

No corrections so far. Something wrong on this page? Report an error.