KernelScan.io

HIGH Introduced in 3.17

sunxi-cir RcDevice Leak

CVE-2026-89883

CVSS 7.8 / 10.0 NVD

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

KernelScan AI4.8MEDIUM

01

In the Linux kernel, the following vulnerability has been resolved: media: rc: sunxi-cir: Unregister rc device on probe failure After rc_register_device() succeeds, later probe failures must undo the registration with rc_unregister_device(). The current error path jumps to the allocation cleanup label and only calls rc_free_device(), leaving the rc device registration and resources created by rc_register_device() behind. Add a registered-device unwind label for the IRQ lookup, IRQ request, and hardware initialization failure paths. Keep rc_free_device() for failures before rc_register_device() succeeds.

02

Engine v0.6.0

Risk summary

A bug in the Allwinner (sunxi) infrared remote controller driver leaves an RC device registered when a late probe step fails, leaking kernel resources and potentially causing a kernel oops when the dangling device is later accessed. The issue is reachable only on systems with the sunxi CIR hardware and requires the driver to be loaded and probe to partially fail, which is typically under administrator control.

Affecteddrivers/media/rc/sunxi-cir.c (sunxi IR remote controller driver)

Vulnerability analysis

When the sunxi infrared remote controller driver sets up a device, it registers the remote-control device before finishing the rest of initialization. If a later setup step fails, the cleanup path frees the driver structure without first removing the active registration, leaving kernel resources and device entries behind. This stale state can trigger a crash or leak resources if the dangling registration is accessed later. The fix ensures the registration is properly removed before cleanup whenever a failure happens after the device has been registered. The issue only affects systems built with the Allwinner sunxi CIR hardware, and the failing setup path is normally reached only under privileged or boot-time control.

03

BranchIntroducedFixed inPatch commit
5.153.175.15.2214655a591478e
6.13.176.1.1884efd7146dcf9
6.123.176.12.11059951b8a87ef
6.183.176.18.515b58d8c206f3
mainline3.177.3-rc1479aa6fa8c50
6.63.176.6.157826763adbd8b
7.23.177.2.55e6f5bffaa80
cip/6.123.176.12.111-cip3259951b8a87ef