Skip to main content
← All vulnerabilities
CVE-2026-98837

ALSA: caiaq: unregister the input device when probe fails

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.10.273, 5.15.224, 6.1.191, 6.6.160, 6.12.113, and 3 more
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: ALSA: caiaq: unregister the input device when probe fails setup_card() registers the input device, whose name and phys point into struct snd_usb_caiaqdev, and then goes on to snd_card_register() and snd_usb_caiaq_control_init(). If either fails, snd_probe() calls snd_card_free(), which frees the device state but leaves the input device registered: card_free() only clears the pointer, and the input device is unregistered from snd_disconnect() alone. Reading its "uevent" attribute afterwards dereferences freed memory: BUG: KASAN: slab-use-after-free in string+0x4a9/0x4f0 Read of size 1 at addr ffff8880208f5043 by task caiaq/4967 add_uevent_var+0x183/0x3a0 input_dev_uevent+0x162/0x900 dev_uevent+0x2f1/0x870 uevent_show+0x1ca/0x3a0 ... Unregister the input device on the probe error path, as snd_disconnect() does. snd_usb_caiaq_input_disconnect() is a no-op when no input device was registered. Reproduced with a raw-gadget Audio Kontrol 1 and a temporary hack that makes snd_usb_caiaq_control_init() fail.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 5.10.258 · fixed in 5.10.273; From 5.15.209 · fixed in 5.15.224; From 6.1.175 · fixed in 6.1.191; From 6.6.140 · fixed in 6.6.160; From 6.12.86 · fixed in 6.12.113; From 6.18.27 · fixed in 6.18.56; From 7.0.4 · fixed in 7.1

  • Linux Linux

    7.1

  • KernelLinux

    fixed in 6.6.160; From 6.7.0 · fixed in 6.12.113; From 6.13.0 · fixed in 6.18.56; From 6.19.0 · fixed in 7.2.10

References 8

git.kernel.org