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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-11-30T13:35:22.948Z
- Modified: 2026-11-30T14:19:26.167Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 012255961c9ecfe22b7a1df47ac26ab37818cb1e before 63081155c69087310192c722b67c2cb16d0fe078; from 012255961c9ecfe22b7a1df47ac26ab37818cb1e before e4f3d9d11e5492a610192199644de4874b816dbd; from 012255961c9ecfe22b7a1df47ac26ab37818cb1e before bfe9f0d1221d5b60e1eee15cf37195b4d6f01d4c; from 012255961c9ecfe22b7a1df47ac26ab37818cb1e before abb6d65435990a9ba68f19ca9f66fc84d6f96c18; from 012255961c9ecfe22b7a1df47ac26ab37818cb1e before ee8f1d6ae1e52f55302ab94ba4fa447fdfb3b966; from 012255961c9ecfe22b7a1df47ac26ab37818cb1e before f171a81a29c510d617585be3eed04f05c71a141d; from 012255961c9ecfe22b7a1df47ac26ab37818cb1e before 2e6afa1a19213848be34c61ed8d88342c831c406; from 012255961c9ecfe22b7a1df47ac26ab37818cb1e before bd40b997f04542869afeabe94f2cf1a016fc9bfa; 2.6.28 (not affected: before 2.6.28; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <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>

## Sources

- CVE List: [CVE-2026-139506](https://www.cve.org/CVERecord?id=CVE-2026-139506), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139506](https://nvd.nist.gov/vuln/detail/CVE-2026-139506), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139506 · Whole record: https://cve.day/CVE-2026-139506.json · Rebuilt by cve.day 2026-11-30T14:33:07.577Z
