Use-after-free in Linux kernel - CVE-2026-74387
Published: August 15, 2026
Vulnerability details
The vulnerability allows a local user to cause a denial of service or execute arbitrary code.
The vulnerability exists due to use-after-free in the ALSA sequencer MIDI output handling in sound/core/seq/seq_midi.c when processing MIDI sequencer events during concurrent output teardown. A local user can trigger concurrent event processing and output teardown to cause a denial of service or execute arbitrary code.
The issue occurs because the event_input path can keep using a stale substream or runtime after the last unuse path releases the rawmidi file.
Affected software
Ubuntu
linux-gcp-7.0 (Ubuntu package)
linux-azure-7.0 (Ubuntu package)
How to mitigate CVE-2026-74387
linux-gcp-7.0 (Ubuntu package) - addressed in versions 7.0.0-38.38~24.04.4, 7.0.0-1013.13~24.04.1, 7.0.0-1014.14~24.04.1
linux-azure-7.0 (Ubuntu package) - addressed in versions 7.0.0-1016.16~24.04.1, 7.0.0-1017.17~24.04.1
External References
- https://git.kernel.org/stable/c/11165fe2c5ea0516debe486d91df67abbe36905e
- https://git.kernel.org/stable/c/718f6a56b40875f19e6915799044a02df9abfd52
- https://git.kernel.org/stable/c/936641af564c3d92721704b781e36aaf223efdd2
- https://git.kernel.org/stable/c/d6fd2afb137f52bf00c5210cc44d08ed54dcffb4
- https://git.kernel.org/stable/c/ef7607ab1c8adc6258fb1b27d08e26aecdc18a58
- https://git.kernel.org/stable/c/f5d470b808bc01f70978e22e595c6f7768313406