platform/x86: toshiba_haps: Fix memory leaks in add/remove routines
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f93ae43780b759a70734be9bc82c1adcf7f33208, Kernel 128497456756e1b952bd5a912cd073836465109d, Kernel 17f37c4cdf42a9e4915216b9e130fc8baef4cc64 and 10 more.
In the Linux kernel, the following vulnerability has been resolved: platform/x86: toshiba_haps: Fix memory leaks in add/remove routines toshiba_haps_add() leaks the haps object allocated by it if it returns an error after allocating that object successfully. toshiba_haps_remove() does not free the object pointed to by toshiba_haps before clearing that pointer, so it becomes unreachable allocated memory. Address these memory leaks by using devm_kzalloc() for allocating the memory in question.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=23d0ba0c908ac10139f0351023c64198d7fc1409 <f93ae43780b759a70734be9bc82c1adcf7f33208, >=23d0ba0c908ac10139f0351023c64198d7fc1409 <128497456756e1b952bd5a912cd073836465109d, >=23d0ba0c908ac10139f0351023c64198d7fc1409 <17f37c4cdf42a9e4915216b9e130fc8baef4cc64, >=23d0ba0c908ac10139f0351023c64198d7fc1409 <5bce10f0f9435afaae3fc4df9a52b01d9b3853dc, >=23d0ba0c908ac10139f0351023c64198d7fc1409 <bf0474356875d005d420f8c6b9ac168566e72e87, >=23d0ba0c908ac10139f0351023c64198d7fc1409 <ca9ff71c15bc8e48529c2033294a519a7749b272, >=23d0ba0c908ac10139f0351023c64198d7fc1409 <f2093e87ddec13e7a920f326c078a5f765ba89c3, =3.17 | f93ae43780b759a70734be9bc82c1adcf7f33208, 128497456756e1b952bd5a912cd073836465109d, 17f37c4cdf42a9e4915216b9e130fc8baef4cc64, 5bce10f0f9435afaae3fc4df9a52b01d9b3853dc, bf0474356875d005d420f8c6b9ac168566e72e87, ca9ff71c15bc8e48529c2033294a519a7749b272, f2093e87ddec13e7a920f326c078a5f765ba89c3 |
| linux-kernel: Kernel | >=5.11.0 <5.15.200, >=5.16.0 <6.1.163, >=6.13.0 <6.18.10, >=6.2.0 <6.6.124, >=6.7.0 <6.12.70, >=3.17.0 <5.10.250 | 5.15.200, 6.1.163, 6.18.10, 6.6.124, 6.12.70, 5.10.250 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket