{"id":"CVE-2026-31581","aliases":["CVE-2026-31581"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: 6fire: fix use-after-free on disconnect","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: 6fire: fix use-after-free on disconnect\n\nIn usb6fire_chip_abort(), the chip struct is allocated as the card's\nprivate data (via snd_card_new with sizeof(struct sfire_chip)).  When\nsnd_card_free_when_closed() is called and no file handles are open, the\ncard and embedded chip are freed synchronously.  The subsequent\nchip->card = NULL write then hits freed slab memory.\n\nCall trace:\n  usb6fire_chip_abort sound/usb/6fire/chip.c:59 [inline]\n  usb6fire_chip_disconnect+0x348/0x358 sound/usb/6fire/chip.c:182\n  usb_unbind_interface+0x1a8/0x88c drivers/usb/core/driver.c:458\n  ...\n  hub_event+0x1a04/0x4518 drivers/usb/core/hub.c:5953\n\nFix by moving the card lifecycle out of usb6fire_chip_abort() and into\nusb6fire_chip_disconnect().  The card pointer is saved in a local\nbefore any teardown, snd_card_disconnect() is called first to prevent\nnew opens, URBs are aborted while chip is still valid, and\nsnd_card_free_when_closed() is called last so chip is never accessed\nafter the card may be freed.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: 6fire: fix use-after-free on disconnect\n\nIn usb6fire_chip_abort(), the chip struct is allocated as the card's\nprivate data (via snd_card_new with sizeof(struct sfire_chip)).  When\nsnd_card_free_when_closed() is called and no file handles are open, the\ncard and embedded chip are freed synchronously.  The subsequent\nchip->card = NULL write then hits freed slab memory.\n\nCall trace:\n  usb6fire_chip_abort sound/usb/6fire/chip.c:59 [inline]\n  usb6fire_chip_disconnect+0x348/0x358 sound/usb/6fire/chip.c:182\n  usb_unbind_interface+0x1a8/0x88c drivers/usb/core/driver.c:458\n  ...\n  hub_event+0x1a04/0x4518 drivers/usb/core/hub.c:5953\n\nFix by moving the card lifecycle out of usb6fire_chip_abort() and into\nusb6fire_chip_disconnect().  The card pointer is saved in a local\nbefore any teardown, snd_card_disconnect() is called first to prevent\nnew opens, URBs are aborted while chip is still valid, and\nsnd_card_free_when_closed() is called last so chip is never accessed\nafter the card may be freed.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nALSA: 6fire: corregir uso después de liberación al desconectar\n\nEn usb6fire_chip_abort(), la estructura chip se asigna como datos privados de la tarjeta (a través de snd_card_new con sizeof(struct sfire_chip)). Cuando se llama a snd_card_free_when_closed() y no hay descriptores de archivo abiertos, la tarjeta y el chip incrustado se liberan sincrónicamente. La escritura posterior de chip  ->  card = NULL entonces accede a memoria slab liberada.\n\nTraza de llamada:\n  usb6fire_chip_abort sound/usb/6fire/chip.c:59 [inline]\n  usb6fire_chip_disconnect+0x348/0x358 sound/usb/6fire/chip.c:182\n  usb_unbind_interface+0x1a8/0x88c drivers/usb/core/driver.c:458\n  ...\n  hub_event+0x 1a04/0x 4518 drivers/usb/core/hub.c:5953\n\nSolución moviendo el ciclo de vida de la tarjeta fuera de usb6fire_chip_abort() y hacia usb6fire_chip_disconnect(). El puntero de la tarjeta se guarda en una variable local antes de cualquier desmantelamiento, se llama primero a snd_card_disconnect() para evitar nuevas aperturas, los URB se abortan mientras el chip sigue siendo válido, y se llama a snd_card_free_when_closed() al final para que el chip nunca sea accedido después de que la tarjeta pueda ser liberada.","source":"nvd"}],"published":"2026-04-24T14:42:11.557Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"f2d06d4e129e2508e356136f99bb20a332ff1a00","fixed":"e719232f4552e29de8027a83918ea94434be87af","status":"affected"},{"type":"git","introduced":"b889a7d68d7e76b8795b754a75c91a2d561d5e8c","fixed":"e247a0e01d15ed420f77ec5e2335721bf430a5b3","status":"affected"},{"type":"git","introduced":"ea8cc56db659cf0ae57073e32a4735ead7bd7ee3","fixed":"ba88461f7653636c48321ca993006a74724c2f41","status":"affected"},{"type":"git","introduced":"b754e831a94f82f2593af806741392903f359168","fixed":"e88354b381e2006de63d6b052ed7005c9a47d00e","status":"affected"},{"type":"git","introduced":"57860a80f03f9dc69a34a5c37b0941ad032a0a8c","fixed":"af75b486f7e883e3422ece23c8d727e6815144a0","status":"affected"},{"type":"git","introduced":"a0810c3d6dd2d29a9b92604d682eacd2902ce947","fixed":"d21e8a2af4869b5890b34e081d5aeadc93e9cd5c","status":"affected"},{"type":"git","introduced":"a0810c3d6dd2d29a9b92604d682eacd2902ce947","fixed":"3dc20d1981d6a67d8184498a5da272942dde1e65","status":"affected"},{"type":"git","introduced":"a0810c3d6dd2d29a9b92604d682eacd2902ce947","fixed":"51f6532790b74ffdd6970bc848358a2838c1c185","status":"affected"},{"type":"git","introduced":"a0810c3d6dd2d29a9b92604d682eacd2902ce947","fixed":"b9c826916fdce6419b94eb0cd8810fdac18c2386","status":"affected"},{"type":"git","version":"74357d0b5cd3ef544752bc9f21cbeee4902fae6c","status":"affected"},{"type":"git","version":"273eec23467dfbfbd0e4c10302579ba441fb1e13","status":"affected"},{"type":"git","version":"0df7f4b5cc10f5adf98be0845372e9eef7bb5b09","status":"affected"},{"type":"semver","introduced":"5.10.231","fixed":"5.10.258","status":"affected"},{"type":"semver","introduced":"5.15.174","fixed":"5.15.209","status":"affected"},{"type":"semver","introduced":"6.1.120","fixed":"6.1.175","status":"affected"},{"type":"semver","introduced":"6.6.64","fixed":"6.6.136","status":"affected"},{"type":"semver","introduced":"6.12.2","fixed":"6.12.83","status":"affected"},{"type":"semver","introduced":"4.19.325","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.4.287","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"6.11.11","fixed":"6.12","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.13","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.136","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.83","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.24","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.14","lastAffected":"6.19.*","status":"unaffected"},{"type":"semver","introduced":"7.0.1","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"6.6.136"},{"status":"affected","introduced":"6.12","fixed":"6.12.83"},{"status":"affected","introduced":"6.13","fixed":"6.18.24"},{"status":"affected","introduced":"6.19","fixed":"6.19.14"},{"status":"affected","introduced":"7.0","fixed":"7.0.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e719232f4552e29de8027a83918ea94434be87af","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e247a0e01d15ed420f77ec5e2335721bf430a5b3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba88461f7653636c48321ca993006a74724c2f41","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e88354b381e2006de63d6b052ed7005c9a47d00e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/af75b486f7e883e3422ece23c8d727e6815144a0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d21e8a2af4869b5890b34e081d5aeadc93e9cd5c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3dc20d1981d6a67d8184498a5da272942dde1e65","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/51f6532790b74ffdd6970bc848358a2838c1c185","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b9c826916fdce6419b94eb0cd8810fdac18c2386","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31581","url":"https://www.cve.org/CVERecord?id=CVE-2026-31581","licence":"CVE Terms of Use","modified":"2026-06-14T17:42:07.970Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31581","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31581","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.494Z","epss":{"score":0.00133,"percentile":0.03029,"date":"2026-12-01T12:00:22.000Z"}}