CVE-2026-139506

ocfs2: reject inconsistent xattr bucket during defrag

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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().

Analysis

AI-generated

Technical impact

The flaw in ocfs2 occurs during bucket defragmentation where two validation checks assume disjoint name/value pairs and a correct free space offset. If a corrupted bucket contains overlapping entries or an inflated offset, the validation passes while the defrag procedure later triggers a BUG(), causing a kernel panic. This results in a loss of availability because the system reboot or restore is required. The attack surface involves manipulating file attributes on an OCFS2 volume, typically requiring elevated privileges or direct disk access.

Affected Systems

All Linux kernel releases that include the ocfs2 defragmentation code prior to the published fix. No specific version list is provided, so any kernel built from the mainstream source tree before the patch is considered vulnerable.

Risk and Exploitability

No EPSS data and the vulnerability has not been reported as a known exploited vulnerability (KEV). Nonetheless, the potential for a kernel panic is severe, and the easiest path for exploitation likely requires local or privileged access to trigger a setxattr operation on a corrupted bucket. The lack of remote exploitation proof suggests moderate to high risk depending on the environment.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel version that incorporates the ocfs2 defragmentation fix.
  • If an immediate kernel upgrade is not possible, disable or postpone automatic defragmentation on OCFS2 volumes and use fsck.ocfs2 to repair corrupted buckets before attempting any defrag operations.
  • Continuously monitor system logs for BUG() messages related to ocfs2_defrag_xattr_bucket and plan for recovery if a crash occurs.

Generated by OpenCVE AI on November 30, 2026 at 23:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-398
Type Values Removed Values Added
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().
Title ocfs2: reject inconsistent xattr bucket during defrag
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM