# CVE-2026-74388: ALSA: seq: oss: Fix UAF at handling events with embedded SysEx data

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-08-15T05:59:03.147Z
- **Modified:** 2026-10-30T13:19:56.343Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3e85e690e787fa42f35e1bd9d18a7979c201d165; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bc963e193b314f1441082e8b1ffe15eb255d0a44; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e96824274239ae4cd2f7b712644441cdc72c81a3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6dc781778b595be94c31395b2cb167f65145d91f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7aad70cabd8f34cf11a9593fcd3f2ac3f5496943; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7c349b4f2a603202fb8c363bd2774a22ac2fddf3
- Anyone running Linux 2.6.12

## 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 and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3e85e690e787fa42f35e1bd9d18a7979c201d165; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bc963e193b314f1441082e8b1ffe15eb255d0a44; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e96824274239ae4cd2f7b712644441cdc72c81a3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6dc781778b595be94c31395b2cb167f65145d91f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7aad70cabd8f34cf11a9593fcd3f2ac3f5496943; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7c349b4f2a603202fb8c363bd2774a22ac2fddf3 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 7c349b4f2a603202fb8c363bd2774a22ac2fddf3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-74388. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74388.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 3e85e690e787fa42f35e1bd9d18a7979c201d165; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < bc963e193b314f1441082e8b1ffe15eb255d0a44; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < e96824274239ae4cd2f7b712644441cdc72c81a3; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 3e85e690e787fa42f35e1bd9d18a7979c201d165, Linux 6dc781778b595be94c31395b2cb167f65145d91f, Linux 7aad70cabd8f34cf11a9593fcd3f2ac3f5496943, Linux 7c349b4f2a603202fb8c363bd2774a22ac2fddf3

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-74388 being exploited?

There is no confirmed exploitation: CVE-2026-74388 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-74388?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-74388?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3e85e690e787fa42f35e1bd9d18a7979c201d165; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bc963e193b314f1441082e8b1ffe15eb255d0a44; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e96824274239ae4cd2f7b712644441cdc72c81a3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6dc781778b595be94c31395b2cb167f65145d91f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7aad70cabd8f34cf11a9593fcd3f2ac3f5496943; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7c349b4f2a603202fb8c363bd2774a22ac2fddf3; Linux 2.6.12.

### Is there a fix for CVE-2026-74388?

Yes. Fixed in Linux 3e85e690e787fa42f35e1bd9d18a7979c201d165, Linux 6dc781778b595be94c31395b2cb167f65145d91f, Linux 7aad70cabd8f34cf11a9593fcd3f2ac3f5496943, Linux 7c349b4f2a603202fb8c363bd2774a22ac2fddf3. Upgrade Linux to 7c349b4f2a603202fb8c363bd2774a22ac2fddf3 or later.

### How do I check if I'm affected by CVE-2026-74388?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/3e85e690e787fa42f35e1bd9d18a7979c201d165>
- other: <https://git.kernel.org/stable/c/bc963e193b314f1441082e8b1ffe15eb255d0a44>
- other: <https://git.kernel.org/stable/c/e96824274239ae4cd2f7b712644441cdc72c81a3>
- other: <https://git.kernel.org/stable/c/6dc781778b595be94c31395b2cb167f65145d91f>
- other: <https://git.kernel.org/stable/c/7aad70cabd8f34cf11a9593fcd3f2ac3f5496943>
- other: <https://git.kernel.org/stable/c/7c349b4f2a603202fb8c363bd2774a22ac2fddf3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-74388>

HTML: <https://flawdb.com/CVE-2026-74388> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-74388>
