Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: drivers/base/memory: fix memory block reference leak in poison accounting memblk_nr_poison_inc() and memblk_nr_poison_sub() look up a memory block via find_memory_block_by_id(), which acquires a reference to the memory block device. Both helpers use the returned memory block without dropping that reference, leaking the device reference on each successful lookup. Drop the reference after updating nr_hwpoison.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 5033091de814ab4b5623faed2755f3064e19e2d2 before 686b4283f82cd630fafd7ca9b03dfc080b3ec8fa; affected 5033091de814ab4b5623faed2755f3064e19e2d2 before ce60d9452a0f2effa72fd20ea270c59ca691d455; affected 5033091de814ab4b5623faed2755f3064e19e2d2 before 24840b3139d7415144b81e4f9f4c44670d15bed9; affected 5033091de814ab4b5623faed2755f3064e19e2d2 before 8502e2c2d0633f99d94d22ae8dabc10caae1fc2a; affected 5033091de814ab4b5623faed2755f3064e19e2d2 before 03a2cc1756a0570f887d624cd6c535ea0cbd4951 |
| Linux / Linux | affected 6.2; unaffected 0 before 6.2; unaffected 6.6.142 through 6.6.*; unaffected 6.12.92 through 6.12.*; unaffected 6.18.34 through 6.18.*; unaffected 7.0.11 through 7.0.*; unaffected 7.1 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/686b4283f82cd630fafd7ca9b03dfc080b3ec8fa
- https://git.kernel.org/stable/c/ce60d9452a0f2effa72fd20ea270c59ca691d455
- https://git.kernel.org/stable/c/24840b3139d7415144b81e4f9f4c44670d15bed9
- https://git.kernel.org/stable/c/8502e2c2d0633f99d94d22ae8dabc10caae1fc2a
- https://git.kernel.org/stable/c/03a2cc1756a0570f887d624cd6c535ea0cbd4951