ocfs2: avoid moving extents to occupied clusters (Linux Linux)

CVE-2026-72164
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.17 % · percentile 6 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected e6b5859cccfa0fec02f3c5b1069481efc7186f47 < 3112afebf2a76e522fbaabcbb0c47aafbdc35932 ; affected e6b5859cccfa0fec02f3c5b1069481efc7186f47 < 35486b291b8fbde6c4d0b1c79e565c6260d3329d ; affected e6b5859cccfa0fec02f3c5b1069481efc7186f47 < 19f7b04924b20b81dabbeed19d5542792ba5b6d6 ; affected e6b5859cccfa0fec02f3c5b1069481efc7186f47 < e281d892ce5870a50fdc718cb3bfc3dd5b62c728 ; affected e6b5859cccfa0fec02f3c5b1069481efc7186f47 < 0d0c5c17b18bdbc592ac26ab4d1de7e3dbf9be1e ; affected e6b5859cccfa0fec02f3c5b1069481efc7186f47 < d5d5a21fb33cd9b963aea99da81e4dacd452cd95
Linux · Linuxaffected 3.0 ; unaffected 0 < 3.0 ; unaffected 5.10.261 ≤ 5.10.* ; unaffected 5.15.212 ≤ 5.15.* ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD