Impact
A use‑after‑free condition in the appleir HID driver allows the driver to dereference a freed input device object during timer callbacks or USB URB completions, which can lead to a kernel crash or, if an attacker can influence the freed memory, arbitrary kernel code execution. The bug arises when a key is pressed shortly before the device is disconnected, causing the timer that reports key release or battery changes to fire after the input device has been freed but before all pending callbacks are drained. The fix introduces a removing flag and synchron that no path can access the freed object during teardown.
Affected Systems
Any Linux system running a kernel that includes the appleir driver prior to receiving this patch. Vendor: Linux; product: Linux kernel. No specific affected version was provided, so all kernels before the fix are potentially at risk.
Risk and Exploitability
The EPSS score is less than 1%, indicating a low probability of exploitation in the current landscape, and the vulnerability is not listed in CISA’s KEV catalog. However, the bug remains a moderate‑severity kernel flaw because it can lead to privilege escalation or denial of service if an attacker can control a USB HID device, such as an Apple iOS device, connected to the target machine. The likely attack vector is a local or USB‑device attacker who can force the driver into the race window by pressing keys immediately before disconnecting the device. Even though exploitation is currently unlikely, the moderate severity (CVSS 5.5) warrants patching.
OpenCVE Enrichment
Debian DLA
Debian DSA