CVE-2018-20976: Use After Free

Published May 15, 2018
·
Updated

A flaw was found in the Linux kernel's implementation of the XFS filesystem. A key data structure (sb->sfsinfo) may not be de-allocated when the system is under memory pressure. This same data structure is then used at a later time during filesystem operations. This could allow a local attacker who is able to groom memory to place an attacker-controlled data structure in this location and create a use-after-free situation which can result in memory corruption or privilege escalation.

Other sources

A flaw was found in the Linux kernels implementation of XFS filesystem where a key data structure (sb->sfsinfo) may not be de-allocated when the system is under memory pressure. This same datastructure is then used at a later time during filesystem operations.

This could allow a local attacker who is able to groom memory to place an attacker-controlled data structure in this location and create a use-after-free situation which can result in memory corruption or possible privilege escalation.

Upstream patch:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c9fbd7bbc23dbdd73364be4d045e5d3612cf6e82

— Red Hat

An issue was discovered in fs/xfs/xfssuper.c in the Linux kernel before 4.18. A use after free exists, related to xfsfsfillsuper failure.

— Ubuntu

Affected Software

46 affected componentsFixes available
redhat/kernel<0:3.10.0-327.85.1.el7
0:3.10.0-327.85.1.el7
redhat/kernel<0:3.10.0-514.72.1.el7
0:3.10.0-514.72.1.el7
redhat/kernel<0:3.10.0-693.64.1.el7
0:3.10.0-693.64.1.el7
redhat/kernel<0:3.10.0-862.48.1.el7
0:3.10.0-862.48.1.el7
redhat/kernel-rt<1:3.10.0-693.64.1.rt56.662.el6
1:3.10.0-693.64.1.rt56.662.el6
Linux Linux kernel<4.18
debian/linux
6.1.176-16.1.190-16.12.107-16.12.113-17.2.12-1
ubuntu/linux-aws<4.4.0-1055.59
4.4.0-1055.59
ubuntu/linux-azure<4.15.0-1060.65~14.04.1
4.15.0-1060.65~14.04.1
ubuntu/linux-lts-xenial<4.4.0-165.193~14.04.1
4.4.0-165.193~14.04.1
ubuntu/linux*
ubuntu/linux<4.4.0-165.193
4.4.0-165.193
ubuntu/linux-aws<4.4.0-1095.106
4.4.0-1095.106
ubuntu/linux-aws-hwe<4.15.0-1051.53~16.04.1
4.15.0-1051.53~16.04.1
ubuntu/linux-azure<4.15.0-1060.65
4.15.0-1060.65
ubuntu/linux-gcp<4.15.0-1046.49
4.15.0-1046.49
ubuntu/linux-hwe<4.15.0-65.74~16.04.1
4.15.0-65.74~16.04.1
ubuntu/linux-kvm<4.4.0-1059.66
4.4.0-1059.66
ubuntu/linux-oracle<4.15.0-1026.29~16.04.1
4.15.0-1026.29~16.04.1
ubuntu/linux-raspi2<4.4.0-1123.132
4.4.0-1123.132
ubuntu/linux-snapdragon<4.4.0-1127.135
4.4.0-1127.135
ubuntu/linux-fips<4.4.0-1022.27
4.4.0-1022.27
ubuntu/linux-fips*
ubuntu/linux<4.15.0-65.74
4.15.0-65.74
ubuntu/linux-aws<4.15.0-1051.53
4.15.0-1051.53
ubuntu/linux-azure<4.18.0-1011.11~18.04.1
4.18.0-1011.11~18.04.1
ubuntu/linux-gcp<5.0.0-1020.20~18.04.1
5.0.0-1020.20~18.04.1
ubuntu/linux-gke-4.15<4.15.0-1045.48
4.15.0-1045.48
ubuntu/linux-kvm<4.15.0-1047.47
4.15.0-1047.47
ubuntu/linux-oem<4.15.0-1057.66
4.15.0-1057.66
ubuntu/linux-oracle<4.15.0-1026.29
4.15.0-1026.29
ubuntu/linux-raspi2<4.15.0-1048.52
4.15.0-1048.52
ubuntu/linux-snapdragon<4.15.0-1065.72
4.15.0-1065.72
ubuntu/linux-aws-fips<4.15.0-2018.18
4.15.0-2018.18
ubuntu/linux-azure-fips<4.15.0-2006.7
4.15.0-2006.7
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux-azure-fde*
ubuntu/linux-gke*
ubuntu/linux-riscv*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-raspi-realtime*
ubuntu/linux-vmware*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-327.85.1.el7
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-514.72.1.el7
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-693.64.1.el7
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-862.48.1.el7
  5. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 1:3.10.0-693.64.1.rt56.662.el6
  6. Upgrade

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

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1
  7. Upgrade

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

    Fixed in 4.4.0-1055.59
  8. Upgrade

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

    Fixed in 4.15.0-1060.65~14.04.1
  9. Upgrade

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

    Fixed in 4.4.0-165.193~14.04.1
  10. Upgrade

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

    Fixed in 4.4.0-165.193
  11. Upgrade

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

    Fixed in 4.4.0-1095.106
  12. Upgrade

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

    Fixed in 4.15.0-1051.53~16.04.1
  13. Upgrade

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

    Fixed in 4.15.0-1060.65
  14. Upgrade

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

    Fixed in 4.15.0-1046.49
  15. Upgrade

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

    Fixed in 4.15.0-65.74~16.04.1
  16. Upgrade

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

    Fixed in 4.4.0-1059.66
  17. Upgrade

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

    Fixed in 4.15.0-1026.29~16.04.1
  18. Upgrade

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

    Fixed in 4.4.0-1123.132
  19. Upgrade

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

    Fixed in 4.4.0-1127.135
  20. Upgrade

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

    Fixed in 4.4.0-1022.27
  21. Upgrade

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

    Fixed in 4.15.0-65.74
  22. Upgrade

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

    Fixed in 4.15.0-1051.53
  23. Upgrade

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

    Fixed in 4.18.0-1011.11~18.04.1
  24. Upgrade

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

    Fixed in 5.0.0-1020.20~18.04.1
  25. Upgrade

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

    Fixed in 4.15.0-1045.48
  26. Upgrade

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

    Fixed in 4.15.0-1047.47
  27. Upgrade

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

    Fixed in 4.15.0-1057.66
  28. Upgrade

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

    Fixed in 4.15.0-1026.29
  29. Upgrade

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

    Fixed in 4.15.0-1048.52
  30. Upgrade

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

    Fixed in 4.15.0-1065.72
  31. Upgrade

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

    Fixed in 4.15.0-2018.18
  32. Upgrade

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

    Fixed in 4.15.0-2006.7
  33. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 4.18

Event History

May 15, 2018
CVE Published
12:00 AM
Aug 18, 2019
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Aug 19, 2019
CVE Published
via MITRE·01:52 AM
Data Sourced
via MITRE·01:52 AM
Description
Data Sourced
via NVD·02:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 20, 2019
Data Sourced
via Red Hat·08:19 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2018-20976?

CVE-2018-20976 is considered to have a medium severity level due to the potential for local attackers to exploit the flaw under specific conditions.

2

How do I fix CVE-2018-20976?

To fix CVE-2018-20976, update the Linux kernel to one of the following versions: 0:3.10.0-327.85.1.el7, 0:3.10.0-514.72.1.el7, 0:3.10.0-693.64.1.el7, 0:3.10.0-862.48.1.el7, or higher versions as specified by your Linux distribution.

3

Which systems are affected by CVE-2018-20976?

CVE-2018-20976 affects Linux kernel versions up to 4.18, particularly in systems using the XFS filesystem.

4

Can CVE-2018-20976 be exploited remotely?

CVE-2018-20976 is not known to be remotely exploitable as it requires local access to the system.

5

What type of vulnerability is CVE-2018-20976?

CVE-2018-20976 is a local denial-of-service vulnerability affecting the memory management of the XFS filesystem in the Linux kernel.

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