Linux
ALSA: virtio: Validate control metadata from the device
In the Linux kernel, the following vulnerability has been resolved: ALSA: virtio: Validate control metadata from the device virtio-snd control handling trusts the device-provided control type and value count returned by the device. That metadata is then used directly to index g_v2a_type_map[] in virtsnd_kctl_info(), and to size loops and memcpy() operations in virtsnd_kctl_get() and virtsnd_kctl_put() against fixed-size virtio_snd_ctl_value and snd_ctl_elem_value arrays. A buggy or malicious device can therefore trigger out-of-bounds access by advertising an invalid control type or an oversized value count. Validate control type and count once in virtsnd_kctl_parse_cfg(), before querying enumerated items or exposing the control to ALSA.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= d6568e3de42dd971a1356f7ba581e6600d53f0a0, < 3243563f99ef5d3949b934bd6390a5679405d0e1
- >= d6568e3de42dd971a1356f7ba581e6600d53f0a0, < 5da9742de22db0dbaa8d414214ab5e1bedde00f9
- >= d6568e3de42dd971a1356f7ba581e6600d53f0a0, < 21584672fd699abe1768241d6c501b2de6139b6a
- >= d6568e3de42dd971a1356f7ba581e6600d53f0a0, < c77a6cbb36ff8cbc1f084d94f8dcda5250935271
Fixed in 3243563f99ef5d3949b934bd6390a5679405d0e1, 5da9742de22db0dbaa8d414214ab5e1bedde00f9, 21584672fd699abe1768241d6c501b2de6139b6a, c77a6cbb36ff8cbc1f084d94f8dcda5250935271
- 6.9
Fixed in 0, 6.12.96, 6.18.39, 7.1.4, 7.2
Mitigation
Upgrade Linux to 3243563f99ef5d3949b934bd6390a5679405d0e1 or 5da9742de22db0dbaa8d414214ab5e1bedde00f9 or 21584672fd699abe1768241d6c501b2de6139b6a or c77a6cbb36ff8cbc1f084d94f8dcda5250935271 or later.
Upgrade Linux to 0 or 6.12.96 or 6.18.39 or 7.1.4 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.