CVE-2019-6974 in Canonical Ubuntu Linux and 23 more products
In the Linux kernel before 4.20.8, kvm_ioctl_create_device in virt/kvm/kvm_main.c mishandles reference counting because of a race condition, leading to a use-after-free.
Affects 24 products from 5 vendors. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Ubuntu Linux | 12.04 14.04 16.04 18.04 18.10 |
| Debian | Debian Linux | 8.0 |
| F5 | Big-Ip Edge Gateway | ≥ 13.0.0, ≤ 13.1.1 ≥ 14.0.0, ≤ 14.1.0 ≥ 15.0.0, < 15.1.0 |
| F5 | Big-Ip Link Controller | ≥ 13.0.0, ≤ 13.1.1 ≥ 14.0.0, ≤ 14.1.0 ≥ 15.0.0, < 15.1.0 |
| F5 | Big-Ip Local Traffic Manager | ≥ 13.0.0, ≤ 13.1.1 ≥ 14.0.0, ≤ 14.1.0 ≥ 15.0.0, < 15.1.0 |
| F5 | Big-Ip Webaccelerator | ≥ 13.0.0, ≤ 13.1.1 ≥ 14.0.0, ≤ 14.1.0 ≥ 15.0.0, < 15.1.0 |
| F5 | Big-Ip Advanced Firewall Manager | ≥ 13.0.0, ≤ 13.1.1 ≥ 14.0.0, ≤ 14.1.0 ≥ 15.0.0, < 15.1.0 |
| F5 | Big-Ip Policy Enforcement Manager | ≥ 13.0.0, ≤ 13.1.1 ≥ 14.0.0, ≤ 14.1.0 ≥ 15.0.0, < 15.1.0 |
| F5 | Big-Ip Application Acceleration Manager | ≥ 13.0.0, ≤ 13.1.1 ≥ 14.0.0, ≤ 14.1.0 ≥ 15.0.0, < 15.1.0 |
| F5 | Big-Ip Fraud Protection Service | ≥ 13.0.0, ≤ 13.1.1 ≥ 14.0.0, ≤ 14.1.0 ≥ 15.0.0, < 15.1.0 |
| F5 | Big-Ip Global Traffic Manager | ≥ 13.0.0, ≤ 13.1.1 ≥ 14.0.0, ≤ 14.1.0 ≥ 15.0.0, < 15.1.0 |
| F5 | Big-Ip Application Security Manager | ≥ 13.0.0, ≤ 13.1.1 ≥ 14.0.0, ≤ 14.1.0 ≥ 15.0.0, < 15.1.0 |
| F5 | Big-Ip Access Policy Manager | ≥ 13.0.0, ≤ 13.1.1 ≥ 14.0.0, ≤ 14.1.0 ≥ 15.0.0, < 15.1.0 |
| F5 | Big-Ip Analytics | ≥ 13.0.0, ≤ 13.1.1 ≥ 14.0.0, ≤ 14.1.0 ≥ 15.0.0, < 15.1.0 |
| Linux | Linux Kernel | ≥ 3.10, < 3.16.64 ≥ 3.17, < 3.18.136 ≥ 3.19, < 4.4.176 ≥ 4.5, < 4.9.156 ≥ 4.10, < 4.14.99 ≥ 4.15, < 4.19.21+1 more≥ 4.20, < 4.20.8 |
| Redhat | Enterprise Linux | 7.0 |
| Redhat | Enterprise Linux Server | 7.0 |
| Redhat | Enterprise Linux Workstation | 7.0 |
| Redhat | Enterprise Linux Eus | 7.5 |
| Redhat | Enterprise Linux Server Aus | 7.4 7.6 |
| Redhat | Enterprise Linux Server Eus | 7.6 |
| Redhat | Enterprise Linux Server Tus | 7.4 7.6 |
| Redhat | Openshift Container Platform | 3.11 |
| Redhat | Enterprise Linux Desktop | 7.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
In the Linux kernel before 4.20.8, kvm_ioctl_create_device in virt/kvm/kvm_main.c mishandles reference counting because of a race condition, leading to a use-after-free.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2019-6974 |
|---|---|
| BreachSpider ID | BS-2019-GLOBAL-140964-H |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2019-02-15 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-362: Race Condition
Software behavior depends on event timing that is not enforced, allowing attackers to exploit the timing window.
CWE-416: Use After Free
Software references memory after it has been freed, leading to corruption, crashes, or code execution.
Related attack patterns (CAPEC)
CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions via CWE-362
CAPEC-26 Leveraging Race Conditions via CWE-362
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A use-after-free vulnerability exists in the Linux kernel before version 4.20.8 due to improper reference counting in the kvm_ioctl_create_device function, which can be exploited to gain elevated privileges.
An attacker with local user access can exploit this vulnerability to execute arbitrary code with kernel privileges, potentially leading to a full system compromise.
Questions
What is CVE-2019-6974?
A use-after-free vulnerability exists in the Linux kernel before version 4.20.8 due to improper reference counting in the kvm_ioctl_create_device function, which can be exploited to gain elevated privileges.
What is the CVSS score for CVE-2019-6974?
CVE-2019-6974 has CVSS 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 16.5%.
Is CVE-2019-6974 actively exploited?
Public exploit available for CVE-2019-6974. Exploitation risk elevated.
How do I remediate CVE-2019-6974?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2019-6974?
CVE-2019-6974 affects Canonical Ubuntu Linux; Debian Debian Linux; F5 Big-Ip Edge Gateway, Big-Ip Link Controller, Big-Ip Local Traffic Manager, Big-Ip Webaccelerator, Big-Ip Advanced Firewall Manager, Big-Ip Policy Enforcement Manager, Big-Ip Application Acceleration Manager, Big-Ip Fraud Protection Service (plus 14 more products across 2 more vendors).
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.