Skip to main content

Linux Kernel CVE-2026-74387

| EUVDEUVD-2026-59534 HIGH
2026-08-15 Linux GHSA-wp68-7ghh-v4rv
7.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain local low-privileged account
  2. Delivery
    Access /dev/snd/seq ALSA device
  3. Exploit
    Open MIDI synthesizer output port
  4. Install
    Spawn concurrent event-write and port-teardown threads
  5. C2
    Race midisynth_unuse() against snd_rawmidi_kernel_write1()
  6. Execute
    Trigger UAF or NULL-deref in kernel
  7. Impact
    Crash or kernel privilege escalation

Vulnerability Assessment

Exploitation Conditions

Exploitation requires a local user account with read/write access to the ALSA sequencer device (/dev/snd/seq, typically accessible to members of the audio group on desktop Linux systems). The snd-seq-midi kernel module must be loaded, either explicitly or auto-loaded when a MIDI synthesizer port is opened. The attacker must be able to open MIDI synthesizer output ports and execute concurrent multi-threaded or multi-process access - one thread writing events via event_process_midi() and another triggering port teardown via midisynth_unuse() - to create the race condition. Remote exploitation is not possible (AV:L confirmed by CVSS vector). Systems where the snd-seq-midi module is absent or blacklisted, where /dev/snd/seq is restricted to root, or where no audio hardware is present and ALSA modules are not loaded, are not exploitable. The race window is narrow, making reliable exploitation more difficult than the AC:L CVSS metric suggests.

Impact

The NVD CVSS 7.8 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) accurately reflects local exploitability and kernel-level impact but may overstate practical ease: AC:L does not capture the precise timing window required to win a race between two independent kernel threads - real-world reliable exploitation is harder than AC:L implies. EPSS of 0.17% at the 7th percentile aligns with this assessment, indicating very low observed or predicted exploitation activity. There is no CISA KEV listing and no public POC, so this is not a currently weaponized issue. That said, the potential impact if exploited is severe - a successful UAF in kernel context can yield arbitrary code execution as root. Risk is further constrained by the requirement for local access, an unprivileged account with ALSA sequencer device permissions, and the snd-seq-midi module being loaded. For general-purpose Linux servers, desktops running ALSA, and embedded systems with audio subsystems enabled, patching is strongly recommended. For hardened servers where the ALSA MIDI sequencer module is absent or access-restricted, practical risk is low. No conflicting signals detected, but the AC:L assignment from NVD likely understates exploitation complexity for a race condition.

Exploit ScenarioDerived

A local attacker with a low-privileged account spawns two concurrent threads: one continuously writes MIDI events to a synthesizer output port via the ALSA sequencer interface, and the other rapidly opens and closes the same port, triggering midisynth_unuse(). When the teardown thread wins the race - freeing substream->runtime between the moment the event thread reads output_rfile.output and the moment snd_rawmidi_kernel_write1() pins the runtime buffer - the event thread dereferences a freed or NULL kernel pointer, triggering a crash (denial of service) or, on kernels without SMEP/SMAP mitigations or with heap layout control, potential privilege escalation. No public proof-of-concept exploit code has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 17, 2026

Use-after-free and NULL-pointer dereference in the Linux kernel ALSA sequencer MIDI subsystem allows a local low-privileged user to crash the kernel or potentially escalate privileges by racing MIDI output event processing against port teardown. The flaw exists because event_process_midi() reads msynth->output_rfile.output without holding any lock, while midisynth_unuse() can concurrently free substream->runtime before snd_rawmidi_kernel_write1() pins its buffer reference - leaving the event path with a dangling pointer confirmed via KASAN null-ptr-deref reproduction. No public exploit identified at time of analysis, and EPSS of 0.17% (7th percentile) signals low current exploitation interest despite the 7.8 CVSS score.

RemediationAI

The primary fix is to upgrade to a patched kernel version: 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, or 7.2-rc1, via upstream stable commits referenced at https://git.kernel.org/stable/c/. Distribution users should apply vendor-supplied kernel security updates as soon as available from their respective repositories. Where immediate patching is not feasible, the snd-seq-midi kernel module can be unloaded and blacklisted (modprobe -r snd-seq-midi and adding blacklist snd-seq-midi to /etc/modprobe.d/) - this eliminates the vulnerable code path entirely but disables all ALSA MIDI sequencer functionality for all users. Alternatively, restricting /dev/snd/seq permissions to root only (chmod 600 /dev/snd/seq) prevents unprivileged users from reaching the vulnerable path while leaving the device available to root-level audio services; the trade-off is loss of per-user MIDI sequencer access. Systems that never load the ALSA MIDI sequencer module (e.g., headless servers with snd-seq-midi absent from the running module list per lsmod) are not exploitable through this vector and require no immediate action beyond scheduled patching.

Affected VersionsENISA

Linux patch: 6.18.40
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <718f6a56b40875f19e6915799044a02df9abfd52
Linux 2.6.12
Linux patch: 0
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <936641af564c3d92721704b781e36aaf223efdd2
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ef7607ab1c8adc6258fb1b27d08e26aecdc18a58
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <f5d470b808bc01f70978e22e595c6f7768313406
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <11165fe2c5ea0516debe486d91df67abbe36905e
Linux patch: 6.6.145
Linux patch: 6.12.97
Linux patch: 7.1.5
Linux patch: 6.1.178
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <d6fd2afb137f52bf00c5210cc44d08ed54dcffb4
Linux patch: 7.2-rc1

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is located in sound/core/seq/seq_midi.c within the Linux kernel ALSA (Advanced Linux Sound Architecture) sequencer subsystem, specifically the MIDI synthesizer driver. Two concurrent execution paths share access to a snd_rawmidi_file structure without adequate synchronization: the event input path (event_process_midi() → dump_midi() → snd_rawmidi_kernel_write()) and the output teardown path (midisynth_unuse() → snd_rawmidi_kernel_release() → close_substream()). The root cause is a classic time-of-check/time-of-use race condition (CWE-362) that degenerates into use-after-free (CWE-416) and NULL-pointer dereference (CWE-476): the event handler borrows output_rfile.output without taking a lock or incrementing a reference count, while teardown can free substream->runtime underneath it. A secondary issue is that midisynth_use() publishes output_rfile before snd_rawmidi_output_params() completes, creating a window where consumers see a partially-initialized structure. The fix introduces an IRQ-safe spinlock for atomic publish/clear of output_rfile paired with an snd_use_lock_t in-flight reference so teardown drains all writers before releasing. CPE data (cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*) confirms the affected component is the upstream Linux kernel across all stable branches prior to the patch commits.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Linux) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Race condition exploitation requires precise thread timing, warranting AC:H over NVD's AC:L; all other metrics match the confirmed local, low-privilege, kernel-impact scenario.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 6.3 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
Red Hat 5.5 MEDIUM

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
Aug 17, 2026 - 06:22 NVD
7.8 (HIGH)
Patch available
Aug 15, 2026 - 07:19 EUVD
CVE Published
Aug 15, 2026 - 05:59 cve.org
HIGH 7.8
CVE Published
Aug 15, 2026 - 05:59 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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

ALSA: seq: midi: Serialize output teardown with event_input

event_process_midi() borrows msynth->output_rfile.output and then passes the substream to dump_midi() and snd_rawmidi_kernel_write() without synchronizing with the output open/close transition. midisynth_use() also publishes output_rfile before snd_rawmidi_output_params() has finished.

The last midisynth_unuse() can therefore release the same rawmidi file and free substream->runtime before snd_rawmidi_kernel_write1() takes its runtime buffer reference. That leaves the event_input path using a stale substream or runtime and can end in a NULL-deref or use-after-free.

Fix this with two pieces of synchronization. Keep a short IRQ-safe spinlock only for publishing or clearing output_rfile and for pairing the output snapshot with an snd_use_lock_t reference. Once event_process_midi() has taken that in-flight reference, it drops the spinlock before calling snd_seq_dump_var_event(), dump_midi(), or snd_rawmidi_kernel_write(). midisynth_unuse() now detaches the visible rawmidi file under the same spinlock, waits for the in-flight writers to drain, and only then drains and releases the saved file. midisynth_use() likewise opens into a local snd_rawmidi_file and publishes it only after snd_rawmidi_output_params() succeeds.

The buggy scenario involves two paths, with each column showing the order within that path:

event_input path: last unuse path:

  1. event_process_midi() snapshots 1. midisynth_unuse() starts

output_rfile.output. tearing down output_rfile.

  1. dump_midi() reaches 2. snd_rawmidi_kernel_release()

snd_rawmidi_kernel_write() closes the output file. before runtime is pinned. 3. close_substream() frees

  1. The callback keeps using substream->runtime.

the borrowed substream.

Validation reproduced this kernel report: KASAN null-ptr-deref in snd_rawmidi_kernel_write1+0x56/0x360 RIP: 0033:0x7fde7dd0837f RIP: 0010:snd_rawmidi_kernel_write1+0x56/0x360

Executive ViewAI

Why It Matters

A use-after-free race condition in the Linux kernel ALSA sequencer MIDI subsystem (CVE-2026-74387, CVSS 7.8) allows local low-privileged users to crash systems or escalate privileges, impacting any organization running ALSA-enabled Linux deployments in multi-user environments. Despite the high technical severity, current threat activity is minimal (EPSS 0.2%), creating a critical window for preventive patching before exploitation interest increases.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Ubiquitous
core OS kernel in virtually all Linux deployments worldwide
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy