media: rc: sunxi-cir: Unregister rc device on probe failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b4e3e59fb59c214c5bcf9d1bf2971f100e0dac4f · < 5e6f5bffaa80fc8ecce348ec0e34fed9d843e47e| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s sunxi-cir driver does not unregister an rc device when certain probe steps fail after registration, leaving the registration and associated resources behind. The input does not describe an attacker action or specify whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the sunxi-cir driver should check their exposure; affected versions are not specified.