# CVE-2024-26654: ALSA: sh: aica: reorder cleanup operations to avoid UAF bugs

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-04-01 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2024-26654, DEBIAN-CVE-2024-26654
- Record: https://cvemate.com/vulnerability/CVE-2024-26654 · JSON: https://cvemate.com/vulnerability/CVE-2024-26654/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

ALSA: sh: aica: reorder cleanup operations to avoid UAF bugs

The dreamcastcard->timer could schedule the spu_dma_work and the
spu_dma_work could also arm the dreamcastcard->timer.

When the snd_pcm_substream is closing, the aica_channel will be
deallocated. But it could still be dereferenced in the worker
thread. The reason is that del_timer() will return directly
regardless of whether the timer handler is running or not and
the worker could be rescheduled in the timer handler. As a result,
the UAF bug will happen. The racy situation is shown below:

      (Thread 1)                 |      (Thread 2)
snd_aicapcm_pcm_close()          |
 ...                             |  run_spu_dma() //worker
                                 |    mod_timer()
  flush_work()                   |
  del_timer()                    |  aica_period_elapsed() //timer
  kfree(dreamcastcard->channel)  |    schedule_work()
                                 |  run_spu_dma() //worker
  ...                            |    dreamcastcard->channel-> //USE

In order to mitigate this bug and other possible corner cases,
call mod_timer() conditionally in run_spu_dma(), then implement
PCM sync_stop op to cancel both the timer and worker. The sync_stop
op will be called from PCM core appropriately when needed.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.26%, percentile 18.787%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 122)

- debian linux (Debian): \< 6.1.85-1 \| \< 6.7.12-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 4.4.0-258.292 \| \< 4.15.0-228.240 \| \< 5.4.0-189.209 \| \< 5.15.0-116.126 \| \< 6.8.0-35.35
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 4.4.0-1135.141 \| \< 4.4.0-1173.188 \| \< 4.15.0-1172.185 \| \< 5.4.0-1128.138 \| \< 5.15.0-1065.71 \| \< 6.8.0-1009.9
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1065.71~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1128.138~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2110.116 \| All versions (No fix recorded) \| \< 5.4.0-1128.138+fips1 \| \< 5.15.0-1065.71+fips1
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1172.185~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1180.195~14.04.1 \| \< 4.15.0-1180.195~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1133.140 \| \< 5.15.0-1068.77 \| \< 6.8.0-1008.8
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1180.195
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 37)

- <https://git.kernel.org/stable/c/eeb2a2ca0b8de7e1c66afaf719529154e7dc60b2>
- <https://git.kernel.org/stable/c/4206ad65a0ee76920041a755bd3c17c6ba59bba2>
- <https://git.kernel.org/stable/c/aa39e6878f61f50892ee2dd9d2176f72020be845>
- <https://git.kernel.org/stable/c/8c990221681688da34295d6d76cc2f5b963e83f5>
- <https://git.kernel.org/stable/c/9d66ae0e7bb78b54e1e0525456c6b54e1d132046>
- <https://git.kernel.org/stable/c/61d4787692c1fccdc268ffa7a891f9c149f50901>
- <https://git.kernel.org/stable/c/e955e8a7f38a856fc6534ba4e6bffd4d5cc80ac3>
- <https://git.kernel.org/stable/c/3c907bf56905de7d27b329afaf59c2fb35d17b04>
- <https://git.kernel.org/stable/c/051e0840ffa8ab25554d6b14b62c9ab9e4901457>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- <https://ubuntu.com/security/CVE-2024-26654>
- <https://git.kernel.org/linus/051e0840ffa8ab25554d6b14b62c9ab9e4901457>
- <https://www.cve.org/CVERecord?id=CVE-2024-26654>
- <https://ubuntu.com/security/notices/USN-6816-1>
- <https://ubuntu.com/security/notices/USN-6817-1>
- <https://ubuntu.com/security/notices/USN-6817-2>
- <https://ubuntu.com/security/notices/USN-6817-3>
- <https://ubuntu.com/security/notices/USN-6878-1>
- <https://ubuntu.com/security/notices/USN-6896-1>
- <https://ubuntu.com/security/notices/USN-6898-1>

---

Data as of 2026-12-05T06:04:24.731Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
