{"id":"CVE-2026-72164","aliases":["CVE-2026-72164"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2: avoid moving extents to occupied clusters","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: avoid moving extents to occupied clusters\n\nFor non-auto OCFS2_IOC_MOVE_EXT operations, userspace supplies a physical\nme_goal.  ocfs2_move_extent() initializes new_phys_cpos from that goal and\nexpects ocfs2_probe_alloc_group() to replace it with a free run in the\ntarget block group.\n\nThe probe currently leaves *phys_cpos unchanged if the scan reaches the\nend of the group without finding a free run.  An occupied goal at the last\nbit can therefore survive the probe and be passed to\n__ocfs2_move_extent(), which copies file data into a cluster still owned\nby another inode before the bitmap is updated.\n\nWhen the probe does find a free run, it also subtracts move_len from the\nending bit.  The start of an N-bit run ending at i is i - N + 1, so the\ncurrent calculation can report the bit immediately before the free run.\n\nClear *phys_cpos before scanning and use the correct free-run start. \nCallers already treat a zero result as -ENOSPC, so failed probes no longer\ncontinue with an occupied caller-controlled goal.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: avoid moving extents to occupied clusters\n\nFor non-auto OCFS2_IOC_MOVE_EXT operations, userspace supplies a physical\nme_goal.  ocfs2_move_extent() initializes new_phys_cpos from that goal and\nexpects ocfs2_probe_alloc_group() to replace it with a free run in the\ntarget block group.\n\nThe probe currently leaves *phys_cpos unchanged if the scan reaches the\nend of the group without finding a free run.  An occupied goal at the last\nbit can therefore survive the probe and be passed to\n__ocfs2_move_extent(), which copies file data into a cluster still owned\nby another inode before the bitmap is updated.\n\nWhen the probe does find a free run, it also subtracts move_len from the\nending bit.  The start of an N-bit run ending at i is i - N + 1, so the\ncurrent calculation can report the bit immediately before the free run.\n\nClear *phys_cpos before scanning and use the correct free-run start. \nCallers already treat a zero result as -ENOSPC, so failed probes no longer\ncontinue with an occupied caller-controlled goal.","source":"cvelist"}],"published":"2026-08-15T05:53:31.901Z","modified":"2026-10-16T19:17:12.417Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e6b5859cccfa0fec02f3c5b1069481efc7186f47","fixed":"3112afebf2a76e522fbaabcbb0c47aafbdc35932","status":"affected"},{"type":"git","introduced":"e6b5859cccfa0fec02f3c5b1069481efc7186f47","fixed":"35486b291b8fbde6c4d0b1c79e565c6260d3329d","status":"affected"},{"type":"git","introduced":"e6b5859cccfa0fec02f3c5b1069481efc7186f47","fixed":"19f7b04924b20b81dabbeed19d5542792ba5b6d6","status":"affected"},{"type":"git","introduced":"e6b5859cccfa0fec02f3c5b1069481efc7186f47","fixed":"e281d892ce5870a50fdc718cb3bfc3dd5b62c728","status":"affected"},{"type":"git","introduced":"e6b5859cccfa0fec02f3c5b1069481efc7186f47","fixed":"0d0c5c17b18bdbc592ac26ab4d1de7e3dbf9be1e","status":"affected"},{"type":"git","introduced":"e6b5859cccfa0fec02f3c5b1069481efc7186f47","fixed":"d5d5a21fb33cd9b963aea99da81e4dacd452cd95","status":"affected"},{"type":"git","introduced":"e6b5859cccfa0fec02f3c5b1069481efc7186f47","fixed":"4d1953d3aeb4a7f6623083e1839068ee1c157db2","status":"affected"},{"type":"git","introduced":"e6b5859cccfa0fec02f3c5b1069481efc7186f47","fixed":"22920541c35a9f23f219038ba5874c843a7c4419","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.0","status":"unaffected"},{"type":"semver","introduced":"5.10.261","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.212","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.178","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.145","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.97","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.40","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.5","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/3112afebf2a76e522fbaabcbb0c47aafbdc35932","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/35486b291b8fbde6c4d0b1c79e565c6260d3329d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/19f7b04924b20b81dabbeed19d5542792ba5b6d6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e281d892ce5870a50fdc718cb3bfc3dd5b62c728","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d0c5c17b18bdbc592ac26ab4d1de7e3dbf9be1e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d5d5a21fb33cd9b963aea99da81e4dacd452cd95","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4d1953d3aeb4a7f6623083e1839068ee1c157db2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22920541c35a9f23f219038ba5874c843a7c4419","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T18:43:10.262Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-72164","url":"https://www.cve.org/CVERecord?id=CVE-2026-72164","licence":"CVE Terms of Use","modified":"2026-10-16T18:44:59.778Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-72164","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72164","licence":"Public domain","modified":"2026-10-16T19:17:12.417Z"}],"updatedAt":"2026-11-25T22:59:33.028Z","epss":{"score":0.00176,"percentile":0.04186,"date":"2026-11-30T12:00:22.000Z"}}