Skip to contentSkip to conversation

CVE-2026-98742: ALSA: seq: Serialize compat port-info ioctls

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

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: seq: Serialize compat port-info ioctls

The native sequencer ioctl path serializes handler calls with client->ioctl_mutex, but the translated port-info compat path invokes the same handlers through snd_seq_kernel_client_ctl() without taking that mutex.

This lets concurrent compat CREATE_PORT requests pass the port-count check before any request reaches the serialized insertion. The computed integer port index can then exceed the address field range and wrap to an existing index. Subsequent subscriber teardown can resolve the duplicate address to the wrong port and access a freed subscriber.

Take ioctl_mutex while dispatching converted port-info requests, matching the native ioctl path. All translated port-info commands share this helper, so their accesses to the client port state are serialized as well.

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

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

	Issue introduced in 4.15 with commit b3defb791b26ea0683a93a4f49c77ec45ec96f10 and fixed in 6.12.113 with commit 413211dd31cb2ef2fc99fb0aa1a037a97509502c
	Issue introduced in 4.15 with commit b3defb791b26ea0683a93a4f49c77ec45ec96f10 and fixed in 6.18.56 with commit fc5c52848e405b6efb073db5035bb9ebaed11ec4
	Issue introduced in 4.15 with commit b3defb791b26ea0683a93a4f49c77ec45ec96f10 and fixed in 7.2.10 with commit 702d92f361f65d9698c473c7599d471395dc4341
	Issue introduced in 4.15 with commit b3defb791b26ea0683a93a4f49c77ec45ec96f10 and fixed in 7.3-rc6 with commit 95b2e0361c88753afa030c10698be0a1a5b67650
	Issue introduced in 3.2.99 with commit d6693160906d55ba376bf0b88b7c129762170162
	Issue introduced in 3.16.54 with commit 02cbce8576a31df8fca54aaec91ee081076bd79d
	Issue introduced in 3.18.94 with commit 6aab3aa52366a0051e5abf8aae4616c42053fd8e
	Issue introduced in 4.1.50 with commit f8a38ab4cd9624fc5ac8a7f965c7b20f5b62c03c
	Issue introduced in 4.4.115 with commit 623e5c8ae32b39cc8baea83478695dc624935318
	Issue introduced in 4.9.78 with commit e4ff9f294629b65df3f7982cd4faf86b2856b9d7
	Issue introduced in 4.14.15 with commit c3162384aed4cfe3f1a1f40041f3ba8cd7704d88

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

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/seq/seq_compat.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/413211dd31cb2ef2fc99fb0aa1a037a97509502c
	https://git.kernel.org/stable/c/fc5c52848e405b6efb073db5035bb9ebaed11ec4
	https://git.kernel.org/stable/c/702d92f361f65d9698c473c7599d471395dc4341
	https://git.kernel.org/stable/c/95b2e0361c88753afa030c10698be0a1a5b67650