KernelScan.io

HIGH

power RT9455 UAF

CVE-2026-46270

CVSS 8.4 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

KernelScan AI6.0MEDIUM

01

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.

02

Engine v0.2.0

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.

Affecteddrivers/power/supply/rt9455_charger.c (power supply)

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.

03

BranchFixed inPatch commit
5.105.10.252d4e2e3c3caa2
5.155.15.20262d753b916bd
6.16.1.165a39f8f06216f
6.126.12.752178dc65d45e
6.186.18.1464e15155095f
6.196.19.4721449a15170
6.66.6.128af261f218a76
mainline7.0e2febe375e5e