Skip to contentSkip to conversation

CVE-2026-53192: ALSA: timer: Fix UAF at snd_timer_user_params()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 25

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: timer: Fix UAF at snd_timer_user_params()

At releasing a timer object, e.g. when a userspace timer (CONFIG_SND_UTIMER) gets closed and snd_timer_free() is called, it tries to detach the timer instances and release the resources. However, it's still possible that other in-flight tasks are holding the timer instance where the to-be-deleted timer object is associated, and this may lead to racy accesses.

Fortunately, most of ioctls dealing with the timer instance list already have the protection with register_mutex, and this also avoids such races. But, SNDRV_TIMER_IOCTL_PARAMS isn't protected, hence the concurrent ioctl may lead to use-after-free.

This patch just adds the guard with register_mutex to protect snd_timer_user_params() for covering the code path as a quick workaround. It's no hot-path but rather a rarely issued ioctl, so the performance penalty doesn't matter.

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

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

	Fixed in 5.10.259 with commit 92ad2d7f80cad43b046f093e808e11fe919d304a
	Fixed in 5.15.210 with commit 117743d62e1225e208568a3ffc2c07214f1347cb
	Fixed in 6.1.176 with commit b2214914e461d0466548a52dfe4f4ee8ce362276
	Fixed in 6.6.143 with commit e2331730175f74169046d2af8db1b47243df7c7a
	Fixed in 6.12.94 with commit 38034d04d4a75bbca01df2b313ced0bcd0fa3242
	Fixed in 6.18.36 with commit 3d39da65b5c422c5e5afb7d5651b0698d060a827
	Fixed in 7.0.13 with commit 306427adf9b97e29e5958cb9cf3096c6151fc9ff
	Fixed in 7.1 with commit 053a401b592be424fea9d57c789f66cd5d8cec11

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

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/timer.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/92ad2d7f80cad43b046f093e808e11fe919d304a
	https://git.kernel.org/stable/c/117743d62e1225e208568a3ffc2c07214f1347cb
	https://git.kernel.org/stable/c/b2214914e461d0466548a52dfe4f4ee8ce362276
	https://git.kernel.org/stable/c/e2331730175f74169046d2af8db1b47243df7c7a
	https://git.kernel.org/stable/c/38034d04d4a75bbca01df2b313ced0bcd0fa3242
	https://git.kernel.org/stable/c/3d39da65b5c422c5e5afb7d5651b0698d060a827
	https://git.kernel.org/stable/c/306427adf9b97e29e5958cb9cf3096c6151fc9ff
	https://git.kernel.org/stable/c/053a401b592be424fea9d57c789f66cd5d8cec11