Linux Kernel up to 4.16.3 f_midi.c f_midi_set_alt double free

| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 8.4 | $0-$5k | 0.00 |
Summary
A vulnerability described as critical has been identified in Linux Kernel up to 4.16.3. This affects the function f_midi_set_alt of the file drivers/usb/gadget/function/f_midi.c. The manipulation results in double free.
This vulnerability is known as CVE-2018-20961. It is possible to launch the attack remotely. No exploit is available.
Upgrading the affected component is recommended.
Details
A vulnerability, which was classified as critical, was found in Linux Kernel up to 4.16.3 (Operating System). Affected is the function f_midi_set_alt of the file drivers/usb/gadget/function/f_midi.c. The manipulation with an unknown input leads to a double free vulnerability. CWE is classifying the issue as CWE-415. The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:
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.
The weakness was published 08/07/2019 (Website). The advisory is shared for download at seclists.org. This vulnerability is traded as CVE-2018-20961 since 08/07/2019. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. There are known technical details, but no exploit is available.
The vulnerability scanner Nessus provides a plugin with the ID 250162 (Linux Distros Unpatched Vulnerability : CVE-2018-20961), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 4.16.4 eliminates this vulnerability.
The vulnerability is also documented in the vulnerability database at Tenable (250162). Similar entries are available at VDB-138837, VDB-138838, VDB-138839 and VDB-138853. Once again VulDB remains the best source for vulnerability data.
Product
Type
Vendor
Name
Version
License
Website
- Vendor: https://www.kernel.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 8.5VulDB Meta Temp Score: 8.4
VulDB Base Score: 7.3
VulDB Temp Score: 7.0
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 9.8
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Double freeCWE: CWE-415 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 250162
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2018-20961
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: Kernel 4.16.4
Patch: git.kernel.org
Timeline
08/07/2019 🔍08/07/2019 🔍
08/07/2019 🔍
08/17/2025 🔍
Sources
Vendor: kernel.orgAdvisory: K58502654
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2018-20961 (🔍)
GCVE (CVE): GCVE-0-2018-20961
GCVE (VulDB): GCVE-100-139620
See also: 🔍
Entry
Created: 08/07/2019 19:42Updated: 08/17/2025 10:13
Changes: 08/07/2019 19:42 (60), 07/22/2020 12:35 (2), 11/21/2023 10:20 (5), 11/21/2023 10:26 (1), 08/17/2025 10:13 (18)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.