nvdimm/btt: Free arena sub-allocations on discover_arenas() error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5212e11fde4d40fa627668b4f2222d20db488f71 · < 30d490bb2c4cd220e7dedf862ab6a09eb5dcbad5| No fix yet |
| Linux Linux |
|
|
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 ]
From the CVE record · Linux
The Linux kernel's nvdimm/btt code fails to free some allocations when arena discovery encounters an error, causing a memory leak. The input does not specify how an attacker could trigger the error or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with nvdimm/btt should check their versions; affected versions are not specified.