Skip to contentSkip to conversation

CVE-2025-37934: ASoC: simple-card-utils: Fix pointer check in graph_util_parse_link_direction

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 20, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

ASoC: simple-card-utils: Fix pointer check in graph_util_parse_link_direction

Actually check if the passed pointers are valid, before writing to them. This also fixes a USBAN warning:

UBSAN: invalid-load in ../sound/soc/fsl/imx-card.c:687:25

load of value 255 is not a valid value for type '_Bool'

This is because playback_only is uninitialized and is not written to, as the playback-only property is absent.

The Linux kernel CVE team has assigned CVE-2025-37934 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.11 with commit 844de7eebe97a1c277f8a408457712086c957195 and fixed in 6.12.28 with commit b41a49d5435e0f76da320f231b7252800e8f736f
	Issue introduced in 6.11 with commit 844de7eebe97a1c277f8a408457712086c957195 and fixed in 6.14.6 with commit 9b5b3088c4d1752253491705919bd7d067964288
	Issue introduced in 6.11 with commit 844de7eebe97a1c277f8a408457712086c957195 and fixed in 6.15-rc5 with commit 3cc393d2232ec770b5f79bf0673d67702a3536c3

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2025-37934

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
sound/soc/generic/simple-card-utils.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/b41a49d5435e0f76da320f231b7252800e8f736f
	https://git.kernel.org/stable/c/9b5b3088c4d1752253491705919bd7d067964288
	https://git.kernel.org/stable/c/3cc393d2232ec770b5f79bf0673d67702a3536c3