{"id":"CVE-2026-139506","aliases":["CVE-2026-139506"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2: reject inconsistent xattr bucket during defrag","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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().","source":"cvelist"}],"published":"2026-11-30T13:35:22.948Z","modified":"2026-11-30T14:19:26.167Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","fixed":"63081155c69087310192c722b67c2cb16d0fe078","status":"affected"},{"type":"git","introduced":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","fixed":"e4f3d9d11e5492a610192199644de4874b816dbd","status":"affected"},{"type":"git","introduced":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","fixed":"bfe9f0d1221d5b60e1eee15cf37195b4d6f01d4c","status":"affected"},{"type":"git","introduced":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","fixed":"abb6d65435990a9ba68f19ca9f66fc84d6f96c18","status":"affected"},{"type":"git","introduced":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","fixed":"ee8f1d6ae1e52f55302ab94ba4fa447fdfb3b966","status":"affected"},{"type":"git","introduced":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","fixed":"f171a81a29c510d617585be3eed04f05c71a141d","status":"affected"},{"type":"git","introduced":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","fixed":"2e6afa1a19213848be34c61ed8d88342c831c406","status":"affected"},{"type":"git","introduced":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","fixed":"bd40b997f04542869afeabe94f2cf1a016fc9bfa","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.28","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.28","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/63081155c69087310192c722b67c2cb16d0fe078","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e4f3d9d11e5492a610192199644de4874b816dbd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bfe9f0d1221d5b60e1eee15cf37195b4d6f01d4c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/abb6d65435990a9ba68f19ca9f66fc84d6f96c18","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ee8f1d6ae1e52f55302ab94ba4fa447fdfb3b966","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f171a81a29c510d617585be3eed04f05c71a141d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e6afa1a19213848be34c61ed8d88342c831c406","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd40b997f04542869afeabe94f2cf1a016fc9bfa","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139506","url":"https://www.cve.org/CVERecord?id=CVE-2026-139506","licence":"CVE Terms of Use","modified":"2026-11-30T13:35:22.948Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139506","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139506","licence":"Public domain","modified":"2026-11-30T14:19:26.167Z"}],"updatedAt":"2026-11-30T14:33:07.577Z","epss":{"score":0.00211,"percentile":0.12066,"date":"2026-12-01T12:00:22.000Z"}}