CVE-2026-72184: ntfs: fix hole runlist memory leak in insert range error path
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ntfs: fix hole runlist memory leak in insert range error path
ntfs_non_resident_attr_insert_range() allocates hole_rl before mapping the whole runlist. If ntfs_attr_map_whole_runlist() fails, the error path drops ni->runlist.lock and returns without freeing hole_rl. This leaks memory of sizeof(*hole_rl) * 2 bytes.
Fix this memory leak by freeing hole_rl before returning from that error path, matching the later error paths in the same function.
The Linux kernel CVE team has assigned CVE-2026-72184 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.1 with commit 495e90fa334828d4119061e2726af51d0a0fb4ed and fixed in 7.1.5 with commit 7d7f72cb21a829682f6d8968af4fbe413789d1fd Issue introduced in 7.1 with commit 495e90fa334828d4119061e2726af51d0a0fb4ed and fixed in 7.2-rc3 with commit 06769b8f23b4b645b270c438649fff79768fb6fe
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-72184
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/ntfs/attrib.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/7d7f72cb21a829682f6d8968af4fbe413789d1fd https://git.kernel.org/stable/c/06769b8f23b4b645b270c438649fff79768fb6fe