Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2018-20961: In the Linux kernel before 4.16.4, a double free vulnerability in the f_midi_set_alt function of drivers/usb/g

73
This week
CRITICAL 9.8REMOTEWATCHLISTUPGRADE

CVE-2018-20961 is a critical-severity flaw (CVSS 9.8) affecting linux kernel. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

In the Linux kernel before 4.16.4, a double free vulnerability in the f_midi_set_alt function of drivers/usb/gadget/function/f_midi.c in the f_midi driver may allow attackers to cause a denial of service or possibly have unspecified other impact.

Why this priority

  • Critical severity
  • EPSS top 6%: very likely to be exploited
  • Public exploit reference
  • Remotely exploitable, no login, no user action
  • On your watchlist

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance6.3% (top 6%)
CISA exploited listNo
WeaknessCWE-415
Published2019-08-07
Last modified2026-06-17
Publisher (CNA): MITRE · Vendor: linux

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

linux linux kernel UPGRADE
Affected: >= 4.4 and < 4.4.190 · >= 4.5 and < 4.9.96 · >= 4.10 and < 4.14.36 · >= 4.15.0 and < 4.16.4
Fixed in: 4.4.190, 4.9.96, 4.14.36, 4.16.4
Safe to downgrade to: no unaffected older release
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.

Exact fixes by distribution

Fedora ELN · python-discovery · FIXED · 1.9.0-1.eln159 · FEDORA-2026-7a881c0c99 · source
sudo dnf upgrade --advisory=FEDORA-2026-7a881c0c99
Fedora 46 · pipx · FIXED · 1.18.11-1.fc46 · FEDORA-2026-443a765287 · source
sudo dnf upgrade --advisory=FEDORA-2026-443a765287
Ubuntu 22.04 · linux · NOT AFFECTED
Ubuntu 24.04 · linux · NOT AFFECTED
Ubuntu 20.04 · linux · NOT AFFECTED
Ubuntu 24.10 · linux · NOT AFFECTED
Ubuntu 25.04 · linux · NOT AFFECTED
Debian 12 · linux · FIXED · 4.16.5-1
sudo apt update && sudo apt install --only-upgrade linux dpkg --compare-versions "$(dpkg-query -W -f='${Version}' linux)" ge "4.16.5-1" && echo PATCHED || echo STILL-VULNERABLE
Debian 13 · linux · FIXED · 4.16.5-1
sudo apt update && sudo apt install --only-upgrade linux dpkg --compare-versions "$(dpkg-query -W -f='${Version}' linux)" ge "4.16.5-1" && echo PATCHED || echo STILL-VULNERABLE
RHEL 5 · kernel · NOT AFFECTED
RHEL 6 · kernel · NOT AFFECTED
RHEL 7 · kernel · NOT AFFECTED
RHEL 7 · kernel-alt · NOT AFFECTED
RHEL 7 · kernel-rt · NOT AFFECTED

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2018-20961?

linux kernel: upgrade to 4.4.190, 4.9.96, 4.14.36, 4.16.4. Exact commands for each OS are on this page.

Is CVE-2018-20961 being exploited?

CVE-2018-20961 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2018-20961 affect?

CVE-2018-20961 affects linux kernel. Severity is critical (CVSS 9.8). In the Linux kernel before 4.16.4, a double free vulnerability in the f_midi_set_alt function of drivers/usb/gadget/function/f_midi.c in the f_midi driver may allow attackers to cause a denial of service or possibly have unspecified other i

How urgent is CVE-2018-20961?

Priority 73/100. Critical severity; EPSS top 6%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action; On your watchlist

Software pages

Linux kernel vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.