Vulnerabilities / CVE-2018-20961

critical

CVE-2018-20961

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

Published Modified CWE 415
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.4CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 2.0linux, linux-aws, linux-esx and 1 more4.9.189-1.ph2 and 1 more
debian 11linux4.16.5-1
debian 12linux4.16.5-1
debian 13linux4.16.5-1
debian 14linux4.16.5-1
debian 9linux4.9.107-1
echolinux4.16.5-1
root.io debian 11rootio-linux4.16.5-1
root.io debian 12rootio-linux4.16.5-1
root.io debian 13rootio-linux4.16.5-1
ubuntu 14.04-ESMlinux-aws, linux-lts-xenial4.4.0-1055.59 and 1 more
ubuntu 16.04linux, linux-gcp, linux-hwe and 3 more4.4.0-165.193 and 4 more
Show all 35 entries from 15 sources
SourcePackageFixed in
Photon OS 2.0linux4.9.189-1.ph2
Photon OS 2.0linux-aws4.9.180-1.ph2
Photon OS 2.0linux-esx4.9.180-1.ph2
Photon OS 2.0linux-secure4.9.180-1.ph2
debian 11linux4.16.5-1
debian 12linux4.16.5-1
debian 13linux4.16.5-1
debian 14linux4.16.5-1
debian 9linux4.9.107-1
echolinux4.16.5-1
root.io debian 11rootio-linux4.16.5-1
root.io debian 12rootio-linux4.16.5-1
root.io debian 13rootio-linux4.16.5-1
ubuntu 14.04-ESMlinux-aws4.4.0-1055.59
ubuntu 14.04-ESMlinux-lts-xenial4.4.0-165.193~14.04.1
ubuntu 16.04linux4.4.0-165.193
ubuntu 16.04linux-gcp4.15.0-1014.14~16.04.1
ubuntu 16.04linux-hwe4.15.0-24.26~16.04.1
ubuntu 16.04linux-hwe-edge4.15.0-24.26~16.04.1
ubuntu 16.04linux-raspi24.4.0-1123.132
ubuntu 16.04linux-snapdragon4.4.0-1127.135
ubuntu 16.04-ESMlinux4.4.0-165.193
ubuntu 16.04-ESMlinux-gcp4.15.0-1014.14~16.04.1
ubuntu 16.04-ESMlinux-hwe4.15.0-24.26~16.04.1
ubuntu 16.04-ESMlinux-hwe-edge4.15.0-24.26~16.04.1
ubuntu 18.04linux4.15.0-24.26
ubuntu 18.04linux-gcp4.15.0-1010.10
ubuntu 18.04linux-gcp-edge4.15.0-1010.10
ubuntu 18.04linux-oem4.15.0-1009.12
ubuntu 18.04linux-raspi24.15.0-1013.14
ubuntu 18.04linux-snapdragon4.15.0-1053.57
ubuntu 18.04-ESMlinux4.15.0-24.26
ubuntu 18.04-ESMlinux-gcp4.15.0-1010.10
ubuntu 18.04-ESMlinux-gcp-edge4.15.0-1010.10
ubuntu 18.04-ESMlinux-oem4.15.0-1009.12

References

All 14 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.