CVE-2019-6974: Race Condition

Published Feb 2, 2019
·
Updated

A use after free issue was found in the way Linux kernel's KVM hypervisor implements its device control API. While creating a device via kvmioctlcreatedevice(), device holds a reference to a VM object, latter this reference is transferred to caller's file descriptor table. If such file descriptor was to be closed, reference count to the VM object could become zero, potentially leading to use-after-free issue latter.

A user/process could use this flaw to crash the guest VM resulting in DoS issue OR potentially gain privileged access to a system.

Upstream patch: --------------- -> https://git.kernel.org/linus/cfa39381173d5f969daf43582c95ad679189cbc9

Reference: ---------- -> https://www.openwall.com/lists/oss-security/2019/02/18/2

Other sources

In the Linux kernel before 4.20.8, kvmioctlcreatedevice in virt/kvm/kvmmain.c mishandles reference counting because of a race condition, leading to a use-after-free.

MITRE

Affected Software

61 affected componentsFixes available
Linux Linux kernel>=3.10<3.16.64
Linux Linux kernel>=3.17<3.18.136
Linux Linux kernel>=3.19<4.4.176
Linux Linux kernel>=4.5<4.9.156
Linux Linux kernel>=4.10<4.14.99
Linux Linux kernel>=4.15<4.19.21
Linux Linux kernel>=4.20<4.20.8
Debian Debian Linux=8.0
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=18.10
F5 BIG-IP Access Policy Manager>=13.0.0<=13.1.1
F5 BIG-IP Access Policy Manager>=14.0.0<=14.1.0
F5 BIG-IP Access Policy Manager>=15.0.0<15.1.0
F5 BIG-IP Advanced Firewall Manager>=13.0.0<=13.1.1
F5 BIG-IP Advanced Firewall Manager>=14.0.0<=14.1.0
F5 BIG-IP Advanced Firewall Manager>=15.0.0<15.1.0
F5 BIG-IP Analytics>=13.0.0<=13.1.1
F5 BIG-IP Analytics>=14.0.0<=14.1.0
F5 BIG-IP Analytics>=15.0.0<15.1.0
F5 Big-ip Application Acceleration Manager>=13.0.0<=13.1.1
F5 Big-ip Application Acceleration Manager>=14.0.0<=14.1.0
F5 Big-ip Application Acceleration Manager>=15.0.0<15.1.0
F5 BIG-IP Application Security Manager>=13.0.0<=13.1.1
F5 BIG-IP Application Security Manager>=14.0.0<=14.1.0
F5 BIG-IP Application Security Manager>=15.0.0<15.1.0
F5 BIG-IP Edge Gateway>=13.0.0<=13.1.1
F5 BIG-IP Edge Gateway>=14.0.0<=14.1.0
F5 BIG-IP Edge Gateway>=15.0.0<15.1.0
F5 Big-ip Fraud Protection Service>=13.0.0<=13.1.1
F5 Big-ip Fraud Protection Service>=14.0.0<=14.1.0
F5 Big-ip Fraud Protection Service>=15.0.0<15.1.0
F5 Big-ip Global Traffic Manager>=13.0.0<=13.1.1
F5 Big-ip Global Traffic Manager>=14.0.0<=14.1.0
F5 Big-ip Global Traffic Manager>=15.0.0<15.1.0
F5 Big-ip Link Controller>=13.0.0<=13.1.1
F5 Big-ip Link Controller>=14.0.0<=14.1.0
F5 Big-ip Link Controller>=15.0.0<15.1.0
F5 Big-ip Local Traffic Manager>=13.0.0<=13.1.1
F5 Big-ip Local Traffic Manager>=14.0.0<=14.1.0
F5 Big-ip Local Traffic Manager>=15.0.0<15.1.0
F5 Big-ip Policy Enforcement Manager>=13.0.0<=13.1.1
F5 Big-ip Policy Enforcement Manager>=14.0.0<=14.1.0
F5 Big-ip Policy Enforcement Manager>=15.0.0<15.1.0
F5 Big-ip Webaccelerator>=13.0.0<=13.1.1
F5 Big-ip Webaccelerator>=14.0.0<=14.1.0
F5 Big-ip Webaccelerator>=15.0.0<15.1.0
redhat OpenShift Container Platform=3.11
redhat Enterprise Linux=7.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Eus=7.5
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server Aus=7.4
redhat Enterprise Linux Server Aus=7.6
redhat Enterprise Linux Server Eus=7.6
redhat Enterprise Linux Server Tus=7.4
redhat Enterprise Linux Server Tus=7.6
redhat Enterprise Linux Workstation=7.0
debian/linux
5.10.223-15.10.262-16.1.176-16.1.180-16.12.94-16.12.101-17.1.7-17.1.8-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.262-1Fixed in 6.1.176-1Fixed in 6.1.180-1Fixed in 6.12.94-1Fixed in 6.12.101-1Fixed in 7.1.7-1Fixed in 7.1.8-1
  2. Upgrade

    Upgrade Linux kernel KVM (kvm_ioctl_create_device) to a version that resolves this vulnerability.

    Fixed in 4.20.8Patch cfa39381173d5f969daf43582c95ad679189cbc9
  3. Operational

    After upgrading past 4.20.8, restart/recapture any affected KVM guest sessions as needed to ensure the fixed KVM code paths are used.

Event History

Feb 2, 2019
Data Sourced
via Red Hat·06:11 AM
DescriptionSeverityAffected Software
Feb 15, 2019
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Data Sourced
via NVD·03:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 23, 2026
Data Sourced
via Launchpad·11:14 AM
Description
Jul 4, 2026
Data Sourced
via Ubuntu·11:29 AM
RemedyDescriptionSeverityAffected Software
Aug 12, 2026
Data Sourced
via Debian·11:04 AM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2019-6974?

CVE-2019-6974 is classified as a high severity vulnerability due to its potential impact on the Linux kernel's KVM hypervisor.

2

How do I fix CVE-2019-6974?

To address CVE-2019-6974, upgrade the Linux kernel to a version that includes the patch, such as those mentioned in the vulnerability details.

3

Which software versions are affected by CVE-2019-6974?

CVE-2019-6974 affects various versions of the Linux kernel, specifically those between versions 3.10 to 5.x before the remedied versions.

4

What type of vulnerability is CVE-2019-6974?

CVE-2019-6974 is categorized as a use after free vulnerability, which occurs when memory is accessed after it has been freed.

5

Can CVE-2019-6974 lead to unauthorized access?

Yes, CVE-2019-6974 could potentially allow an attacker to gain unauthorized access or execute arbitrary code through exploitation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203