CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's NTFS implementation, specifically in the handling of memory allocation during error processing in the `ntfs_non_resident_attr_insert_range()` function. If an error occurs while mapping the runlist, allocated memory for `hole_rl` is not properly freed, leading to a memory leak. System administrators and developers managing Linux systems with NTFS support should prioritize this issue to prevent potential resource exhaustion and ensure system stability.
Original NVD 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.