{"id":"CVE-2026-98837","aliases":["CVE-2026-98837"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: caiaq: unregister the input device when probe fails","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: caiaq: unregister the input device when probe fails\n\nsetup_card() registers the input device, whose name and phys point into\nstruct snd_usb_caiaqdev, and then goes on to snd_card_register() and\nsnd_usb_caiaq_control_init(). If either fails, snd_probe() calls\nsnd_card_free(), which frees the device state but leaves the input\ndevice registered: card_free() only clears the pointer, and the input\ndevice is unregistered from snd_disconnect() alone. Reading its \"uevent\"\nattribute afterwards dereferences freed memory:\n\n  BUG: KASAN: slab-use-after-free in string+0x4a9/0x4f0\n  Read of size 1 at addr ffff8880208f5043 by task caiaq/4967\n   add_uevent_var+0x183/0x3a0\n   input_dev_uevent+0x162/0x900\n   dev_uevent+0x2f1/0x870\n   uevent_show+0x1ca/0x3a0\n   ...\n\nUnregister the input device on the probe error path, as\nsnd_disconnect() does. snd_usb_caiaq_input_disconnect() is a no-op when\nno input device was registered.\n\nReproduced with a raw-gadget Audio Kontrol 1 and a temporary hack that\nmakes snd_usb_caiaq_control_init() fail.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: caiaq: unregister the input device when probe fails\n\nsetup_card() registers the input device, whose name and phys point into\nstruct snd_usb_caiaqdev, and then goes on to snd_card_register() and\nsnd_usb_caiaq_control_init(). If either fails, snd_probe() calls\nsnd_card_free(), which frees the device state but leaves the input\ndevice registered: card_free() only clears the pointer, and the input\ndevice is unregistered from snd_disconnect() alone. Reading its \"uevent\"\nattribute afterwards dereferences freed memory:\n\n  BUG: KASAN: slab-use-after-free in string+0x4a9/0x4f0\n  Read of size 1 at addr ffff8880208f5043 by task caiaq/4967\n   add_uevent_var+0x183/0x3a0\n   input_dev_uevent+0x162/0x900\n   dev_uevent+0x2f1/0x870\n   uevent_show+0x1ca/0x3a0\n   ...\n\nUnregister the input device on the probe error path, as\nsnd_disconnect() does. snd_usb_caiaq_input_disconnect() is a no-op when\nno input device was registered.\n\nReproduced with a raw-gadget Audio Kontrol 1 and a temporary hack that\nmakes snd_usb_caiaq_control_init() fail.","source":"cvelist"}],"published":"2026-10-18T15:50:05.338Z","modified":"2026-10-30T13:21:29.920Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"da938aa9fc7826901921dcea225948ab21a97e45","fixed":"7017c9dda1ebbab428a6fd29c841596b5c9c84d1","status":"affected"},{"type":"git","introduced":"09616e25f502080ba684fc7fcf959d1376ab756d","fixed":"8315ea07ebb2497531ff42dd640396f6f1d4a8f0","status":"affected"},{"type":"git","introduced":"b956e48371f2ff72b76be9a829800ecec963bd45","fixed":"1d5d194594ff616ad36a052bde739d1cf5855b95","status":"affected"},{"type":"git","introduced":"f537e3ad69609f6924a4db6b4a7f6561f5288bdd","fixed":"df2787819bd137111b56b8631dd581b0cce7144d","status":"affected"},{"type":"git","introduced":"6251e3e256337a30160ef59ab1580dde4d1acd28","fixed":"850810c12686f80cdf7530f4f21e0157d904f739","status":"affected"},{"type":"git","introduced":"e59ecd4ee3a450db6cb4e4ecaa3efdd593f80056","fixed":"84727facd8506140cd04f2b0a8b1c4ddeac41cea","status":"affected"},{"type":"git","introduced":"28abd224db4a49560b452115bca3672a20e45b2f","fixed":"2e5a413cc2a489c9427ecd3d73ad764bfb0c7103","status":"affected"},{"type":"git","introduced":"28abd224db4a49560b452115bca3672a20e45b2f","fixed":"0b7bd20f6379bc5e431fd74d866390f5b5b63f3c","status":"affected"},{"type":"git","version":"096dd8519cf2f768e9e14f224b627f7aaee1a9c5","status":"affected"},{"type":"semver","introduced":"5.10.258","fixed":"5.10.273","status":"affected"},{"type":"semver","introduced":"5.15.209","fixed":"5.15.224","status":"affected"},{"type":"semver","introduced":"6.1.175","fixed":"6.1.191","status":"affected"},{"type":"semver","introduced":"6.6.140","fixed":"6.6.160","status":"affected"},{"type":"semver","introduced":"6.12.86","fixed":"6.12.113","status":"affected"},{"type":"semver","introduced":"6.18.27","fixed":"6.18.56","status":"affected"},{"type":"semver","introduced":"7.0.4","fixed":"7.1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.1","status":"unaffected"},{"type":"semver","introduced":"5.10.273","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.113","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.56","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.10","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7017c9dda1ebbab428a6fd29c841596b5c9c84d1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8315ea07ebb2497531ff42dd640396f6f1d4a8f0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1d5d194594ff616ad36a052bde739d1cf5855b95","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/df2787819bd137111b56b8631dd581b0cce7144d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/850810c12686f80cdf7530f4f21e0157d904f739","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/84727facd8506140cd04f2b0a8b1c4ddeac41cea","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e5a413cc2a489c9427ecd3d73ad764bfb0c7103","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0b7bd20f6379bc5e431fd74d866390f5b5b63f3c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98837","url":"https://www.cve.org/CVERecord?id=CVE-2026-98837","licence":"CVE Terms of Use","modified":"2026-10-30T12:40:06.606Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98837","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98837","licence":"Public domain","modified":"2026-10-30T13:21:29.920Z"}],"updatedAt":"2026-11-25T22:59:45.321Z","epss":{"score":0.00211,"percentile":0.12065,"date":"2026-12-01T12:00:22.000Z"}}