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

ocfs2: fix out-of-bounds write in ocfs2_remove_refcount_extent

[BUG]
Unlinking a refcounted file whose refcount tree has leaf blocks
triggers a fortify panic due to an out-of-bounds write.

[CAUSE]
When the last leaf block is removed from a refcount tree,
ocfs2_remove_refcount_extent() converts the root back to leaf mode
with a bulk memset on &rb->rf_records. rf_records sits in an anonymous
union with rf_list. rf_list.l_tree_depth aliases rf_records.rl_count,
and is 0 for a single-level tree. With rl_count equal to 0, the memset
writes past the 16-byte declared size of rf_records, which the fortify
checker catches.

[FIX]
Replace the bulk memset on &rb->rf_records with a correctly-bounded
memset on rl_recs[] alone, after setting rl_count to the correct value.
Published: 2026-08-28
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service (kernel crash)
Action: Patch
AI Analysis

Impact

The vulnerability resides in the OCFS2 filesystem module of the Linux kernel. It is an out‑of‑bounds write in the function ocfs2_remove_refcount_extent that is triggered when the last leaf block of a refcount tree is removed. The incorrect bulk memory set writes beyond the allocated size, which the fortify checker detects and a fortify panic causes the kernel to crash. This results in a denial‑of‑service condition, forcing a system reboot and loss of availability.

Affected Systems

Any installation of the Linux kernel that includes the OCFS2 module and has not applied the recent patch is susceptible. The advisory does not list specific kernel release numbers, so affected kernels are those that were in use at the time of the commit that fixed the out‑of‑bounds write.

Risk and Exploitability

The CVSS score of 8.8 denotes a high severity vulnerability, but the EPSS score of less than 1% indicates a low likelihood of exploitation. The issue is not present in the CISA KEV catalog and no public exploits have been reported. Exploitation requires local access to a system running OCFS2 to unlink a refcounted file, so the threat is confined to environments with local compromise. The risk is therefore moderate: a high‑impact crash that is unlikely to be widely targeted due to the local access requirement.

Generated by OpenCVE AI on September 2, 2026 at 05:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the patch referenced in the provided kernel commit links that bounds the memory set correctly and eliminates the out‑of‑bounds write.
  • Rebuild the kernel from the patched source or apply the patch to the current kernel tree, then reboot so the updated kernel is in use.
  • If the system cannot be updated immediately, unmount or remount OCFS2 filesystems as read‑only to prevent manipulation of refcounted files until the patch is applied.

Generated by OpenCVE AI on September 2, 2026 at 05:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 01 Sep 2026 22:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Tue, 01 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

threat_severity

Moderate


Sat, 29 Aug 2026 09:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Sat, 29 Aug 2026 08:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120

Sat, 29 Aug 2026 06:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Fri, 28 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120

Fri, 28 Aug 2026 14:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-787

Fri, 28 Aug 2026 09:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-787

Fri, 28 Aug 2026 07:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix out-of-bounds write in ocfs2_remove_refcount_extent [BUG] Unlinking a refcounted file whose refcount tree has leaf blocks triggers a fortify panic due to an out-of-bounds write. [CAUSE] When the last leaf block is removed from a refcount tree, ocfs2_remove_refcount_extent() converts the root back to leaf mode with a bulk memset on &rb->rf_records. rf_records sits in an anonymous union with rf_list. rf_list.l_tree_depth aliases rf_records.rl_count, and is 0 for a single-level tree. With rl_count equal to 0, the memset writes past the 16-byte declared size of rf_records, which the fortify checker catches. [FIX] Replace the bulk memset on &rb->rf_records with a correctly-bounded memset on rl_recs[] alone, after setting rl_count to the correct value.
Title ocfs2: fix out-of-bounds write in ocfs2_remove_refcount_extent
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-29T06:21:38.111Z

Reserved: 2026-08-26T14:34:25.777Z

Link: CVE-2026-80638

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-28T08:16:48.720

Modified: 2026-08-29T07:16:47.790

Link: CVE-2026-80638

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-28T00:00:00Z

Links: CVE-2026-80638 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-02T05:30:08Z

Weaknesses