CVE-2025-21870

Source
https://cve.org/CVERecord?id=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
AZL (1)
BELL (1)
DEBIAN (1)
ECHO (1)
MINI (1)
OESA (2)
ROOT (2)
SUSE (10)
UBUNTU (1)
Related
Published
2025-03-27T13:38:22Z
Modified
2026-10-22T10:33:21Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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 alh_data is attached, which could lead to NULL pointer dereference. We could check for this NULL pointer in sof_ipc4_prepare_copier_module() and avoid the crash, but a similar loop in sof_ipc4_widget_setup_comp_dai() 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
6b6b47c1aa717a0ed3400e00a81dfea686a41d7f
Fixed
87c8768a96092ce75cd47fe076db5080db7ac515
Fixed
93c6c2e5801aab09ef1ef99f248f3cd323c3f152
Fixed
6fd60136d256b3b948333ebdb3835f41a95ab7ef

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21870.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

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

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21870.json"