CVE-2026-138904: media: hantro: disable runtime PM before hardware teardown
In the Linux kernel, the following vulnerability has been resolved:
media: hantro: disable runtime PM before hardware teardown
Removing the Hantro driver may trigger an SError on RK3588: SError Interrupt on CPU6, code 0x00000000be000011 -- SError ... doserror+0x5c/0x74 el1h64errorhandler+0x34/0x50 el1h64error+0x6c/0x70 regmapmmioread32le+0x10/0x20 (P) regmapbusregread+0x6c/0xb4 regmapread+0x60/0xdc regmapread+0x4c/0x80 rockchippdpower+0xe4/0x600 rockchippdpoweroff+0x1c/0x60 genpdpoweroff+0x98/0x198 genpdpoweroff.part.0+0x178/0x288 genpdruntimesuspend+0x210/0x300 rpmcallback+0x48/0x1e0 rpmcallback+0x74/0x80 rpmsuspend+0x10c/0x580 rpmidle+0x134/0x1b8 updateautosuspend+0x30/0xc4 pmruntimeuseautosuspend+0x48/0x64 hantroremove+0x8c/0xa8 [hantrovpu] ...
hantroremove() currently asserts the device resets before disabling runtime PM.
Calling pmruntimedontuseautosuspend() causes an idle device to be runtime-suspended immediately. At that point the Hantro hardware has already been torn down, while the generic power-domain genpd code still performs the power-off sequence. genpd regmapmmioread causes panic subsequently because the reset lines were asserted.
Disable runtime PM before asserting the reset lines so that no runtime-PM transition can race with hardware teardown.
Apply the same ordering to the probe error paths as well.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Disable runtime PM before asserting the reset lines during removal, and apply the same ordering to probe error paths.
Linux Hantro driver runtime PM = disabled before hardware teardown