CVE-2026-72164

ocfs2: avoid moving extents to occupied clusters

State
Published
Severity
7.8 High
Published
Aug 15, 2026
Updated
Oct 16, 2026
Reserved
Aug 9, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e6b5859cccfa0fec02f3c5b1069481efc7186f47 to before 3112afebf2a76e522fbaabcbb0c47aafbdc35932Affected
  • e6b5859cccfa0fec02f3c5b1069481efc7186f47 to before 35486b291b8fbde6c4d0b1c79e565c6260d3329dAffected
  • e6b5859cccfa0fec02f3c5b1069481efc7186f47 to before 19f7b04924b20b81dabbeed19d5542792ba5b6d6Affected
  • e6b5859cccfa0fec02f3c5b1069481efc7186f47 to before e281d892ce5870a50fdc718cb3bfc3dd5b62c728Affected
  • e6b5859cccfa0fec02f3c5b1069481efc7186f47 to before 0d0c5c17b18bdbc592ac26ab4d1de7e3dbf9be1eAffected
  • e6b5859cccfa0fec02f3c5b1069481efc7186f47 to before d5d5a21fb33cd9b963aea99da81e4dacd452cd95Affected
  • e6b5859cccfa0fec02f3c5b1069481efc7186f47 to before 4d1953d3aeb4a7f6623083e1839068ee1c157db2Affected
  • e6b5859cccfa0fec02f3c5b1069481efc7186f47 to before 22920541c35a9f23f219038ba5874c843a7c4419Affected
LinuxLinux
  • 3.0Affected
  • before 3.0Not affected
  • 5.10.261 through 5.10.*Not affected
  • 5.15.212 through 5.15.*Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.