# CVE-2022-50144: soundwire: revisit driver bind/unbind and callbacks

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-06-18T11:03:05.638Z
- **Modified:** 2026-11-05T20:17:25.490Z

## Who should check

- Anyone running Linux \>= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, \< 250b46505175889c6b5958c3829f610f52199f5f; \>= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, \< 8fd6b03646b9a9e16d1ec19bd724cd6bd78e0ea5; \>= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, \< 432b30f08ca3303d2ebb22352cb04c4b6cfefe65; \>= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, \< bd29c00edd0a5dac8b6e7332bb470cd50f92e893
- Anyone running Linux 4.16

## Description

In the Linux kernel, the following vulnerability has been resolved:

soundwire: revisit driver bind/unbind and callbacks

In the SoundWire probe, we store a pointer from the driver ops into
the 'slave' structure. This can lead to kernel oopses when unbinding
codec drivers, e.g. with the following sequence to remove machine
driver and codec driver.

/sbin/modprobe -r snd\_soc\_sof\_sdw
/sbin/modprobe -r snd\_soc\_rt711

The full details can be found in the BugLink below, for reference the
two following examples show different cases of driver ops/callbacks
being invoked after the driver .remove().

kernel: BUG: kernel NULL pointer dereference, address: 0000000000000150
kernel: Workqueue: events cdns\_update\_slave\_status\_work \[soundwire\_cadence\]
kernel: RIP: 0010:mutex\_lock+0x19/0x30
kernel: Call Trace:
kernel:  ? sdw\_handle\_slave\_status+0x426/0xe00 \[soundwire\_bus 94ff184bf398570c3f8ff7efe9e32529f532e4ae\]
kernel:  ? newidle\_balance+0x26a/0x400
kernel:  ? cdns\_update\_slave\_status\_work+0x1e9/0x200 \[soundwire\_cadence 1bcf98eebe5ba9833cd433323769ac923c9c6f82\]

kernel: BUG: unable to handle page fault for address: ffffffffc07654c8
kernel: Workqueue: pm pm\_runtime\_work
kernel: RIP: 0010:sdw\_bus\_prep\_clk\_stop+0x6f/0x160 \[soundwire\_bus\]
kernel: Call Trace:
kernel:  \<TASK\>
kernel:  sdw\_cdns\_clock\_stop+0xb5/0x1b0 \[soundwire\_cadence 1bcf98eebe5ba9833cd433323769ac923c9c6f82\]
kernel:  intel\_suspend\_runtime+0x5f/0x120 \[soundwire\_intel aca858f7c87048d3152a4a41bb68abb9b663a1dd\]
kernel:  ? dpm\_sysfs\_remove+0x60/0x60

This was not detected earlier in Intel tests since the tests first
remove the parent PCI device and shut down the bus. The sequence
above is a corner case which keeps the bus operational but without a
driver bound.

While trying to solve this kernel oopses, it became clear that the
existing SoundWire bus does not deal well with the unbind case.

Commit 528be501b7d4a ("soundwire: sdw\_slave: add probe\_complete structure and new fields")
added a 'probed' status variable and a 'probe\_complete'
struct completion. This status is however not reset on remove and
likewise the 'probe complete' is not re-initialized, so the
bind/unbind/bind test cases would fail. The timeout used before the
'update\_status' callback was also a bad idea in hindsight, there
should really be no timing assumption as to if and when a driver is
bound to a device.

An initial draft was based on device\_lock() and device\_unlock() was
tested. This proved too complicated, with deadlocks created during the
suspend-resume sequences, which also use the same device\_lock/unlock()
as the bind/unbind sequences. On a CometLake device, a bad DSDT/BIOS
caused spurious resumes and the use of device\_lock() caused hangs
during suspend. After multiple weeks or testing and painful
reverse-engineering of deadlocks on different devices, we looked for
alternatives that did not interfere with the device core.

A bus notifier was used successfully to keep track of DRIVER\_BOUND and
DRIVER\_UNBIND events. This solved the bind-unbind-bind case in tests,
but it can still be defeated with a theoretical corner case where the
memory is freed by a .remove while the callback is in use. The
notifier only helps make sure the driver callbacks are valid, but not
that the memory allocated in probe remains valid while the callbacks
are invoked.

This patch suggests the introduction of a new 'sdw\_dev\_lock' mutex
protecting probe/remove and all driver callbacks. Since this mutex is
'local' to SoundWire only, it does not interfere with existing locks
and does not create deadlocks. In addition, this patch removes the
'probe\_complete' completion, instead we directly invoke the
'update\_status' from the probe routine. That removes any sort of
timing dependency and a much better support for the device/driver
model, the driver could be bound before the bus started, or eons after
the bus started and the hardware would be properly initialized in all
cases.

BugLink: https://github.com/thesofproject/linux/is
---truncated---

## Affected and fixed versions

- Linux: \>= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, \< 250b46505175889c6b5958c3829f610f52199f5f; \>= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, \< 8fd6b03646b9a9e16d1ec19bd724cd6bd78e0ea5; \>= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, \< 432b30f08ca3303d2ebb22352cb04c4b6cfefe65; \>= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, \< bd29c00edd0a5dac8b6e7332bb470cd50f92e893 (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50144. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50144.md
Affected: Linux >= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, < 250b46505175889c6b5958c3829f610f52199f5f; >= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, < 8fd6b03646b9a9e16d1ec19bd724cd6bd78e0ea5; >= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, < 432b30f08ca3303d2ebb22352cb04c4b6cfefe65; >= 56d4fe31af77f684bed62fb…
Fixed in: Linux 250b46505175889c6b5958c3829f610f52199f5f, Linux 8fd6b03646b9a9e16d1ec19bd724cd6bd78e0ea5, Linux 432b30f08ca3303d2ebb22352cb04c4b6cfefe65

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50144 being exploited?

There is no confirmed exploitation: CVE-2022-50144 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50144?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50144?

Linux \>= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, \< 250b46505175889c6b5958c3829f610f52199f5f; \>= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, \< 8fd6b03646b9a9e16d1ec19bd724cd6bd78e0ea5; \>= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, \< 432b30f08ca3303d2ebb22352cb04c4b6cfefe65; \>= 56d4fe31af77f684bed62fb8201e6327e6ddf4e6, \< bd29c00edd0a5dac8b6e7332bb470cd50f92e893; Linux 4.16.

### Is there a fix for CVE-2022-50144?

Yes. Fixed in Linux 250b46505175889c6b5958c3829f610f52199f5f, Linux 8fd6b03646b9a9e16d1ec19bd724cd6bd78e0ea5, Linux 432b30f08ca3303d2ebb22352cb04c4b6cfefe65. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50144?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/250b46505175889c6b5958c3829f610f52199f5f>
- patch: <https://git.kernel.org/stable/c/8fd6b03646b9a9e16d1ec19bd724cd6bd78e0ea5>
- patch: <https://git.kernel.org/stable/c/432b30f08ca3303d2ebb22352cb04c4b6cfefe65>
- patch: <https://git.kernel.org/stable/c/bd29c00edd0a5dac8b6e7332bb470cd50f92e893>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50144>

HTML: <https://flawdb.com/CVE-2022-50144> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50144>
