CVE-2026-139389

ocfs2: validate chunk and block counts of the local quota file

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: validate chunk and block counts of the local quota file

ocfs2_local_read_info() trusts dqi_chunks and dqi_blocks from the local
quota file header. If dqi_blocks is too small,
ocfs2_extend_local_quota_file() computes a bogus chunk length, extends the
file, and maps logical block dqi_blocks, which is already in the inode's
metadata cache (the header or a chunk header read at mount). sb_getblk()
returns that cached buffer and ocfs2_set_new_buffer_uptodate() hits
BUG_ON(ocfs2_buffer_cached()):

kernel BUG at fs/ocfs2/uptodate.c:509!
ocfs2_extend_local_quota_file+0x45c/0x1100
ocfs2_create_local_dquot+0x8ac/0xb50
ocfs2_acquire_dquot+0x614/0xae0
ocfs2_get_init_inode+0xe9/0x1b0
ocfs2_mkdir+0x174/0x430

ocfs2_local_quota_add_chunk() has the same exposure.

Reject a header whose counts don't fit the chunk layout or exceed i_size.

Reproduced with a crafted image (dqi_blocks = 1, chunk 0 dqc_free = 0);
syzbot has no reproducer for this report.

Analysis

AI-generated

Technical impact

The vulnerability arises when the OCFS2 filesystem trusts values in the local quota file header without validation. An attacker who supplies a crafted image with incorrect dqi_chunks or dqi_blocks values causes the kernel to compute an invalid chunk length, extend the quota file, and map a block that is already cached. This leads to a BUG_ON in the kernel, triggering a panic and resulting in a denial of service. The weakness is an improper input validation that exposes the kernel to corrupted metadata.

Affected Systems

The flaw exists in the Linux kernel file system code for OCFS2. All distributions using a kernel that implements ocfs2 without the validation check are potentially affected. No specific version range is listed, so any kernel that includes this code before the fix is at risk. Users should ensure their kernel is updated to a release that contains the patch.

Risk and Exploitability

The attack requires writing a malicious quota file or image and mounting it on the system, so it is a local privilege scenario. The vulnerability is not publicly documented as a remote exploit and has no EPSS score available. It is not registered in CISA's KEV catalog. Because the issue causes a kernel BUG_ON, exploitation leads primarily to a system crash rather than privilege escalation. The risk level is moderate: an insider or compromised local user could trigger the crash, but an external attacker would need prior local access or the ability to create a malicious filesystem image.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that incorporates the patch validating dqi_chunks and dqi_blocks in ocfs2.
  • If an immediate kernel upgrade is not possible, isolate the affected filesystem and prevent untrusted users from creating or modifying OCFS2 quota files.
  • Configure kernel logging and monitoring to alert on kernel BUG_ON events related to ocfs2, and verify that the system restarts automatically if a crash occurs.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ocfs2: validate chunk and block counts of the local quota file ocfs2_local_read_info() trusts dqi_chunks and dqi_blocks from the local quota file header. If dqi_blocks is too small, ocfs2_extend_local_quota_file() computes a bogus chunk length, extends the file, and maps logical block dqi_blocks, which is already in the inode's metadata cache (the header or a chunk header read at mount). sb_getblk() returns that cached buffer and ocfs2_set_new_buffer_uptodate() hits BUG_ON(ocfs2_buffer_cached()): kernel BUG at fs/ocfs2/uptodate.c:509! ocfs2_extend_local_quota_file+0x45c/0x1100 ocfs2_create_local_dquot+0x8ac/0xb50 ocfs2_acquire_dquot+0x614/0xae0 ocfs2_get_init_inode+0xe9/0x1b0 ocfs2_mkdir+0x174/0x430 ocfs2_local_quota_add_chunk() has the same exposure. Reject a header whose counts don't fit the chunk layout or exceed i_size. Reproduced with a crafted image (dqi_blocks = 1, chunk 0 dqc_free = 0); syzbot has no reproducer for this report.
Title ocfs2: validate chunk and block counts of the local quota file
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-20

    Improper Input Validation

Sources

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