Description (CNA)
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 ]
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 5212e11fde4d40fa627668b4f2222d20db488f71 before 2d0364937550a7b3e2592629c2a68753ac020b28; affected 5212e11fde4d40fa627668b4f2222d20db488f71 before eeb95774bc79268e2b78ebf01d8781560b5bd671; affected 5212e11fde4d40fa627668b4f2222d20db488f71 before 7563f69caa9143a491d5f26e563255c734751545; affected 5212e11fde4d40fa627668b4f2222d20db488f71 before 0b0d9404951aacc9717aa61e77af4a6e9e8f8249; affected 5212e11fde4d40fa627668b4f2222d20db488f71 before 873ced7f345e99f7ee16f9ff226515580332ecc4; affected 5212e11fde4d40fa627668b4f2222d20db488f71 before 30d490bb2c4cd220e7dedf862ab6a09eb5dcbad5; affected 5212e11fde4d40fa627668b4f2222d20db488f71 before ba59b96d8d21dc8729fca44a022ca5919c1848c9; affected 5212e11fde4d40fa627668b4f2222d20db488f71 before 13fe4cd9ddd0aacb7777812328be525a11ea3fea |
| Linux / Linux | affected 4.2; unaffected 0 before 4.2; unaffected 5.10.261 through 5.10.*; unaffected 5.15.212 through 5.15.*; unaffected 6.1.178 through 6.1.*; unaffected 6.6.145 through 6.6.*; unaffected 6.12.97 through 6.12.*; unaffected 6.18.40 through 6.18.*; unaffected 7.1.5 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/2d0364937550a7b3e2592629c2a68753ac020b28
- https://git.kernel.org/stable/c/eeb95774bc79268e2b78ebf01d8781560b5bd671
- https://git.kernel.org/stable/c/7563f69caa9143a491d5f26e563255c734751545
- https://git.kernel.org/stable/c/0b0d9404951aacc9717aa61e77af4a6e9e8f8249
- https://git.kernel.org/stable/c/873ced7f345e99f7ee16f9ff226515580332ecc4
- https://git.kernel.org/stable/c/30d490bb2c4cd220e7dedf862ab6a09eb5dcbad5
- https://git.kernel.org/stable/c/ba59b96d8d21dc8729fca44a022ca5919c1848c9
- https://git.kernel.org/stable/c/13fe4cd9ddd0aacb7777812328be525a11ea3fea