# CVE-2026-45869: power: supply: wm97xx: Fix NULL pointer dereference in power_supply_changed()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-05-27T12:15:49.107Z
- Modified: 2026-06-25T21:06:30.297Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 7c87942aef52d2120e95ff1dec739998b9f95a78 before 3d7b5391bb95505b3581c1fb77150c467ab92864; from 7c87942aef52d2120e95ff1dec739998b9f95a78 before 438f9a303ea8b55162b2d5376490c2ab3ec165a0; from 7c87942aef52d2120e95ff1dec739998b9f95a78 before 9b7d77cb046b4487e8e511e04e62b6f416ce845c; from 7c87942aef52d2120e95ff1dec739998b9f95a78 before 86183153c299e8bb1839e717286d6c6f39508a59; from 7c87942aef52d2120e95ff1dec739998b9f95a78 before 93bdf715d33cf5ee01c58e8546c2469c71ce082a; from 7c87942aef52d2120e95ff1dec739998b9f95a78 before c0def811ad8d642dca9b6d31a198cc39f5f90837; from 7c87942aef52d2120e95ff1dec739998b9f95a78 before dfaf235d5a6b60cbf115a14a656946303ad007b7; from 7c87942aef52d2120e95ff1dec739998b9f95a78 before 39fe0eac6d755ef215026518985fcf8de9360e9e; 2.6.32 (not affected: before 2.6.32; from 5.10.252 up to 5.10.*; from 5.15.202 up to 5.15.*; from 6.1.165 up to 6.1.*; from 6.6.128 up to 6.6.*; from 6.12.75 up to 6.12.*; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 2.6.32 before 5.10.252; from 5.11 before 5.15.202; from 5.16 before 6.1.165; from 6.2 before 6.6.128; from 6.7 before 6.12.75; from 6.13 before 6.18.14; from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/3d7b5391bb95505b3581c1fb77150c467ab92864> (patch)
- <https://git.kernel.org/stable/c/438f9a303ea8b55162b2d5376490c2ab3ec165a0> (patch)
- <https://git.kernel.org/stable/c/9b7d77cb046b4487e8e511e04e62b6f416ce845c> (patch)
- <https://git.kernel.org/stable/c/86183153c299e8bb1839e717286d6c6f39508a59> (patch)
- <https://git.kernel.org/stable/c/93bdf715d33cf5ee01c58e8546c2469c71ce082a> (patch)
- <https://git.kernel.org/stable/c/c0def811ad8d642dca9b6d31a198cc39f5f90837> (patch)
- <https://git.kernel.org/stable/c/dfaf235d5a6b60cbf115a14a656946303ad007b7> (patch)
- <https://git.kernel.org/stable/c/39fe0eac6d755ef215026518985fcf8de9360e9e> (patch)

## Sources

- CVE List: [CVE-2026-45869](https://www.cve.org/CVERecord?id=CVE-2026-45869), CVE Terms of Use, modified 2026-05-27
- NVD: [CVE-2026-45869](https://nvd.nist.gov/vuln/detail/CVE-2026-45869), Public domain, modified 2026-06-25

---

Page: https://cve.day/CVE-2026-45869 · Whole record: https://cve.day/CVE-2026-45869.json · Rebuilt by cve.day 2026-11-25T22:59:22.481Z
