Skip to contentSkip to conversation

CVE-2026-64001: ALSA: pcm: oss: Fix setup list UAF on proc write error

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

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: pcm: oss: Fix setup list UAF on proc write error

snd_pcm_oss_proc_write() links a newly allocated setup entry into the OSS setup list before duplicating the task name. If the task-name allocation fails, the error path frees the already linked entry and leaves setup_list pointing at freed memory.

A later OSS device open can then walk the stale list entry in snd_pcm_oss_look_for_setup() and dereference freed memory.

Allocate the task name and initialize the setup entry before publishing the entry on setup_list. Also fetch the initial proc read iterator only after taking setup_mutex, so all setup_list traversal follows the same list lifetime rules.

The Linux kernel CVE team has assigned CVE-2026-64001 to this issue.

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

	Issue introduced in 2.6.17 with commit 060d77b9c04acd7aef60790398a53f731db8c8fe and fixed in 6.12.93 with commit 8be4efd0dc0093eb7a02ad1aac936bca2a1f04ce
	Issue introduced in 2.6.17 with commit 060d77b9c04acd7aef60790398a53f731db8c8fe and fixed in 6.18.35 with commit e13922bb97b4e6f94f8ac02d034f2d4bd65eeb3c
	Issue introduced in 2.6.17 with commit 060d77b9c04acd7aef60790398a53f731db8c8fe and fixed in 7.0.12 with commit be387230dc22d870afd0e5d35912b07c2bc323bd
	Issue introduced in 2.6.17 with commit 060d77b9c04acd7aef60790398a53f731db8c8fe and fixed in 7.1 with commit 4cc54bdd54b337e77115be5b55577d1c58608eae

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-2026-64001

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/core/oss/pcm_oss.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/8be4efd0dc0093eb7a02ad1aac936bca2a1f04ce
	https://git.kernel.org/stable/c/e13922bb97b4e6f94f8ac02d034f2d4bd65eeb3c
	https://git.kernel.org/stable/c/be387230dc22d870afd0e5d35912b07c2bc323bd
	https://git.kernel.org/stable/c/4cc54bdd54b337e77115be5b55577d1c58608eae