Bug 2355328 (CVE-2025-21870) - CVE-2025-21870 kernel: ASoC: SOF: ipc4-topology: Harden loops for looking up ALH copiers
Summary: CVE-2025-21870 kernel: ASoC: SOF: ipc4-topology: Harden loops for looking up ...
Keywords:
Status: NEW
Alias: CVE-2025-21870
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-27 14:01 UTC by OSIDB Bzimport
Modified: 2025-04-01 04:19 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-27 14:01:18 UTC
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

Comment 1 Avinash Hanwate 2025-03-28 09:56:29 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025032735-CVE-2025-21870-4c78@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.