CVE-2026-23318: ALSA: usb-audio: Use correct version for UAC3 header validation
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usb-audio: Use correct version for UAC3 header validation
The entry of the validators table for UAC3 AC header descriptor is defined with the wrong protocol version UAC_VERSION_2, while it should have been UAC_VERSION_3. This results in the validator never matching for actual UAC3 devices (protocol == UAC_VERSION_3), causing their header descriptors to bypass validation entirely. A malicious USB device presenting a truncated UAC3 header could exploit this to cause out-of-bounds reads when the driver later accesses unvalidated descriptor fields.
The bug was introduced in the same commit as the recently fixed UAC3 feature unit sub-type typo, and appears to be from the same copy-paste error when the UAC3 section was created from the UAC2 section.
The Linux kernel CVE team has assigned CVE-2026-23318 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.4 with commit 57f8770620e9b51c61089751f0b5ad3dbe376ff2 and fixed in 6.1.167 with commit 0dcd1ed96c03459cf14706885c9dd3c1fd8bd29f Issue introduced in 5.4 with commit 57f8770620e9b51c61089751f0b5ad3dbe376ff2 and fixed in 6.6.130 with commit a0c6ae2ea84528f198bf7fd0117f12fd0cf6d7cc Issue introduced in 5.4 with commit 57f8770620e9b51c61089751f0b5ad3dbe376ff2 and fixed in 6.12.77 with commit d3904ca40515272681ae61ad6f561c24f190957f Issue introduced in 5.4 with commit 57f8770620e9b51c61089751f0b5ad3dbe376ff2 and fixed in 6.18.17 with commit 1e5753ff4c2e86aa88516f97a224c90a3d0b133e Issue introduced in 5.4 with commit 57f8770620e9b51c61089751f0b5ad3dbe376ff2 and fixed in 6.19.7 with commit 499ffd15b00dc91ac95c28f76959dfb5cdcc84d5 Issue introduced in 5.4 with commit 57f8770620e9b51c61089751f0b5ad3dbe376ff2 and fixed in 7.0-rc2 with commit 54f9d645a5453d0bfece0c465d34aaf072ea99fa Issue introduced in 4.19.84 with commit 17821e2fb16752f5d363fb5c3f8aab4df41b9bcc Issue introduced in 5.3.11 with commit bf74a46aebb1b5ab5e5f25bafa4ae0a453ba813a
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-23318
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/usb/validate.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/0dcd1ed96c03459cf14706885c9dd3c1fd8bd29f https://git.kernel.org/stable/c/a0c6ae2ea84528f198bf7fd0117f12fd0cf6d7cc https://git.kernel.org/stable/c/d3904ca40515272681ae61ad6f561c24f190957f https://git.kernel.org/stable/c/1e5753ff4c2e86aa88516f97a224c90a3d0b133e https://git.kernel.org/stable/c/499ffd15b00dc91ac95c28f76959dfb5cdcc84d5 https://git.kernel.org/stable/c/54f9d645a5453d0bfece0c465d34aaf072ea99fa