Skip to contentSkip to conversation

CVE-2026-98266: ALSA: core: Fix potential UAF after asynchronous card release

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

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: core: Fix potential UAF after asynchronous card release

Usually a sound driver releases the resources assigned to the card via snd_card_free(), and it synchronizes with the whole release procedure. However, when the card is released asynchronously via snd_card_free_when_closed() like USB-audio driver, the situation is slightly different; although the snd_card_disconnect() call at the disconnection guarantees that any newer accesses will be gated, the in-flight tasks might be still accessing to the underlying card->dev device even after the disconnection, which would cause a use-after-free in the end, as reported by fuzzers.

For addressing the bug above, this patch takes the refcount of card->dev at initialization of the card object, and releases at its
destructor. This assures the availability of the card->dev in its
whole lifecycle.

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

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

	Fixed in 6.12.112 with commit 5c0df40aa577e405c458e44e8d458dd78407f4af
	Fixed in 6.18.54 with commit 2dec4642589a663e064e4411d92d6e8fa250d53b
	Fixed in 7.2.8 with commit 398b21608955c9712a012355b69a39407367edc9
	Fixed in 7.3-rc4 with commit fd95e68df6fe66344161a1329cbe5e5805e7b704

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

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/init.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/5c0df40aa577e405c458e44e8d458dd78407f4af
	https://git.kernel.org/stable/c/2dec4642589a663e064e4411d92d6e8fa250d53b
	https://git.kernel.org/stable/c/398b21608955c9712a012355b69a39407367edc9
	https://git.kernel.org/stable/c/fd95e68df6fe66344161a1329cbe5e5805e7b704