CVE-2026-142855: ASoC: sdw_utils: clear stale RT711 device reference on exit
In the Linux kernel, the following vulnerability has been resolved:
ASoC: sdwutils: clear stale RT711 device reference on exit
asocsdwrt711exit() drops the reference held in ctx->headsetcodecdev but leaves the pointer populated. If the card cleanup path reaches the exit hook more than once after a failed or deferred probe, a later invocation reuses the stale pointer and calls putdevice() again, underflowing the refcount and leading to oopses when later probe, driver bind, or suspend paths walk the SoundWire bus after the device reference was released. Observed as boot- and suspend-time oopses on an arm64 platform with an RT712 headset codec, reproducible deterministically by repeated machine-driver probe cycling with the codec drivers unloaded.
Clear the pointer after putdevice() so repeated cleanup becomes a no-op, which also makes the existing NULL check at the top of the exit hook effective. This matches what commit 046173b98de3 ("ASoC: sdwutils: fix double putdevice() on aggregated amps") did for the aggregated amp references.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4
Event History
Frequently Asked Questions
What conditions are needed to trigger the failure?
The card cleanup path must invoke the RT711 exit hook more than once, such as after a failed or deferred probe. The subsequent invocation uses the stale device pointer and performs another put_device(), underflowing the reference count.
Which systems are most likely to be exposed?
Systems using the affected SoundWire ASoC RT711 headset-codec cleanup path are exposed when repeated cleanup can occur. The issue was observed on an arm64 platform with an RT712 headset codec during repeated machine-driver probe cycling while codec drivers were unloaded.
What can happen after the reference count is underflowed?
Later probe, driver-bind, or suspend operations that walk the SoundWire bus can encounter a released device reference and cause kernel oopses. Reported symptoms include boot-time and suspend-time oopses.
How does the fix prevent repeated cleanup from causing a second release?
After dropping the reference held in ctx->headset_codec_dev, the fix clears that pointer. A later exit-hook call then sees a NULL pointer and becomes a no-op.