CVE-2026-89883: media: rc: sunxi-cir: Unregister rc device on probe failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-89883 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.17 with commit b4e3e59fb59c214c5bcf9d1bf2971f100e0dac4f and fixed in 5.15.221 with commit 4655a591478e4b31a3396695a2457daad9d4c899 Issue introduced in 3.17 with commit b4e3e59fb59c214c5bcf9d1bf2971f100e0dac4f and fixed in 6.1.188 with commit 4efd7146dcf959afe64e9c51531cd8f82e60eab6 Issue introduced in 3.17 with commit b4e3e59fb59c214c5bcf9d1bf2971f100e0dac4f and fixed in 6.6.157 with commit 826763adbd8bd3137c5b3756650da473dc6216d5 Issue introduced in 3.17 with commit b4e3e59fb59c214c5bcf9d1bf2971f100e0dac4f and fixed in 6.12.110 with commit 59951b8a87ef4fb4b5b9409f70ba07663681a040 Issue introduced in 3.17 with commit b4e3e59fb59c214c5bcf9d1bf2971f100e0dac4f and fixed in 6.18.51 with commit 5b58d8c206f37525c8217171e1f3e91dd2fa55e5 Issue introduced in 3.17 with commit b4e3e59fb59c214c5bcf9d1bf2971f100e0dac4f and fixed in 7.2.5 with commit 5e6f5bffaa80fc8ecce348ec0e34fed9d843e47e Issue introduced in 3.17 with commit b4e3e59fb59c214c5bcf9d1bf2971f100e0dac4f and fixed in 7.3-rc1 with commit 479aa6fa8c50f1052f1451326ef7d4d586d340c3
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-89883
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/media/rc/sunxi-cir.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/4655a591478e4b31a3396695a2457daad9d4c899 https://git.kernel.org/stable/c/4efd7146dcf959afe64e9c51531cd8f82e60eab6 https://git.kernel.org/stable/c/826763adbd8bd3137c5b3756650da473dc6216d5 https://git.kernel.org/stable/c/59951b8a87ef4fb4b5b9409f70ba07663681a040 https://git.kernel.org/stable/c/5b58d8c206f37525c8217171e1f3e91dd2fa55e5 https://git.kernel.org/stable/c/5e6f5bffaa80fc8ecce348ec0e34fed9d843e47e https://git.kernel.org/stable/c/479aa6fa8c50f1052f1451326ef7d4d586d340c3