CVE-2025-21847 ASoC: SOF: stream-ipc: Check for cstream nullity in sof_ipc_msg_data()
A missing null check in the Linux kernel's SOF driver can cause a null pointer dereference, leading to a system crash.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-21847?
CVE-2025-21847 is a medium-severity vulnerability in Linux kernel, published on 12 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: stream-ipc: Check for cstream nullity in sof_ipc_msg_data()
The nullity of sps->cstream should be checked similarly as it is done in sof_set_stream_data_offset() function. Assuming that it is not NULL if sps->stream is NULL is incorrect and can lead to NULL pointer dereference.
Weakness: CWE-476
Which versions are affected by CVE-2025-21847?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-21847?
Apply the vendor's patch.
Is CVE-2025-21847 being exploited?
There is no known exploitation of CVE-2025-21847 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-58544, BELL-CVE-2025-21847, DEBIAN-CVE-2025-21847, GHSA-3p4h-43x6-7rg4, ROOT-OS-UBUNTU-2404-CVE-2025-21847, UBUNTU-CVE-2025-21847.