CVSS 5.5 · Medium EPSS 0,16%
Kerentanan NULL Pointer Dereference pada linux kernel. Skor CVSS 3.1 5.5 (Medium) menurut NVD.
In the Linux kernel, the following vulnerability has been resolved: power: supply: wm97xx: Fix NULL pointer dereference in power_supply_changed() In `probe()`, `request_irq()` is called before allocating/registering a `power_supply` handle. If an interrupt is fired between the call to `request_irq()` and `power_supply_register()`, the `power_supply` handle will be used uninitialized in `power_supply_changed()` in `wm97xx_bat_update()` (triggered from the interrupt handler). This will lead to a `NULL` pointer dereference since Fix this racy `NULL` pointer dereference by making sure the IRQ is requested _after_ the registration of the `power_supply` handle. Since the IRQ is the last thing requests in the `probe()` now, remove the error path for freeing it. Instead add one for unregistering the `power_supply` handle when IRQ request fails.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
· uraikan di kalkulator | Vendor | Produk | Versi terdampak |
|---|---|---|
| linux | linux kernel | Versi 2.6.32 hingga sebelum 5.10.252 |
| linux | linux kernel | Versi 5.11 hingga sebelum 5.15.202 |
| linux | linux kernel | Versi 5.16 hingga sebelum 6.1.165 |
| linux | linux kernel | Versi 6.2 hingga sebelum 6.6.128 |
| linux | linux kernel | Versi 6.7 hingga sebelum 6.12.75 |
| linux | linux kernel | Versi 6.13 hingga sebelum 6.18.14 |
| linux | linux kernel | Versi 6.19 hingga sebelum 6.19.4 |