CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's handling of memory allocation in the nvdimm/btt module, specifically during error paths in the discover_arenas() function. Failure to free allocated memory in certain error scenarios can lead to memory leaks, potentially impacting system performance and stability. Organizations using Linux kernels with this module should prioritize addressing this issue to prevent resource exhaustion and ensure optimal system operation.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: nvdimm/btt: Free arena sub-allocations on discover_arenas() error path Memory allocated by btt_freelist_init(), btt_rtt_init(), and btt_maplocks_init() is not freed on some discover_arenas() error paths. This leaks memory when arena discovery fails. Add the missing kfree() calls to release the allocations before returning an error. [ as: commit message and log edits ]