CVE-2025-21870

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-21870
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21870.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21870
Downstream
Related
Published
2025-03-27T13:38:22.849Z
Modified
2025-11-28T02:35:09.633106Z
Summary
ASoC: SOF: ipc4-topology: Harden loops for looking up ALH copiers
Details

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

ASoC: SOF: ipc4-topology: Harden loops for looking up ALH copiers

Other, non DAI copier widgets could have the same stream name (sname) as the ALH copier and in that case the copier->data is NULL, no alhdata is attached, which could lead to NULL pointer dereference. We could check for this NULL pointer in sofipc4preparecopiermodule() and avoid the crash, but a similar loop in sofipc4widgetsetupcompdai() will miscalculate the ALH device count, causing broken audio.

The correct fix is to harden the matching logic by making sure that the 1. widget is a DAI widget - so dai = w->private is valid 2. the dai (and thus the copier) is ALH copier

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21870.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a150345aa758492e05d2934f318ce7c2566b1cfe
Fixed
87c8768a96092ce75cd47fe076db5080db7ac515
Fixed
93c6c2e5801aab09ef1ef99f248f3cd323c3f152
Fixed
6fd60136d256b3b948333ebdb3835f41a95ab7ef

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.0.0
Fixed
6.12.17
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.5