Skip to content
Fencer Vulns
critical 9.8

CVE-2018-20961 in the critical feed json

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 th…

published 2019-08-07 7 y ago modified 2026-06-17 4 mo ago also EUVD-2018-13499

cvss
9.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
6.3%
EPSS 6.3% chance of exploitation in 30 days, percentile 93%
public exploits
0
none known

Summary

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.

Patch / fix

  • linux linux_kernel 4.4.190, 4.9.96, 4.14.36, 4.16.4
  • linux Debian 14, Debian 13, Debian 12 4.16.5-1

debian advisories DEBIAN-CVE-2018-20961

  • linux Ubuntu 16.04 LTS 4.4.0-165.193
  • linux Ubuntu 18.04 LTS 4.15.0-24.26
  • linux-gcp Ubuntu 16.04 LTS 4.15.0-1014.14~16.04.1
  • linux-gcp Ubuntu 18.04 LTS 4.15.0-1010.10
  • linux-hwe Ubuntu 16.04 LTS 4.15.0-24.26~16.04.1
  • linux-oem Ubuntu 18.04 LTS 4.15.0-1009.12
  • linux-raspi2 Ubuntu 16.04 LTS 4.4.0-1123.132
  • linux-raspi2 Ubuntu 18.04 LTS 4.15.0-1013.14

ubuntu advisories UBUNTU-CVE-2018-20961

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-20961 updated cvss 7.4

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

  • Red Hat Enterprise Linux 5 kernel Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, kernel-alt, python-perf, +9 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise MRG 2 kernel
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

6.34% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • git.kernel.org https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7fafcfdf6377b18b2a726ea554d6e593ba44349f referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 10.0 AV:N/AC:L/Au:N/C:C/I:C/A:C

Classification

Weakness
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.