soundwire: fix enumeration completion
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
soundwire: fix enumeration completion
The soundwire subsystem uses two completion structures that allow drivers to wait for soundwire device to become enumerated on the bus and initialised by their drivers, respectively.
The code implementing the signalling is currently broken as it does not signal all current and future waiters and also uses the wrong reinitialisation function, which can potentially lead to memory corruption if there are still waiters on the queue.
Not signalling future waiters specifically breaks sound card probe deferrals as codec drivers can not tell that the soundwire device is already attached when being reprobed. Some codec runtime PM implementations suffer from similar problems as waiting for enumeration during resume can also timeout despite the device already having been enumerated.
From the CVE record · Linux
The Linux kernel soundwire subsystem mishandles completion signaling and reinitialization during device enumeration. This can cause probe or resume timeouts and potentially memory corruption if waiters remain queued. The input does not specify how an attacker could trigger the issue or whether access or user interaction is required.
Engineers running Linux kernels with the soundwire subsystem should check their affected versions; none are specified in the input.