{"id":"CVE-2026-72164","revision":"067a5f5e0bb14402b6cdb15dae8ad027","records":[{"revision":"067a5f5e0bb14402b6cdb15dae8ad027","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-72164","aliases":[],"title":"ocfs2: avoid moving extents to occupied clusters","description":"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.","state":0,"publishedAt":"2026-08-15T05:53:31.901+00:00","modifiedAt":"2026-10-16T18:44:59.778+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/ocfs2/move_extents.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"e6b5859cccfa0fec02f3c5b1069481efc7186f47\",\n                            \"lessThan\": \"3112afebf2a76e522fbaabcbb0c47aafbdc35932\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"e6b5859cccfa0fec02f3c5b1069481efc7186f47\",\n                            \"lessThan\": \"35486b291b8fbde6c4d0b1c79e565c6260d3329d\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"e6b5859cccfa0fec02f3c5b1069481efc7186f47\",\n                            \"lessThan\": \"19f7b04924b20b81dabbeed19d5542792ba5b6d6\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"e6b5859cccfa0fec02f3c5b1069481efc7186f47\",\n                            \"lessThan\": \"e281d892ce5870a50fdc718cb3bfc3dd5b62c728\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"e6b5859cccfa0fec02f3c5b1069481efc7186f47\",\n                            \"lessThan\": \"0d0c5c17b18bdbc592ac26ab4d1de7e3dbf9be1e\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"e6b5859cccfa0fec02f3c5b1069481efc7186f47\",\n                            \"lessThan\": \"d5d5a21fb33cd9b963aea99da81e4dacd452cd95\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"e6b5859cccfa0fec02f3c5b1069481efc7186f47\",\n                            \"lessThan\": \"4d1953d3aeb4a7f6623083e1839068ee1c157db2\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"e6b5859cccfa0fec02f3c5b1069481efc7186f47\",\n                            \"lessThan\": \"22920541c35a9f23f219038ba5874c843a7c4419\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/ocfs2/move_extents.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"3.0\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"3.0\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.10.261\",\n                            \"lessThanOrEqual\": \"5.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.15.212\",\n                            \"lessThanOrEqual\": \"5.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.178\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.145\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.97\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.40\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.1.5\",\n                            \"lessThanOrEqual\": \"7.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"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,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/3112afebf2a76e522fbaabcbb0c47aafbdc35932","https://git.kernel.org/stable/c/35486b291b8fbde6c4d0b1c79e565c6260d3329d","https://git.kernel.org/stable/c/19f7b04924b20b81dabbeed19d5542792ba5b6d6","https://git.kernel.org/stable/c/e281d892ce5870a50fdc718cb3bfc3dd5b62c728","https://git.kernel.org/stable/c/0d0c5c17b18bdbc592ac26ab4d1de7e3dbf9be1e","https://git.kernel.org/stable/c/d5d5a21fb33cd9b963aea99da81e4dacd452cd95","https://git.kernel.org/stable/c/4d1953d3aeb4a7f6623083e1839068ee1c157db2","https://git.kernel.org/stable/c/22920541c35a9f23f219038ba5874c843a7c4419"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-72164","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-72164","identifiers":["CVE-2026-72164"]},"retained":false,"historicalAffected":[]}],"coverage":[]}