CVE-2026-139507: ocfs2: allow xattr bucket entries to span multiple blocks

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: allow xattr bucket entries to span multiple blocks

Patch series "ocfs2: xattr bucket validation fixes", v2.

This series fixes two problems around xattr bucket validation.

Patch 1 fixes a false-corruption failure on blocksize-512 volumes: the bucket validator limited the entry array to the first bucket block while the write path stores entries across the whole 4096-byte bucket region, so a legitimately written, fsck-clean bucket could be rejected and force the filesystem read-only. It also adds an alignment check on the bucket block number, since the entry array is accessed as one contiguous region and a corrupted xattr tree could otherwise point a bucket at blocks straddling a page boundary.

Patch 2 converts two mlogbugonmsg() checks in the bucket defrag path to ocfs2error() returns, so that a corrupt bucket holding overlapping entries or an inflated xhfreestart marks the filesystem read-only and fails the setxattr instead of panicking the kernel.

Both patches have been tested in QEMU: the blocksize-512 reproducer (40 xattrs with 100-byte values, previously failing with "entry count 32 exceeds maximum 31") now passes with a clean fsck.ocfs2 result, and the ocfs2 testsuite xattr tests pass 48/48 across blocksize combinations.

This patch (of 2):

ocfs2validatexattrbucket() limits the entry array to the first bucket block, but the write path stores entries across the whole OCFS2XATTRBUCKETSIZE region. With 512-byte blocks a bucket spans eight blocks, and a bucket filled with small xattrs places its last entries past offset 512. Reading such a bucket back errors out:

OCFS2: ERROR (device loop0): ocfs2validatexattrbucket: Invalid xattr bucket 86072: entry count 32 exceeds maximum 31 On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted. OCFS2: File system is now read-only.

This is reproducible by setting ~33 xattrs with 100-byte values on a file on a blocksize-512 volume; fsck.ocfs2 reports the resulting image clean.

Check the entry count against the full bucket region instead. The per-block bounds checks for names and values stay as they are, since ocfs2bucketalignfreestart() keeps each name+value pair within a single block.

The entry array is one contiguous region, so a bucket from a corrupted xattr tree whose first block is not aligned to OCFS2XATTRBUCKETSIZE could straddle a page and make the validation loop read out of bounds. Buckets allocated within clusters are always aligned, so reject any other block number while validating.

Affected Software

8 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.6.160<6.6.163
6.6.163
linux/kernel>=6.12.114<6.12.119
6.12.119
linux/kernel>=7.2.6<7.3
7.3
linux/kernel>=7.3.0<7.3.6
7.3.6
debian/linux*
debian/linux<7.3.6-1
7.3.6-1
debian/linux<=6.12.117-1, <=6.12.118-1
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.119
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  5. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.6-1
  6. Operational

    Run fsck.ocfs2 once the filesystem is unmounted.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:35 PM
Data Sourced
via MITRE·01:35 PM
Description
Data Sourced
via OSV·01:35 PM
DescriptionAffected Software
Data Sourced
via NVD·02:19 PM
Description

Frequently Asked Questions

1

Which filesystems are most likely to encounter the false-corruption condition?

OCFS2 filesystems using 512-byte blocks are affected when xattr bucket entries extend beyond the first block of the 4096-byte bucket region. The reported reproducer used 40 extended attributes with 100-byte values.

2

What is the operational impact of the validation failures?

A legitimately written and fsck-clean xattr bucket can be rejected as corrupt, causing the filesystem to be forced read-only. A corrupted xattr tree can also reference a misaligned bucket whose entries straddle a page boundary.

3

Can malformed xattr bucket data cause a kernel panic?

Before the defragmentation-path changes, a corrupt bucket with overlapping entries or an inflated xh_free_start could trigger mlog_bug_on_msg() checks and panic the kernel. The fix instead marks the filesystem read-only and causes the setxattr operation to fail.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203