Description
In the Linux kernel, the following vulnerability has been resolved:
ALSA: seq: oss: Fix UAF at handling events with embedded SysEx data
The OSS sequencer processes the input MIDI bytes into a sequencer
event to be dispatched later (in snd_seq_oss_midi_putc() called from
snd_seq_oss_process_event()). When it's a SysEx data, the event
record contains data.ext.ptr pointer to the original SysEx bytes, and
the referred data is copied into the pool afterwards at dispatching.
The problem is that, if the sequencer port gets closed concurrently
before the dispatch, the OSS sequencer core also releases the
resources (in snd_seq_oss_midi_check_exit_port()), while the pending
event may hold a stale pointer, eventually leading to a UAF at a later
dispatch.
Fortunately, there is already a refcounting mechanism (snd_use_lock_t)
for the OSS MIDI device access, and for addressing the issue above, we
just need to extend the refcount until the event gets dispatched.
This patch extends snd_seq_oss_process_event() to give back the
refcount object, which is in turn released after calling the sequencer
dispatcher with the given event in the caller side.
According to the original report, KASAN report as below:
KASAN slab-use-after-free in snd_seq_event_dup+0x40c/0x470
RIP: 0033:0x7f2cb66a6340
Read of size 6
Call trace:
dump_stack_lvl+0x73/0xb0 (?:?)
print_report+0xd1/0x650 (?:?)
srso_alias_return_thunk+0x5/0xfbef5 (?:?)
__virt_addr_valid+0x1a7/0x340 (?:?)
kasan_complete_mode_report_info+0x64/0x200 (?:?)
kasan_report+0xf7/0x130 (?:?)
snd_seq_event_dup+0x40c/0x470 (?:?)
kasan_check_range+0x10c/0x1c0 (?:?)
__asan_memcpy+0x27/0x70 (?:?)
snd_seq_event_dup+0x9/0x470 (?:?)
snd_seq_client_enqueue_event+0x139/0x240 (?:?)
_raw_spin_unlock_irqrestore+0x4b/0x60 (?:?)
snd_seq_kernel_client_enqueue+0x102/0x120 (?:?)
snd_seq_oss_write+0x416/0x4e0 (?:?)
apparmor_file_permission+0x20/0x30 (?:?)
odev_write+0x3b/0x60 (?:?)
vfs_write+0x1ce/0x850 (?:?)
lock_release+0xc8/0x2a0 (?:?)
__kasan_check_write+0x18/0x20 (?:?)
__mutex_unlock_slowpath+0x129/0x510 (?:?)
ksys_write+0xe1/0x180 (?:?)
mutex_unlock+0x16/0x20 (?:?)
odev_ioctl+0x65/0xc0 (?:?)
__x64_sys_write+0x46/0x60 (?:?)
x64_sys_call+0x7d/0x20d0 (?:?)
do_syscall_64+0xc1/0x360 (arch/x86/entry/syscall_64.c:87)
entry_SYSCALL_64_after_hwframe+0x77/0x7f (?:?)
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 2.6.12 | 6.1.191 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 7.1.5-1 | — |
| Debian 13 | linux | 6.12.115-2 | — |
| Debian 12 | linux | No fix yet | — |
| Debian 12 | linux-6.12 | 6.12.115-2~deb12u1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 24.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu 26.04 LTS | linux | 7.0.0-38.38 | USN-8887-1 |
| Ubuntu 26.04 LTS | linux-aws +1 | 7.0.0-1014.14 | USN-8887-1 |
| Ubuntu 26.04 LTS | linux-azure | 7.0.0-1017.17 | USN-8888-1 |
| Ubuntu 26.04 LTS | linux-azure-fde | 7.0.0-1016.16 | USN-8888-1 |
| Ubuntu 26.04 LTS | linux-gke | 7.0.0-1008.9 | USN-8887-1 |
| Ubuntu 26.04 LTS | linux-ibm +1 | 7.0.0-1015.15 | USN-8889-1, USN-8887-1 |
| Ubuntu 26.04 LTS | linux-nvidia | 7.0.0-1025.26 | USN-9043-1 |
| Ubuntu 26.04 LTS | linux-nvidia-bos | 7.0.0-2022.23 | USN-9003-1 |
| Ubuntu 26.04 LTS | linux-oracle | 7.0.0-1013.13 | USN-8887-1 |
| Ubuntu 26.04 LTS | linux-raspi | 7.0.0-1023.23 | USN-9021-1 |
| Ubuntu 26.04 LTS | linux-riscv +1 | 7.0.0-38.38.1 | USN-8887-1 |
| Ubuntu 24.04 LTS | linux +43 | No fix yet | — |
| Ubuntu 24.04 LTS | linux-aws-7.0 +1 | 7.0.0-1014.14~24.04.1 | USN-8887-3, USN-8887-2 |
| Ubuntu 24.04 LTS | linux-azure-7.0 | 7.0.0-1017.17~24.04.1 | USN-8888-2 |
| Ubuntu 24.04 LTS | linux-azure-fde-7.0 | 7.0.0-1016.16~24.04.1 | USN-8888-2 |
| Ubuntu 24.04 LTS | linux-hwe-7.0 | 7.0.0-38.38~24.04.4 | USN-8887-3 |
| Ubuntu 24.04 LTS | linux-nvidia-7.0 | 7.0.0-1024.25~24.04.1 | USN-9003-1 |
| Ubuntu 24.04 LTS | linux-nvidia-tegra | 6.8.0-1036.39 | USN-8886-1 |
| Ubuntu 24.04 LTS | linux-oracle-7.0 | 7.0.0-1013.13~24.04.1 | USN-8887-3 |
| Ubuntu 24.04 LTS | linux-riscv-7.0 | 7.0.0-38.38.1~24.04.1 | — |
| Ubuntu 22.04 LTS | linux +59 | No fix yet | — |
Show 18 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime +3 | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime +2 | No fix yet | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 24.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux +21 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +12 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux +7 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux +3 | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | kernel-64kb +7 | 6.4.0-150700.53.84.1 | SUSE-SU-2026:4706-1 |
| SLES 15 SP7 | kernel-default-base | 6.4.0-150700.53.84.1.150700.17.47.1 | SUSE-SU-2026:4706-1 |
| SLES 15 SP6 | kernel-64kb +6 | 6.4.0-150600.23.138.1 | SUSE-SU-2026:4660-1 |
| SLES 15 SP6 | kernel-default-base | 6.4.0-150600.23.138.1.150600.12.64.1 | SUSE-SU-2026:4660-1 |
| SLES 15 SP5 | kernel-64kb +4 | 5.14.21-150500.55.192.2 | SUSE-SU-2026:4667-1 |
| SLES 15 SP5 | kernel-default-base | 5.14.21-150500.55.192.2.150500.6.89.2 | SUSE-SU-2026:4667-1 |
| SLES 15 SP5 | kernel-docs +1 | 5.14.21-150500.55.192.1 | SUSE-SU-2026:4667-1 |
| SLES 15 SP4 | kernel-64kb +2 | 5.14.21-150400.24.240.2 | SUSE-SU-2026:4284-1 |
| SLES 15 SP4 | kernel-default-base | 5.14.21-150400.24.240.2.150400.24.120.2 | SUSE-SU-2026:4284-1 |
| SLES 15 SP4 | kernel-docs +3 | 5.14.21-150400.24.240.1 | SUSE-SU-2026:4284-1 |
| SLES 12 SP5 | kernel-syms +2 | 4.12.14-122.328.1 | SUSE-SU-2026:4282-1 |
Show 20 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 11 SP4 | kernel-ec2 +6 | 3.0.101-108.223.1 | SUSE-SU-2026:4639-1 |
| SLES for SAP 16.0 | kernel-64kb +8 | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SLES for SAP 16.0 | kernel-default-base | 6.12.0-160000.38.1.160000.2.23 | SUSE-SU-2026:23902-1 |
| SLES for SAP 15 SP6 | kernel-default-base | 6.4.0-150600.23.138.1.150600.12.64.1 | SUSE-SU-2026:4660-1 |
| SLES for SAP 15 SP6 | kernel-docs +4 | 6.4.0-150600.23.138.1 | SUSE-SU-2026:4660-1 |
| SLES for SAP 15 SP5 | kernel-default-base | 5.14.21-150500.55.192.2.150500.6.89.2 | SUSE-SU-2026:4667-1 |
| SLES for SAP 15 SP5 | kernel-docs +1 | 5.14.21-150500.55.192.1 | SUSE-SU-2026:4667-1 |
| SLES for SAP 15 SP5 | kernel-source +2 | 5.14.21-150500.55.192.2 | SUSE-SU-2026:4667-1 |
| SLES for SAP 15 SP4 | kernel-default | 5.14.21-150400.24.240.2 | SUSE-SU-2026:4284-1 |
| SLES for SAP 15 SP4 | kernel-default-base | 5.14.21-150400.24.240.2.150400.24.120.2 | SUSE-SU-2026:4284-1 |
| SLES for SAP 15 SP4 | kernel-docs +3 | 5.14.21-150400.24.240.1 | SUSE-SU-2026:4284-1 |
| SLES 16.0 | kernel-64kb +8 | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1, SUSE-SU-2026:23897-1 |
| SLES 16.0 | kernel-default-base | 6.12.0-160000.38.1.160000.2.23 | SUSE-SU-2026:23902-1 |
| SLE Micro 6.2 | kernel-default-base | 6.12.0-160000.38.1.160000.2.23 | SUSE-SU-2026:23887-1 |
| SLE Micro 6.2 | kernel-rt +5 | 6.12.0-160000.38.1 | SUSE-SU-2026:23887-1, SUSE-SU-2026:23881-1 |
| SLE Micro 6.2 | podman | 5.4.2-160000.6.1 | SUSE-SU-2026:24182-1 |
| SLE Micro 6.1 | kernel-default-base | 6.4.0-159998.53.1.159998.21.38 | SUSE-SU-2026:24181-1 |
| SLE Micro 6.1 | kernel-rt +4 | 6.4.0-159998.53.1 | SUSE-SU-2026:24182-1, SUSE-SU-2026:24181-1 |
| SLE Micro 6.0 | kernel-default-base | 6.4.0-159998.53.1.159998.21.38 | SUSE-SU-2026:24315-1 |
| SLE Micro 6.0 | kernel-rt +4 | 6.4.0-159998.53.1 | SUSE-SU-2026:24316-1, SUSE-SU-2026:24315-1 |
| SLE Micro 5.5 | kernel-default-base | 5.14.21-150500.55.192.2.150500.6.89.2 | SUSE-SU-2026:4667-1 |
| SLE Micro 5.5 | kernel-rt +1 | 5.14.21-150500.13.164.1 | SUSE-SU-2026:4665-1 |
| SLE Micro 5.5 | kernel-source +1 | 5.14.21-150500.55.192.2 | SUSE-SU-2026:4667-1 |
| SLE Micro 5.4 | kernel-default | 5.14.21-150400.24.240.2 | SUSE-SU-2026:4284-1 |
| SLE Micro 5.4 | kernel-default-base | 5.14.21-150400.24.240.2.150400.24.120.2 | SUSE-SU-2026:4284-1 |
| SLE Micro 5.4 | kernel-rt +1 | 5.14.21-150400.15.186.1 | SUSE-SU-2026:4279-1 |
| SLE Micro 5.4 | kernel-source | 5.14.21-150400.24.240.1 | SUSE-SU-2026:4284-1 |
| SLE Micro 5.3 | kernel-default | 5.14.21-150400.24.240.2 | SUSE-SU-2026:4284-1 |
| SLE Micro 5.3 | kernel-default-base | 5.14.21-150400.24.240.2.150400.24.120.2 | SUSE-SU-2026:4284-1 |
| SLE Micro 5.3 | kernel-rt +1 | 5.14.21-150400.15.186.1 | SUSE-SU-2026:4279-1 |
| SLE Micro 5.3 | kernel-source | 5.14.21-150400.24.240.1 | SUSE-SU-2026:4284-1 |
| SLE Live Patching 15 SP7 | kernel-default | 6.4.0-150700.53.84.1 | SUSE-SU-2026:4706-1 |
| SLE Live Patching 15 SP7 | kernel-livepatch-SLE15-SP7-RT_Update_21 | 1-150700.1.3.1 | SUSE-SU-2026:4640-1 |
| SLE Live Patching 15 SP7 | kernel-livepatch-SLE15-SP7_Update_22 | 1-150700.15.3.1 | SUSE-SU-2026:4706-1 |
| SLE Live Patching 15 SP6 | kernel-default | 6.4.0-150600.23.138.1 | SUSE-SU-2026:4660-1 |
| SLE Live Patching 15 SP6 | kernel-livepatch-SLE15-SP6_Update_32 | 1-150600.13.3.1 | SUSE-SU-2026:4660-1 |
| SLE Live Patching 15 SP5 | kernel-default | 5.14.21-150500.55.192.2 | SUSE-SU-2026:4667-1 |
| SLE Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_46 | 1-150500.11.3.2 | SUSE-SU-2026:4667-1 |
| SLE Live Patching 15 SP4 | kernel-default | 5.14.21-150400.24.240.2 | SUSE-SU-2026:4284-1 |
| SLE Live Patching 15 SP4 | kernel-livepatch-SLE15-SP4_Update_59 | 1-150400.9.5.1 | SUSE-SU-2026:4284-1 |
| SLE Live Patching 12 SP5 | kernel-default | 4.12.14-122.328.1 | SUSE-SU-2026:4282-1 |
| SLE Live Patching 12 SP5 | kgraft-patch-SLE12-SP5_Update_87 | 1-8.5.1 | SUSE-SU-2026:4282-1 |
| SLE HPC 15 SP5 | kernel-64kb +3 | 5.14.21-150500.55.192.2 | SUSE-SU-2026:4667-1 |
| SLE HPC 15 SP5 | kernel-default-base | 5.14.21-150500.55.192.2.150500.6.89.2 | SUSE-SU-2026:4667-1 |
| SLE HPC 15 SP5 | kernel-docs +1 | 5.14.21-150500.55.192.1 | SUSE-SU-2026:4667-1 |
| SLE HPC 15 SP4 | kernel-64kb +1 | 5.14.21-150400.24.240.2 | SUSE-SU-2026:4284-1 |
| SLE HPC 15 SP4 | kernel-default-base | 5.14.21-150400.24.240.2.150400.24.120.2 | SUSE-SU-2026:4284-1 |
| SLE HPC 15 SP4 | kernel-docs +3 | 5.14.21-150400.24.240.1 | SUSE-SU-2026:4284-1 |
| SUSE Real Time Module 15 SP7 | kernel-rt +2 | 6.4.0-150700.7.78.1 | SUSE-SU-2026:4640-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 16.0 | kernel-default-base | 6.12.0-160000.38.1.160000.2.22 | openSUSE-SU-2026:21910-1 |
| openSUSE Leap 16.0 | kernel-rt +11 | 6.12.0-160000.38.1 | openSUSE-SU-2026:21910-1 |
Advisories 29
- USN-9021-1 linux-raspi vulnerabilities Ubuntu Security Notices (USN) · Nov 12, 2026
- WID-SEC-2026-2852 Linux Kernel: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 12, 2026
- USN-9043-1 linux-nvidia vulnerabilities Ubuntu Security Notices (USN) · Nov 12, 2026
- USN-8887-1 linux, linux-aws, linux-gcp, linux-gke, linux-ibm, linux-oracle, linux-realtime vulnerabilities Ubuntu Security Notices (USN) · Nov 12, 2026
- USN-9003-1 linux-nvidia-7.0, linux-nvidia-bos vulnerabilities Ubuntu Security Notices (USN) · Nov 12, 2026
- USN-8887-3 linux-gcp-7.0, linux-hwe-7.0, linux-oracle-7.0 vulnerabilities Ubuntu Security Notices (USN) · Nov 12, 2026
- USN-8888-2 linux-azure-7.0, linux-azure-fde-7.0 vulnerabilities Ubuntu Security Notices (USN) · Nov 12, 2026
- USN-8888-1 linux-azure, linux-azure-fde vulnerabilities Ubuntu Security Notices (USN) · Nov 12, 2026
- USN-8887-2 linux-aws-7.0 vulnerabilities Ubuntu Security Notices (USN) · Nov 12, 2026
- USN-8889-1 linux-oem-7.0 vulnerabilities Ubuntu Security Notices (USN) · Nov 12, 2026
- USN-8886-1 linux-nvidia-tegra vulnerabilities Ubuntu Security Notices (USN) · Nov 12, 2026
- SUSE-SU-2026:24316-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Oct 27, 2026
- SUSE-SU-2026:24315-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Oct 27, 2026
- SUSE-SU-2026:24181-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Oct 20, 2026
- SUSE-SU-2026:24182-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Oct 20, 2026
- SUSE-SU-2026:4706-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Oct 17, 2026
- SUSE-SU-2026:4667-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Oct 16, 2026
- SUSE-SU-2026:4665-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Oct 15, 2026
- SUSE-SU-2026:4660-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Oct 14, 2026
- SUSE-SU-2026:4639-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Oct 14, 2026
- SUSE-SU-2026:4640-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Oct 14, 2026
- SUSE-SU-2026:23902-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Sep 30, 2026
- SUSE-SU-2026:23881-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Sep 30, 2026
- SUSE-SU-2026:23887-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Sep 30, 2026
- SUSE-SU-2026:23897-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Sep 30, 2026
- openSUSE-SU-2026:21910-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Sep 25, 2026
- SUSE-SU-2026:4279-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Sep 23, 2026
- SUSE-SU-2026:4282-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Sep 23, 2026
- SUSE-SU-2026:4284-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Sep 23, 2026
References
- https://git.kernel.org/stable/c/3e85e690e787fa42f35e1bd9d18a7979c201d165
- https://git.kernel.org/stable/c/bc963e193b314f1441082e8b1ffe15eb255d0a44
- https://git.kernel.org/stable/c/e96824274239ae4cd2f7b712644441cdc72c81a3
- https://git.kernel.org/stable/c/6dc781778b595be94c31395b2cb167f65145d91f
- https://git.kernel.org/stable/c/7aad70cabd8f34cf11a9593fcd3f2ac3f5496943
- https://git.kernel.org/stable/c/7c349b4f2a603202fb8c363bd2774a22ac2fddf3