CVE-2018-5873: Use After Free

Published Jul 2, 2018
·
Updated

An issue was discovered in the nsgetpath function in fs/nsfs.c in the Linux kernel before 4.11. Due to a race condition when accessing files, a Use After Free condition can occur. This also affects all Android releases from CAF using the Linux kernel (Android for MSM, Firefox OS for MSM, QRD Android) before security patch level 2018-07-05.

Affected Software

25 affected componentsFixes available
Google Android
Linux Linux kernel>=3.19<4.1.50
Linux Linux kernel>=4.2<4.4.116
Linux Linux kernel>=4.5<4.9.82
Linux Linux kernel>=4.10<4.11
Google Android
ubuntu/linux-aws<4.4.0-1017.17
4.4.0-1017.17
ubuntu/linux-lts-xenial<4.4.0-121.145~14.04.1
4.4.0-121.145~14.04.1
ubuntu/linux<4.4.0-121.145
4.4.0-121.145
ubuntu/linux-aws<4.4.0-1055.64
4.4.0-1055.64
ubuntu/linux-gcp<4.13.0-1002.5
4.13.0-1002.5
ubuntu/linux-hwe<4.13.0-32.35~16.04.1
4.13.0-32.35~16.04.1
ubuntu/linux-kvm<4.4.0-1021.26
4.4.0-1021.26
ubuntu/linux-raspi2<4.4.0-1087.95
4.4.0-1087.95
ubuntu/linux-snapdragon<4.4.0-1090.95
4.4.0-1090.95
ubuntu/linux-fips<4.4.0-1008.10
4.4.0-1008.10
ubuntu/linux-azure-edge*
ubuntu/linux-azure-fde*
ubuntu/linux-gke*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-raspi-realtime*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.4.0-1017.17
  2. Upgrade

    Upgrade ubuntu/linux-lts-xenial to a version that resolves this vulnerability.

    Fixed in 4.4.0-121.145~14.04.1
  3. Upgrade

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

    Fixed in 4.4.0-121.145
  4. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.4.0-1055.64
  5. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 4.13.0-1002.5
  6. Upgrade

    Upgrade ubuntu/linux-hwe to a version that resolves this vulnerability.

    Fixed in 4.13.0-32.35~16.04.1
  7. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.4.0-1021.26
  8. Upgrade

    Upgrade ubuntu/linux-raspi2 to a version that resolves this vulnerability.

    Fixed in 4.4.0-1087.95
  9. Upgrade

    Upgrade ubuntu/linux-snapdragon to a version that resolves this vulnerability.

    Fixed in 4.4.0-1090.95
  10. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 4.4.0-1008.10

Event History

Jul 2, 2018
CVE Published
via Android·12:00 AM
Data Sourced
via Android·12:00 AM
SeverityWeaknessAffected Software
Jul 6, 2018
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
DescriptionWeakness
Data Sourced
via OSV·07:29 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:29 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2018-5873?

CVE-2018-5873 has a severity rating that indicates it can lead to a Use After Free condition, potentially allowing for arbitrary code execution.

2

How do I fix CVE-2018-5873?

To fix CVE-2018-5873, you should update your Linux kernel to version 4.11 or later.

3

Which versions of the Linux kernel are affected by CVE-2018-5873?

CVE-2018-5873 affects Linux kernel versions below 4.11, specifically versions 4.10 and earlier.

4

Does CVE-2018-5873 affect Android devices?

Yes, CVE-2018-5873 affects all Android releases from CAF that use the Linux kernel prior to version 4.11.

5

What type of vulnerability is CVE-2018-5873?

CVE-2018-5873 is classified as a Use After Free vulnerability caused by a race condition in file access.

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