Skip to main content
No exploitation reportedFix available

CVE-2018-20961

No exploitation reported by the sources we read.

  • Published2019-08-07
  • Fixed in4.16.4 · 4.14.36 · 4.9.96 · 4.4.190
  • WeaknessCWE-415

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2019-08-0715:15CVE publishedNVD

Versions per branch

NVD
Linux linux kernel
BranchAffectedFixed in
4.x≥ 4.15.0, < 4.16.44.16.4
4.x≥ 4.10, < 4.14.364.14.36
4.x≥ 4.5, < 4.9.964.9.96
4.4≥ 4.4, < 4.4.1904.4.190

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • linuxUbuntu:18.04:LTSall versions · fixed in 4.15.0-24.26
  • linuxUbuntu:16.04:LTSall versions · fixed in 4.4.0-165.193
  • linuxDebian:14all versions · fixed in 4.16.5-1
  • linuxDebian:13all versions · fixed in 4.16.5-1
  • linuxDebian:12all versions · fixed in 4.16.5-1
  • linux-awsUbuntu:Pro:14.04:LTSall versions · fixed in 4.4.0-1055.59
  • linux-awsUbuntu:16.04:LTSall versions · fixed in 4.4.0-1095.106
  • linux-fipsUbuntu:Pro:FIPS:16.04:LTSall versions · no fixed version listed

14 more package ranges on OSV.dev

Vendor advisories

  • CVE-2018-20961 Red Hat Product Security

    kernel: double free vulnerability in function f_midi_set_alt in drivers/usb/gadget/function/f_midi.c causing denial of service

Full record on NVD

Fix

  1. Update Linux linux kernel to 4.16.4 · 4.14.36 · 4.9.96 · 4.4.190

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2019-08-07
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-cfwf-8wx8-588c

Frequently asked questions

What is 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/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.

Is CVE-2018-20961 actively exploited?

Active exploitation of CVE-2018-20961 has not been confirmed. Its EPSS score was 6.3% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2018-20961?

CVE-2018-20961 has a CVSS v3 base score of 9.8 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running Linux kernel? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record