{"api_version":"1","generated_at":"2026-11-30T18:38:08+00:00","cve":"CVE-2026-139507","urls":{"html":"https://cve.report/CVE-2026-139507","api":"https://cve.report/api/cve/CVE-2026-139507.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139507","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139507"},"summary":{"title":"ocfs2: allow xattr bucket entries to span multiple blocks","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: allow xattr bucket entries to span multiple blocks\n\nPatch series \"ocfs2: xattr bucket validation fixes\", v2.\n\nThis series fixes two problems around xattr bucket validation.\n\nPatch 1 fixes a false-corruption failure on blocksize-512 volumes: the\nbucket validator limited the entry array to the first bucket block while\nthe write path stores entries across the whole 4096-byte bucket region, so\na legitimately written, fsck-clean bucket could be rejected and force the\nfilesystem read-only.  It also adds an alignment check on the bucket block\nnumber, since the entry array is accessed as one contiguous region and a\ncorrupted xattr tree could otherwise point a bucket at blocks straddling a\npage boundary.\n\nPatch 2 converts two mlog_bug_on_msg() checks in the bucket defrag path to\nocfs2_error() returns, so that a corrupt bucket holding overlapping\nentries or an inflated xh_free_start marks the filesystem read-only and\nfails the setxattr instead of panicking the kernel.\n\nBoth patches have been tested in QEMU: the blocksize-512 reproducer (40\nxattrs with 100-byte values, previously failing with \"entry count 32\nexceeds maximum 31\") now passes with a clean fsck.ocfs2 result, and the\nocfs2 testsuite xattr tests pass 48/48 across blocksize combinations.\n\n\nThis patch (of 2):\n\nocfs2_validate_xattr_bucket() limits the entry array to the first bucket\nblock, but the write path stores entries across the whole\nOCFS2_XATTR_BUCKET_SIZE region.  With 512-byte blocks a bucket spans eight\nblocks, and a bucket filled with small xattrs places its last entries past\noffset 512.  Reading such a bucket back errors out:\n\n  OCFS2: ERROR (device loop0): ocfs2_validate_xattr_bucket: Invalid xattr bucket 86072: entry count 32 exceeds maximum 31\n  On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted.\n  OCFS2: File system is now read-only.\n\nThis is reproducible by setting ~33 xattrs with 100-byte values on a file\non a blocksize-512 volume; fsck.ocfs2 reports the resulting image clean.\n\nCheck the entry count against the full bucket region instead.  The\nper-block bounds checks for names and values stay as they are, since\nocfs2_bucket_align_free_start() keeps each name+value pair within a single\nblock.\n\nThe entry array is one contiguous region, so a bucket from a corrupted\nxattr tree whose first block is not aligned to OCFS2_XATTR_BUCKET_SIZE\ncould straddle a page and make the validation loop read out of bounds. \nBuckets allocated within clusters are always aligned, so reject any other\nblock number while validating.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:26","updated_at":"2026-11-30 14:19:26"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/13745a6cc1f82f88365fb06a5590eba35e79cfab","name":"https://git.kernel.org/stable/c/13745a6cc1f82f88365fb06a5590eba35e79cfab","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a0ab8943a115e5806d64fc81af0b939dbf2575e6","name":"https://git.kernel.org/stable/c/a0ab8943a115e5806d64fc81af0b939dbf2575e6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/78cce2082d22d3c56bd3a6146ef0dcf7cd661a33","name":"https://git.kernel.org/stable/c/78cce2082d22d3c56bd3a6146ef0dcf7cd661a33","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4b0adafbb676900ffa674306c4325ee7f4837f2f","name":"https://git.kernel.org/stable/c/4b0adafbb676900ffa674306c4325ee7f4837f2f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139507","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139507","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dc5778dbd0b6c411107a0e37e913a94b3c2f2728 13745a6cc1f82f88365fb06a5590eba35e79cfab git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ee4ef26927e967ea699b3f0d7ecf97ce044fbc79 a0ab8943a115e5806d64fc81af0b939dbf2575e6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2cf82b46d5e43be0dfbaac7fa1073cec2fc1f5e6 4b0adafbb676900ffa674306c4325ee7f4837f2f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2cf82b46d5e43be0dfbaac7fa1073cec2fc1f5e6 78cce2082d22d3c56bd3a6146ef0dcf7cd661a33 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9f4129b6905b7d638bbc9eb8013c3989cbe30b7e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6.160 6.6.163 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.12.114 6.12.119 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.2.6 7.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.3","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/ocfs2/xattr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"13745a6cc1f82f88365fb06a5590eba35e79cfab","status":"affected","version":"dc5778dbd0b6c411107a0e37e913a94b3c2f2728","versionType":"git"},{"lessThan":"a0ab8943a115e5806d64fc81af0b939dbf2575e6","status":"affected","version":"ee4ef26927e967ea699b3f0d7ecf97ce044fbc79","versionType":"git"},{"lessThan":"4b0adafbb676900ffa674306c4325ee7f4837f2f","status":"affected","version":"2cf82b46d5e43be0dfbaac7fa1073cec2fc1f5e6","versionType":"git"},{"lessThan":"78cce2082d22d3c56bd3a6146ef0dcf7cd661a33","status":"affected","version":"2cf82b46d5e43be0dfbaac7fa1073cec2fc1f5e6","versionType":"git"},{"status":"affected","version":"9f4129b6905b7d638bbc9eb8013c3989cbe30b7e","versionType":"git"},{"lessThan":"6.6.163","status":"affected","version":"6.6.160","versionType":"semver"},{"lessThan":"6.12.119","status":"affected","version":"6.12.114","versionType":"semver"},{"lessThan":"7.3","status":"affected","version":"7.2.6","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ocfs2/xattr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.3"},{"lessThan":"7.3","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"6.6.160","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"6.12.114","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"7.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2.6","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: allow xattr bucket entries to span multiple blocks\n\nPatch series \"ocfs2: xattr bucket validation fixes\", v2.\n\nThis series fixes two problems around xattr bucket validation.\n\nPatch 1 fixes a false-corruption failure on blocksize-512 volumes: the\nbucket validator limited the entry array to the first bucket block while\nthe write path stores entries across the whole 4096-byte bucket region, so\na legitimately written, fsck-clean bucket could be rejected and force the\nfilesystem read-only.  It also adds an alignment check on the bucket block\nnumber, since the entry array is accessed as one contiguous region and a\ncorrupted xattr tree could otherwise point a bucket at blocks straddling a\npage boundary.\n\nPatch 2 converts two mlog_bug_on_msg() checks in the bucket defrag path to\nocfs2_error() returns, so that a corrupt bucket holding overlapping\nentries or an inflated xh_free_start marks the filesystem read-only and\nfails the setxattr instead of panicking the kernel.\n\nBoth patches have been tested in QEMU: the blocksize-512 reproducer (40\nxattrs with 100-byte values, previously failing with \"entry count 32\nexceeds maximum 31\") now passes with a clean fsck.ocfs2 result, and the\nocfs2 testsuite xattr tests pass 48/48 across blocksize combinations.\n\n\nThis patch (of 2):\n\nocfs2_validate_xattr_bucket() limits the entry array to the first bucket\nblock, but the write path stores entries across the whole\nOCFS2_XATTR_BUCKET_SIZE region.  With 512-byte blocks a bucket spans eight\nblocks, and a bucket filled with small xattrs places its last entries past\noffset 512.  Reading such a bucket back errors out:\n\n  OCFS2: ERROR (device loop0): ocfs2_validate_xattr_bucket: Invalid xattr bucket 86072: entry count 32 exceeds maximum 31\n  On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted.\n  OCFS2: File system is now read-only.\n\nThis is reproducible by setting ~33 xattrs with 100-byte values on a file\non a blocksize-512 volume; fsck.ocfs2 reports the resulting image clean.\n\nCheck the entry count against the full bucket region instead.  The\nper-block bounds checks for names and values stay as they are, since\nocfs2_bucket_align_free_start() keeps each name+value pair within a single\nblock.\n\nThe entry array is one contiguous region, so a bucket from a corrupted\nxattr tree whose first block is not aligned to OCFS2_XATTR_BUCKET_SIZE\ncould straddle a page and make the validation loop read out of bounds. \nBuckets allocated within clusters are always aligned, so reject any other\nblock number while validating."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:35:23.485Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/13745a6cc1f82f88365fb06a5590eba35e79cfab"},{"url":"https://git.kernel.org/stable/c/a0ab8943a115e5806d64fc81af0b939dbf2575e6"},{"url":"https://git.kernel.org/stable/c/4b0adafbb676900ffa674306c4325ee7f4837f2f"},{"url":"https://git.kernel.org/stable/c/78cce2082d22d3c56bd3a6146ef0dcf7cd661a33"}],"title":"ocfs2: allow xattr bucket entries to span multiple blocks","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139507","datePublished":"2026-11-30T13:35:23.485Z","dateReserved":"2026-11-30T13:22:15.937Z","dateUpdated":"2026-11-30T13:35:23.485Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:26","lastModifiedDate":"2026-11-30 14:19:26","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139507","Ordinal":"1","Title":"ocfs2: allow xattr bucket entries to span multiple blocks","CVE":"CVE-2026-139507","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139507","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: allow xattr bucket entries to span multiple blocks\n\nPatch series \"ocfs2: xattr bucket validation fixes\", v2.\n\nThis series fixes two problems around xattr bucket validation.\n\nPatch 1 fixes a false-corruption failure on blocksize-512 volumes: the\nbucket validator limited the entry array to the first bucket block while\nthe write path stores entries across the whole 4096-byte bucket region, so\na legitimately written, fsck-clean bucket could be rejected and force the\nfilesystem read-only.  It also adds an alignment check on the bucket block\nnumber, since the entry array is accessed as one contiguous region and a\ncorrupted xattr tree could otherwise point a bucket at blocks straddling a\npage boundary.\n\nPatch 2 converts two mlog_bug_on_msg() checks in the bucket defrag path to\nocfs2_error() returns, so that a corrupt bucket holding overlapping\nentries or an inflated xh_free_start marks the filesystem read-only and\nfails the setxattr instead of panicking the kernel.\n\nBoth patches have been tested in QEMU: the blocksize-512 reproducer (40\nxattrs with 100-byte values, previously failing with \"entry count 32\nexceeds maximum 31\") now passes with a clean fsck.ocfs2 result, and the\nocfs2 testsuite xattr tests pass 48/48 across blocksize combinations.\n\n\nThis patch (of 2):\n\nocfs2_validate_xattr_bucket() limits the entry array to the first bucket\nblock, but the write path stores entries across the whole\nOCFS2_XATTR_BUCKET_SIZE region.  With 512-byte blocks a bucket spans eight\nblocks, and a bucket filled with small xattrs places its last entries past\noffset 512.  Reading such a bucket back errors out:\n\n  OCFS2: ERROR (device loop0): ocfs2_validate_xattr_bucket: Invalid xattr bucket 86072: entry count 32 exceeds maximum 31\n  On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted.\n  OCFS2: File system is now read-only.\n\nThis is reproducible by setting ~33 xattrs with 100-byte values on a file\non a blocksize-512 volume; fsck.ocfs2 reports the resulting image clean.\n\nCheck the entry count against the full bucket region instead.  The\nper-block bounds checks for names and values stay as they are, since\nocfs2_bucket_align_free_start() keeps each name+value pair within a single\nblock.\n\nThe entry array is one contiguous region, so a bucket from a corrupted\nxattr tree whose first block is not aligned to OCFS2_XATTR_BUCKET_SIZE\ncould straddle a page and make the validation loop read out of bounds. \nBuckets allocated within clusters are always aligned, so reject any other\nblock number while validating.","Type":"Description","Title":"ocfs2: allow xattr bucket entries to span multiple blocks"}]}}}