{"id":"CVE-2024-26654","published":"2024-04-01T08:35:19Z","modified":"2026-08-05T11:26:33Z","title":"ALSA: sh: aica: reorder cleanup operations to avoid UAF bugs","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: sh: aica: reorder cleanup operations to avoid UAF bugs\n\nThe dreamcastcard->timer could schedule the spu_dma_work and the\nspu_dma_work could also arm the dreamcastcard->timer.\n\nWhen the snd_pcm_substream is closing, the aica_channel will be\ndeallocated. But it could still be dereferenced in the worker\nthread. The reason is that del_timer() will return directly\nregardless of whether the timer handler is running or not and\nthe worker could be rescheduled in the timer handler. As a result,\nthe UAF bug will happen. The racy situation is shown below:\n\n      (Thread 1)                 |      (Thread 2)\nsnd_aicapcm_pcm_close()          |\n ...                             |  run_spu_dma() //worker\n                                 |    mod_timer()\n  flush_work()                   |\n  del_timer()                    |  aica_period_elapsed() //timer\n  kfree(dreamcastcard->channel)  |    schedule_work()\n                                 |  run_spu_dma() //worker\n  ...                            |    dreamcastcard->channel-> //USE\n\nIn order to mitigate this bug and other possible corner cases,\ncall mod_timer() conditionally in run_spu_dma(), then implement\nPCM sync_stop op to cancel both the timer and worker. The sync_stop\nop will be called from PCM core appropriately when needed.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00349,"percentile":0.20965,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/eeb2a2ca0b8de7e1c66afaf719529154e7dc60b2","tags":[]},{"url":"https://git.kernel.org/stable/c/4206ad65a0ee76920041a755bd3c17c6ba59bba2","tags":[]},{"url":"https://git.kernel.org/stable/c/aa39e6878f61f50892ee2dd9d2176f72020be845","tags":[]},{"url":"https://git.kernel.org/stable/c/8c990221681688da34295d6d76cc2f5b963e83f5","tags":[]},{"url":"https://git.kernel.org/stable/c/9d66ae0e7bb78b54e1e0525456c6b54e1d132046","tags":[]},{"url":"https://git.kernel.org/stable/c/61d4787692c1fccdc268ffa7a891f9c149f50901","tags":[]},{"url":"https://git.kernel.org/stable/c/e955e8a7f38a856fc6534ba4e6bffd4d5cc80ac3","tags":[]},{"url":"https://git.kernel.org/stable/c/3c907bf56905de7d27b329afaf59c2fb35d17b04","tags":[]},{"url":"https://git.kernel.org/stable/c/051e0840ffa8ab25554d6b14b62c9ab9e4901457","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred"]}],"priority":{"score":9.7,"factors":[{"name":"EPSS percentile","points":4.19},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 198de43d758ca2700e2b52b49c0b189b4931466c, < eeb2a2ca0b8de7e1c66afaf719529154e7dc60b2",">= 198de43d758ca2700e2b52b49c0b189b4931466c, < 4206ad65a0ee76920041a755bd3c17c6ba59bba2",">= 198de43d758ca2700e2b52b49c0b189b4931466c, < aa39e6878f61f50892ee2dd9d2176f72020be845",">= 198de43d758ca2700e2b52b49c0b189b4931466c, < 8c990221681688da34295d6d76cc2f5b963e83f5",">= 198de43d758ca2700e2b52b49c0b189b4931466c, < 9d66ae0e7bb78b54e1e0525456c6b54e1d132046",">= 198de43d758ca2700e2b52b49c0b189b4931466c, < 61d4787692c1fccdc268ffa7a891f9c149f50901",">= 198de43d758ca2700e2b52b49c0b189b4931466c, < e955e8a7f38a856fc6534ba4e6bffd4d5cc80ac3",">= 198de43d758ca2700e2b52b49c0b189b4931466c, < 3c907bf56905de7d27b329afaf59c2fb35d17b04",">= 198de43d758ca2700e2b52b49c0b189b4931466c, < 051e0840ffa8ab25554d6b14b62c9ab9e4901457"]},{"vendor":"Linux","product":"Linux","versions":["2.6.23"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T15:53:59.432754Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-23916","exploited":false,"provenance":"source"}}