# CVE-2026-139506: ocfs2: reject inconsistent xattr bucket during defrag

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:35:22.948Z
- **Modified:** 2026-11-30T14:19:26.167Z

## Who should check

- Anyone running Linux \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 63081155c69087310192c722b67c2cb16d0fe078; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< e4f3d9d11e5492a610192199644de4874b816dbd; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< bfe9f0d1221d5b60e1eee15cf37195b4d6f01d4c; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< abb6d65435990a9ba68f19ca9f66fc84d6f96c18; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< ee8f1d6ae1e52f55302ab94ba4fa447fdfb3b966; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< f171a81a29c510d617585be3eed04f05c71a141d; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 2e6afa1a19213848be34c61ed8d88342c831c406; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< bd40b997f04542869afeabe94f2cf1a016fc9bfa
- Anyone running Linux 2.6.28

## Description

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().

## Affected and fixed versions

- Linux: \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 63081155c69087310192c722b67c2cb16d0fe078; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< e4f3d9d11e5492a610192199644de4874b816dbd; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< bfe9f0d1221d5b60e1eee15cf37195b4d6f01d4c; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< abb6d65435990a9ba68f19ca9f66fc84d6f96c18; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< ee8f1d6ae1e52f55302ab94ba4fa447fdfb3b966; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< f171a81a29c510d617585be3eed04f05c71a141d; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 2e6afa1a19213848be34c61ed8d88342c831c406; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< bd40b997f04542869afeabe94f2cf1a016fc9bfa (cvelist)
- Linux: 2.6.28 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139506. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139506.md
Affected: Linux >= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, < 63081155c69087310192c722b67c2cb16d0fe078; >= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, < e4f3d9d11e5492a610192199644de4874b816dbd; >= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, < bfe9f0d1221d5b60e1eee15cf37195b4d6f01d4c; >= 012255961c9ecfe22b7a1df…
Fixed in: Linux 63081155c69087310192c722b67c2cb16d0fe078, Linux 2e6afa1a19213848be34c61ed8d88342c831c406

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139506 being exploited?

There is no confirmed exploitation: CVE-2026-139506 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139506?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139506?

Linux \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 63081155c69087310192c722b67c2cb16d0fe078; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< e4f3d9d11e5492a610192199644de4874b816dbd; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< bfe9f0d1221d5b60e1eee15cf37195b4d6f01d4c; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< abb6d65435990a9ba68f19ca9f66fc84d6f96c18; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< ee8f1d6ae1e52f55302ab94ba4fa447fdfb3b966; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< f171a81a29c510d617585be3eed04f05c71a141d; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 2e6afa1a19213848be34c61ed8d88342c831c406; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< bd40b997f04542869afeabe94f2cf1a016fc9bfa; Linux 2.6.28.

### Is there a fix for CVE-2026-139506?

Yes. Fixed in Linux 63081155c69087310192c722b67c2cb16d0fe078, Linux 2e6afa1a19213848be34c61ed8d88342c831c406. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-139506?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/63081155c69087310192c722b67c2cb16d0fe078>
- other: <https://git.kernel.org/stable/c/e4f3d9d11e5492a610192199644de4874b816dbd>
- other: <https://git.kernel.org/stable/c/bfe9f0d1221d5b60e1eee15cf37195b4d6f01d4c>
- other: <https://git.kernel.org/stable/c/abb6d65435990a9ba68f19ca9f66fc84d6f96c18>
- other: <https://git.kernel.org/stable/c/ee8f1d6ae1e52f55302ab94ba4fa447fdfb3b966>
- other: <https://git.kernel.org/stable/c/f171a81a29c510d617585be3eed04f05c71a141d>
- other: <https://git.kernel.org/stable/c/2e6afa1a19213848be34c61ed8d88342c831c406>
- other: <https://git.kernel.org/stable/c/bd40b997f04542869afeabe94f2cf1a016fc9bfa>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139506>

HTML: <https://flawdb.com/CVE-2026-139506> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139506>
