ntfs: fix hole runlist memory leak in insert range error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s ntfs insert-range function leaks a small allocation if mapping the whole runlist fails. The input does not establish whether an attacker can trigger this error path or what access or user interaction would be required.
Engineers running Linux kernels with ntfs support should check their versions; no affected versions are specified.