Technical impact
During removal of the rt5682 SoundWire audio codec driver, the kernel only cancels scheduled jack detection work when an internal initialization flag remains true. The flag can be cleared by a status update, causing work to stay queued after the driver’s private data is freed and resulting in a use‑after‑free scenario. If an attacker can trigger the removal sequence at the wrong time, they may execute arbitrary kernel code or crash the system. Based on the description, it is inferred that the attacker would need to induce a removal event after the hw_init flag has been cleared, which likely requires local privileged access or a driver that can manipulate the hardware state.
Affected Systems
The vulnerability exists within the Linux kernel’s ASoC subsystem, specifically the rt5682‑sdw driver that supports certain audio codec hardware. Any Linux system that runs a kernel including this driver—and does not apply the upstream fix—is affected. Standard distributions that ship the default kernel with this driver enabled, and custom builds that include the driver, are potentially vulnerable.
Risk and Exploitability
The vulnerability is not listed in the CISA KEV catalog and has an EPSS score of less than 1%, indicating a low likelihood of exploitation but still possible. The CVSS score of 4.1 reflects a moderate severity. Exploitation would still require local privileged access or the ability to trigger the removal sequence after the hw_init flag has been cleared. Should an attacker succeed, the ensuing use‑after‑free could lead to kernel panic or arbitrary code execution.