Skip to contentSkip to conversation

CVE-2025-68346: ALSA: dice: fix buffer overflow in detect_stream_formats()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 24, 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:

ALSA: dice: fix buffer overflow in detect_stream_formats()

The function detect_stream_formats() reads the stream_count value directly from a FireWire device without validating it. This can lead to out-of-bounds writes when a malicious device provides a stream_count value greater than MAX_STREAMS.

Fix by applying the same validation to both TX and RX stream counts in detect_stream_formats().

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

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

	Issue introduced in 4.18 with commit 58579c056c1c9510ae6695ed8e01ee05bbdcfb23 and fixed in 6.12.63 with commit c0a1fe1902ad23e6d48e0f68be1258ccf7a163e6
	Issue introduced in 4.18 with commit 58579c056c1c9510ae6695ed8e01ee05bbdcfb23 and fixed in 6.17.13 with commit 932aa1e80b022419cf9710e970739b7a8794f27c
	Issue introduced in 4.18 with commit 58579c056c1c9510ae6695ed8e01ee05bbdcfb23 and fixed in 6.18.2 with commit 1e1b3207a53e50d5a66289fffc1f7d52cd9c50f9
	Issue introduced in 4.18 with commit 58579c056c1c9510ae6695ed8e01ee05bbdcfb23 and fixed in 6.19-rc1 with commit 324f3e03e8a85931ce0880654e3c3eb38b0f0bba

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-68346

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/firewire/dice/dice-extension.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/c0a1fe1902ad23e6d48e0f68be1258ccf7a163e6
	https://git.kernel.org/stable/c/932aa1e80b022419cf9710e970739b7a8794f27c
	https://git.kernel.org/stable/c/1e1b3207a53e50d5a66289fffc1f7d52cd9c50f9
	https://git.kernel.org/stable/c/324f3e03e8a85931ce0880654e3c3eb38b0f0bba