HIGH
power RT9455 UAF
CVE-2026-46270
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
KernelScan AI6.0MEDIUM
01Description
In the Linux kernel, the following vulnerability has been resolved: power: supply: rt9455: Fix use-after-free in power_supply_changed() Using the `devm_` variant for requesting IRQ _before_ the `devm_` variant for allocating/registering the `power_supply` handle, means that the `power_supply` handle will be deallocated/unregistered _before_ the interrupt handler (since `devm_` naturally deallocates in reverse allocation order). This means that during removal, there is a race condition where an interrupt can fire just _after_ the `power_supply` handle has been freed, *but* just _before_ the corresponding unregistration of the IRQ handler has run. This will lead to the IRQ handler calling `power_supply_changed()` with a freed `power_supply` handle. Which usually crashes the system or otherwise silently corrupts the memory... Note that there is a similar situation which can also happen during `probe()`; the possibility of an interrupt firing _before_ registering the `power_supply` handle. This would then lead to the nasty situation of using the `power_supply` handle *uninitialized* in `power_supply_changed()`. Fix this racy use-after-free by making sure the IRQ is requested _after_ the registration of the `power_supply` handle.
02KernelScan AI Analysis
Risk summary
Devices using the RT9455 battery charger are vulnerable to kernel memory corruption and potential information disclosure through a use-after-free race condition. An attacker with physical access can trigger charger interrupts (e.g., via a USB charging port) during device probe or driver removal to cause kernel crashes, memory corruption, or leak kernel heap data.
Vulnerability analysis
The vulnerability stems from incorrect ordering of devm_ resource allocation in the RT9455 charger driver. The IRQ handler was registered before the power_supply handle, creating race windows where interrupts could fire with a freed or uninitialized power_supply pointer. During driver removal, devm deallocation order frees the power_supply before unregistering the IRQ; during probe, a pending interrupt can fire before power_supply registration completes. The fix reorders the calls to ensure the power_supply handle is always valid when the IRQ handler executes. The race can be triggered by hardware events on the charger input (typically a USB charging port), requiring physical access to the device.
03Fix Versions
| Branch | Fixed in | Patch commit |
|---|---|---|
| 5.10 | 5.10.252 | d4e2e3c3caa2 |
| 5.15 | 5.15.202 | 62d753b916bd |
| 6.1 | 6.1.165 | a39f8f06216f |
| 6.12 | 6.12.75 | 2178dc65d45e |
| 6.18 | 6.18.14 | 64e15155095f |
| 6.19 | 6.19.4 | 721449a15170 |
| 6.6 | 6.6.128 | af261f218a76 |
| mainline | 7.0 | e2febe375e5e |