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
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 score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 6.3% (top 6%) |
| CISA exploited list | No |
| Weakness | CWE-415 |
| Published | 2019-08-07 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Write-up: usn.ubuntu.com/4145-1/
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
Related CVEs
- CVE-2026-31580 HIGH 7.8 UPGRADE In the Linux kernel, the following vulnerability has been resolved: bcache: fix cached_dev.sb_bio use-after-f
- CVE-2026-31579 MEDIUM 5.5 UPGRADE In the Linux kernel, the following vulnerability has been resolved: wireguard: device: use exit_rtnl callback
- CVE-2026-31575 MEDIUM 5.5 UPGRADE In the Linux kernel, the following vulnerability has been resolved: mm/userfaultfd: fix hugetlb fault mutex h
- CVE-2026-31574 MEDIUM 5.5 MITIGATE In the Linux kernel, the following vulnerability has been resolved: clockevents: Add missing resets of the ne
- CVE-2026-31572 MEDIUM 4.7 UPGRADE In the Linux kernel, the following vulnerability has been resolved: i2c: designware: amdisp: Fix resume-probe