{"id":"CVE-2026-31581","published":"2026-04-24T14:42:11Z","modified":"2026-06-14T17:42:07Z","title":"ALSA: 6fire: fix use-after-free on disconnect","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00181,"percentile":0.04503,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/e719232f4552e29de8027a83918ea94434be87af","tags":[]},{"url":"https://git.kernel.org/stable/c/e247a0e01d15ed420f77ec5e2335721bf430a5b3","tags":[]},{"url":"https://git.kernel.org/stable/c/ba88461f7653636c48321ca993006a74724c2f41","tags":[]},{"url":"https://git.kernel.org/stable/c/e88354b381e2006de63d6b052ed7005c9a47d00e","tags":[]},{"url":"https://git.kernel.org/stable/c/af75b486f7e883e3422ece23c8d727e6815144a0","tags":[]},{"url":"https://git.kernel.org/stable/c/d21e8a2af4869b5890b34e081d5aeadc93e9cd5c","tags":[]},{"url":"https://git.kernel.org/stable/c/3dc20d1981d6a67d8184498a5da272942dde1e65","tags":[]},{"url":"https://git.kernel.org/stable/c/51f6532790b74ffdd6970bc848358a2838c1c185","tags":[]},{"url":"https://git.kernel.org/stable/c/b9c826916fdce6419b94eb0cd8810fdac18c2386","tags":[]}],"priority":{"score":0.9,"factors":[{"name":"EPSS percentile","points":0.9}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f2d06d4e129e2508e356136f99bb20a332ff1a00, < e719232f4552e29de8027a83918ea94434be87af",">= b889a7d68d7e76b8795b754a75c91a2d561d5e8c, < e247a0e01d15ed420f77ec5e2335721bf430a5b3",">= ea8cc56db659cf0ae57073e32a4735ead7bd7ee3, < ba88461f7653636c48321ca993006a74724c2f41",">= b754e831a94f82f2593af806741392903f359168, < e88354b381e2006de63d6b052ed7005c9a47d00e",">= 57860a80f03f9dc69a34a5c37b0941ad032a0a8c, < af75b486f7e883e3422ece23c8d727e6815144a0",">= a0810c3d6dd2d29a9b92604d682eacd2902ce947, < d21e8a2af4869b5890b34e081d5aeadc93e9cd5c",">= a0810c3d6dd2d29a9b92604d682eacd2902ce947, < 3dc20d1981d6a67d8184498a5da272942dde1e65",">= a0810c3d6dd2d29a9b92604d682eacd2902ce947, < 51f6532790b74ffdd6970bc848358a2838c1c185",">= a0810c3d6dd2d29a9b92604d682eacd2902ce947, < b9c826916fdce6419b94eb0cd8810fdac18c2386","74357d0b5cd3ef544752bc9f21cbeee4902fae6c"]},{"vendor":"Linux","product":"Linux","versions":["6.13"]}],"euvd":{"id":"EUVD-2026-25474","exploited":false,"provenance":"source"}}