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

ocfs2: avoid moving extents to occupied clusters

For non-auto OCFS2_IOC_MOVE_EXT operations, userspace supplies a physical
me_goal. ocfs2_move_extent() initializes new_phys_cpos from that goal and
expects ocfs2_probe_alloc_group() to replace it with a free run in the
target block group.

The probe currently leaves *phys_cpos unchanged if the scan reaches the
end of the group without finding a free run. An occupied goal at the last
bit can therefore survive the probe and be passed to
__ocfs2_move_extent(), which copies file data into a cluster still owned
by another inode before the bitmap is updated.

When the probe does find a free run, it also subtracts move_len from the
ending bit. The start of an N-bit run ending at i is i - N + 1, so the
current calculation can report the bit immediately before the free run.

Clear *phys_cpos before scanning and use the correct free-run start.
Callers already treat a zero result as -ENOSPC, so failed probes no longer
continue with an occupied caller-controlled goal.
Published: 2026-08-15
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in the Linux kernel OCFS2 filesystem allows an attacker to override the destination location for an extent copy operation, enabling the copying of file data into a cluster already allocated to another inode. This results in accidental overwriting of data owned by a different file, leading to data corruption and loss. The weakness is an improper validation of the requested physical allocation goal, classified as CWE‑367.

Affected Systems

All Linux kernel releases that ship with the OCFS2 driver are affected because the issue resides in the ocfs2_move_extent routine which is part of the kernel's filesystem code. The product line is "Linux Kernel". No specific version ranges are supplied, so any kernel that contains the unpatched ocfs2 code is vulnerable.

Risk and Exploitability

Based on the description, the attack vector is inferred to be a privileged kernel ioctl that moves extents on a mounted OCFS2 filesystem. The vulnerability requires that the attacker can invoke this ioctl, which is normally limited to privileged users or processes running with elevated permissions. If an attacker supplies a malicious goal, the function may erroneously write over clusters belonging to other files, potentially causing widespread data loss or a denial‑of‑service condition for the filesystem. The risk is elevated in environments where OCFS2 is used in shared or multi‑tenant clusters and where untrusted users have the ability to execute privileged system calls. The CVSS score is 7.8, and the EPSS score of <1% indicates a very low but nonzero exploitation probability, so the precise severity and exploitation probability cannot be quantified. Additionally, the vulnerability is not listed in the CISA KEV catalog.

Generated by OpenCVE AI on August 22, 2026 at 11:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the ocfs2_move_extent fix
  • If updating is not immediately feasible, restrict access to the OCFS2_IOC_MOVE_EXT ioctl by removing the operation from the mount or applying a kernel patch that disables the faulty path
  • Implement filesystem integrity monitoring to detect unexpected data changes in OCFS2 volumes
  • Consider disabling OCFS2 or remounting the filesystem read‑only until a fix is applied

Generated by OpenCVE AI on August 22, 2026 at 11:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 10:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20

Wed, 19 Aug 2026 00:15:00 +0000

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

None

threat_severity

Moderate


Mon, 17 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20

Mon, 17 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE‑20

Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


Sat, 15 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE‑20

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ocfs2: avoid moving extents to occupied clusters For non-auto OCFS2_IOC_MOVE_EXT operations, userspace supplies a physical me_goal. ocfs2_move_extent() initializes new_phys_cpos from that goal and expects ocfs2_probe_alloc_group() to replace it with a free run in the target block group. The probe currently leaves *phys_cpos unchanged if the scan reaches the end of the group without finding a free run. An occupied goal at the last bit can therefore survive the probe and be passed to __ocfs2_move_extent(), which copies file data into a cluster still owned by another inode before the bitmap is updated. When the probe does find a free run, it also subtracts move_len from the ending bit. The start of an N-bit run ending at i is i - N + 1, so the current calculation can report the bit immediately before the free run. Clear *phys_cpos before scanning and use the correct free-run start. Callers already treat a zero result as -ENOSPC, so failed probes no longer continue with an occupied caller-controlled goal.
Title ocfs2: avoid moving extents to occupied clusters
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-17T05:41:06.039Z

Reserved: 2026-08-09T03:40:39.909Z

Link: CVE-2026-72164

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:21:34.357

Modified: 2026-08-17T06:18:16.720

Link: CVE-2026-72164

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-72164 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T11:45:03Z

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition