CVSS 3.1
Вероятност да бъде експлоатирана в следващите 30 дни (EPSS)
Атакува се
Време до експлоатация
Атакува се локално, без особени условия, с обикновен потребителски вход и без действие от потребителя.
- Експлоатация: няма данни за експлоатация
- Атаката не може да се автоматизира
Описание
Оригинално описание
In the Linux kernel, the following vulnerability has been resolved: ALSA: seq: Serialize UMP output teardown with event_input seq_ump_process_event() borrows client->out_rfile.output without synchronizing with the first-open and last-close transition in seq_ump_client_open() and seq_ump_client_close(). The last output unuse can therefore drop opened[STR_OUT] to zero and release the rawmidi file while an in-flight event_input callback is still inside snd_rawmidi_kernel_write(). That leaves the rawmidi substream runtime exposed to teardown before the write path has taken its own buffer reference. Add a per-client rwlock for the event_input-visible output file. Publish a newly opened output file under the write side, and hold the read side from the output lookup through snd_rawmidi_kernel_write(). The last output close copies and clears the visible output file under the write side, then drops the lock and releases the saved rawmidi file. Use IRQ-safe rwlock guards because event_input can also be reached from atomic sequencer delivery. The buggy scenario involves two paths, with each column showing the order within that path: path A label: event_input path path B label: last unuse path 1. seq_ump_process_event() reads 1. seq_ump_client_close() client->out_rfile.output. drops opened[STR_OUT] to zero. 2. snd_rawmidi_kernel_write1() 2. snd_rawmidi_kernel_release() has not yet pinned runtime. closes the output file. 3. The writer continues using 3. close_substream() frees the borrowed substream. substream->runtime. This keeps the output substream and runtime alive for the full event_input write while keeping rawmidi release outside the rwlock. KASAN reproduced this as a slab-use-after-free in snd_rawmidi_kernel_write1(), with allocation through seq_ump_use()/snd_seq_port_connect() and free through seq_ump_unuse()/snd_seq_port_disconnect(). Validation reproduced this kernel report: KASAN
Засегнати продукти
- Linux Linux: 81fd444aa371261cd33f31d4ffd80faeeeab0cc9 преди 8ba1c4ddbb1c67d34bb440aecb9f5690ed3f64cb; 81fd444aa371261cd33f31d4ffd80faeeeab0cc9 преди 0cb1ad795570167558530d6194297ac2396a1991; 81fd444aa371261cd33f31d4ffd80faeeeab0cc9 преди 3aab4a58d23fb22dac5b558bbe5df1a8dad00b4b; 81fd444aa371261cd33f31d4ffd80faeeeab0cc9 преди ef46b616a4c219185bbf10ebcbacb571583fd0e4; 81fd444aa371261cd33f31d4ffd80faeeeab0cc9 преди 60a1969fae6209644698fca91c185d153674f631
- Linux Linux: 6.5; преди 6.5; 6.6.142 до 6.6.*; 6.12.92 до 6.12.*; 6.18.34 до 6.18.*; 7.0.11 до 7.0.*; от 7.1 нататък
Вид слабост
История
- 19 юли 2026 Публикувано
Други уязвимости в Linux Linux
Първоизточници
- https://www.cve.org/CVERecord?id=CVE-2026-64029
- https://nvd.nist.gov/vuln/detail/CVE-2026-64029
- https://git.kernel.org/stable/c/8ba1c4ddbb1c67d34bb440aecb9f5690ed3f64cb
- https://git.kernel.org/stable/c/0cb1ad795570167558530d6194297ac2396a1991
- https://git.kernel.org/stable/c/3aab4a58d23fb22dac5b558bbe5df1a8dad00b4b
- https://git.kernel.org/stable/c/ef46b616a4c219185bbf10ebcbacb571583fd0e4
- https://git.kernel.org/stable/c/60a1969fae6209644698fca91c185d153674f631