{"id":"CVE-2026-139506","summary":"ocfs2: reject inconsistent xattr bucket during defrag","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: reject inconsistent xattr bucket during defrag\n\nocfs2_defrag_xattr_bucket() has two mlog_bug_on_msg() checks that assume\nthe name/value pairs in a bucket are disjoint and that xh_free_start is\nnot below the compacted region.\n\nocfs2_validate_xattr_bucket() only checks each entry in isolation, so a\ncorrupt bucket holding overlapping entries, or one with an inflated\nxh_free_start, passes validation and then hits BUG() in defrag when a\nsetxattr triggers it.\n\nDefrag works on a linear copy of the bucket and does not touch the real\nblocks before the copy back, so the checks can return an error instead of\ncalling BUG().","modified":"2026-12-01T21:02:38.685504897Z","published":"2026-11-30T13:35:22.948Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139506.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2e6afa1a19213848be34c61ed8d88342c831c406"},{"type":"WEB","url":"https://git.kernel.org/stable/c/63081155c69087310192c722b67c2cb16d0fe078"},{"type":"WEB","url":"https://git.kernel.org/stable/c/abb6d65435990a9ba68f19ca9f66fc84d6f96c18"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bd40b997f04542869afeabe94f2cf1a016fc9bfa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bfe9f0d1221d5b60e1eee15cf37195b4d6f01d4c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e4f3d9d11e5492a610192199644de4874b816dbd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ee8f1d6ae1e52f55302ab94ba4fa447fdfb3b966"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f171a81a29c510d617585be3eed04f05c71a141d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139506.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139506"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"012255961c9ecfe22b7a1df47ac26ab37818cb1e"},{"fixed":"63081155c69087310192c722b67c2cb16d0fe078"},{"fixed":"e4f3d9d11e5492a610192199644de4874b816dbd"},{"fixed":"bfe9f0d1221d5b60e1eee15cf37195b4d6f01d4c"},{"fixed":"abb6d65435990a9ba68f19ca9f66fc84d6f96c18"},{"fixed":"ee8f1d6ae1e52f55302ab94ba4fa447fdfb3b966"},{"fixed":"f171a81a29c510d617585be3eed04f05c71a141d"},{"fixed":"2e6afa1a19213848be34c61ed8d88342c831c406"},{"fixed":"bd40b997f04542869afeabe94f2cf1a016fc9bfa"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139506.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.28"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139506.json"}}],"schema_version":"1.9.2"}