CVE-2021-20292: Use After Free

Published Mar 16, 2021
·
Updated

In tgmdmattinit of tt.c, there is a possible kernel memory corruption due to a use after free. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.

Other sources

There is a flaw reported in drivers/gpu/drm/nouveau/nouveausgdma.c in nouveausgdmacreatettm in Nouveau DRM subsystem. The issue results from the lack of validating the existence of an object prior to performing operations on the object. An attacker with a local account with a root privilege, can leverage this vulnerability to escalate privileges and execute code in the context of the kernel.

This has been already addressed in the upstream commit 5de5b6ecf97a021f29403aa272cb4e03318ef586 Note: Kernel with CONFIGSLABFREELISTHARDENED=y option enabled should not be affected with this flaw.

— Red Hat

There is a flaw reported in the Linux kernel in versions before 5.9 in drivers/gpu/drm/nouveau/nouveausgdma.c in nouveausgdmacreatettm in Nouveau DRM subsystem. The issue results from the lack of validating the existence of an object prior to performing operations on the object. An attacker with a local account with a root privilege, can leverage this vulnerability to escalate privileges and execute code in the context of the kernel.

— Launchpad

Affected Software

83 affected componentsFixes available
Linux Linux kernel>=3.3<4.9.298
Linux Linux kernel>=4.10<4.14.263
Linux Linux kernel>=4.15<4.19.140
Linux Linux kernel>=4.20<5.4.59
Linux Linux kernel>=5.5<5.7.16
Linux Linux kernel>=5.8<5.8.2
Fedoraproject Fedora=33
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
Debian Debian Linux=9.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
android/:linux_kernel:>=:0<:2021-10-05
:2021-10-05
ubuntu/linux-aws<4.4.0-1102.107
4.4.0-1102.107
ubuntu/linux-azure<4.15.0-1114.127~14.04.1
4.15.0-1114.127~14.04.1
ubuntu/linux-lts-xenial<4.4.0-222.255~14.04.1
4.4.0-222.255~14.04.1
ubuntu/linux*
ubuntu/linux<4.4.0-222.255
4.4.0-222.255
ubuntu/linux-aws<4.4.0-1138.152
4.4.0-1138.152
ubuntu/linux-aws-hwe<4.15.0-1102.109~16.04.1
4.15.0-1102.109~16.04.1
ubuntu/linux-azure<4.15.0-1114.127~16.04.1
4.15.0-1114.127~16.04.1
ubuntu/linux-gcp<4.15.0-1099.112~16.04.1
4.15.0-1099.112~16.04.1
ubuntu/linux-hwe<4.15.0-143.147~16.04.3
4.15.0-143.147~16.04.3
ubuntu/linux-kvm<4.4.0-1103.112
4.4.0-1103.112
ubuntu/linux-oracle<4.15.0-1071.79~16.04.1
4.15.0-1071.79~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1072.78
4.4.0-1072.78
ubuntu/linux-fips*
ubuntu/linux<4.15.0-143.147
4.15.0-143.147
ubuntu/linux-aws<4.15.0-1102.109
4.15.0-1102.109
ubuntu/linux-aws-5.4<5.4.0-1025.25~18.04.1
5.4.0-1025.25~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1114.127
4.15.0-1114.127
ubuntu/linux-azure-5.4<5.4.0-1026.26~18.04.1
5.4.0-1026.26~18.04.1
ubuntu/linux-dell300x<4.15.0-1018.22
4.15.0-1018.22
ubuntu/linux-gcp-4.15<4.15.0-1099.112
4.15.0-1099.112
ubuntu/linux-gcp-5.4<5.4.0-1025.25~18.04.1
5.4.0-1025.25~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-48.52~18.04.1
5.4.0-48.52~18.04.1
ubuntu/linux-kvm<4.15.0-1091.93
4.15.0-1091.93
ubuntu/linux-oracle<4.15.0-1071.79
4.15.0-1071.79
ubuntu/linux-oracle-5.4<5.4.0-1025.25~18.04.1
5.4.0-1025.25~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1019.21~18.04.1
5.4.0-1019.21~18.04.1
ubuntu/linux-raspi2<4.15.0-1085.90
4.15.0-1085.90
ubuntu/linux-snapdragon<4.15.0-1102.111
4.15.0-1102.111
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gcp-edge*
ubuntu/linux-gke-4.15*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-aws-fips<4.15.0-2044.46
4.15.0-2044.46
ubuntu/linux-azure-fips<4.15.0-2026.29
4.15.0-2026.29
ubuntu/linux-fips<4.15.0-1059.67
4.15.0-1059.67
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-48.52
5.4.0-48.52
ubuntu/linux-aws<5.4.0-1025.25
5.4.0-1025.25
ubuntu/linux-azure<5.4.0-1026.26
5.4.0-1026.26
ubuntu/linux-gcp<5.4.0-1025.25
5.4.0-1025.25
ubuntu/linux-kvm<5.4.0-1024.24
5.4.0-1024.24
ubuntu/linux-oracle<5.4.0-1025.25
5.4.0-1025.25
ubuntu/linux-raspi<5.4.0-1019.21
5.4.0-1019.21
ubuntu/linux-oem-5.6*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-aws-fips<5.4.0-1069.73+fips2
5.4.0-1069.73+fips2
ubuntu/linux-azure-fips<5.4.0-1073.76+fips1
5.4.0-1073.76+fips1
ubuntu/linux-gcp-fips<5.4.0-1067.71~20.04.1
5.4.0-1067.71~20.04.1
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-raspi-realtime*
redhat/kernel<5.9
5.9

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.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade android/:linux_kernel: to a version that resolves this vulnerability.

    Fixed in :2021-10-05
  3. Upgrade

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

    Fixed in 4.4.0-1102.107
  4. Upgrade

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

    Fixed in 4.15.0-1114.127~14.04.1
  5. Upgrade

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

    Fixed in 4.4.0-222.255~14.04.1
  6. Upgrade

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

    Fixed in 4.4.0-222.255
  7. Upgrade

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

    Fixed in 4.4.0-1138.152
  8. Upgrade

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

    Fixed in 4.15.0-1102.109~16.04.1
  9. Upgrade

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

    Fixed in 4.15.0-1114.127~16.04.1
  10. Upgrade

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

    Fixed in 4.15.0-1099.112~16.04.1
  11. Upgrade

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

    Fixed in 4.15.0-143.147~16.04.3
  12. Upgrade

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

    Fixed in 4.4.0-1103.112
  13. Upgrade

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

    Fixed in 4.15.0-1071.79~16.04.1
  14. Upgrade

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

    Fixed in 4.4.0-1072.78
  15. Upgrade

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

    Fixed in 4.15.0-143.147
  16. Upgrade

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

    Fixed in 4.15.0-1102.109
  17. Upgrade

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

    Fixed in 5.4.0-1025.25~18.04.1
  18. Upgrade

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

    Fixed in 4.15.0-1114.127
  19. Upgrade

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

    Fixed in 5.4.0-1026.26~18.04.1
  20. Upgrade

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

    Fixed in 4.15.0-1018.22
  21. Upgrade

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

    Fixed in 4.15.0-1099.112
  22. Upgrade

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

    Fixed in 5.4.0-1025.25~18.04.1
  23. Upgrade

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

    Fixed in 5.4.0-48.52~18.04.1
  24. Upgrade

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

    Fixed in 4.15.0-1091.93
  25. Upgrade

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

    Fixed in 4.15.0-1071.79
  26. Upgrade

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

    Fixed in 5.4.0-1025.25~18.04.1
  27. Upgrade

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

    Fixed in 5.4.0-1019.21~18.04.1
  28. Upgrade

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

    Fixed in 4.15.0-1085.90
  29. Upgrade

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

    Fixed in 4.15.0-1102.111
  30. Upgrade

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

    Fixed in 4.15.0-2044.46
  31. Upgrade

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

    Fixed in 4.15.0-2026.29
  32. Upgrade

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

    Fixed in 4.15.0-1059.67
  33. Upgrade

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

    Fixed in 5.4.0-48.52
  34. Upgrade

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

    Fixed in 5.4.0-1025.25
  35. Upgrade

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

    Fixed in 5.4.0-1026.26
  36. Upgrade

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

    Fixed in 5.4.0-1025.25
  37. Upgrade

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

    Fixed in 5.4.0-1024.24
  38. Upgrade

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

    Fixed in 5.4.0-1025.25
  39. Upgrade

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

    Fixed in 5.4.0-1019.21
  40. Upgrade

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

    Fixed in 5.4.0-1069.73+fips2
  41. Upgrade

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

    Fixed in 5.4.0-1073.76+fips1
  42. Upgrade

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

    Fixed in 5.4.0-1067.71~20.04.1
  43. Upgrade

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

    Fixed in 5.9
  44. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 5.9Patch 5de5b6ecf97a021f29403aa272cb4e03318ef586
  45. Configuration

    Enable CONFIG_SLAB_FREELIST_HARDENED=y; kernels with this option enabled should not be affected by the flaw.

    Linux kernel CONFIG_SLAB_FREELIST_HARDENED = y

Event History

Mar 16, 2021
Data Sourced
via Red Hat·07:50 PM
DescriptionSeverityAffected Software
Mar 24, 2021
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
May 28, 2021
CVE Published
via MITRE·10:42 AM
Data Sourced
via MITRE·10:42 AM
DescriptionWeakness
Oct 1, 2021
Advisory Published
via OSV·12:00 AM

Frequently Asked Questions

1

What is the severity of CVE-2021-20292?

CVE-2021-20292 is considered a high-severity vulnerability due to its potential for local privilege escalation.

2

How do I fix CVE-2021-20292?

To fix CVE-2021-20292, update your kernel to a version that is 5.10.223-1 or later.

3

Which software is affected by CVE-2021-20292?

CVE-2021-20292 affects various versions of the Linux Kernel and associated distributions like Red Hat and Debian.

4

Can CVE-2021-20292 be exploited remotely?

No, CVE-2021-20292 requires local access to exploit, making it a local privilege escalation vulnerability.

5

What specific file contains the vulnerability CVE-2021-20292?

The CVE-2021-20292 vulnerability is located in drivers/gpu/drm/nouveau/nouveau_sgdma.c in the Nouveau DRM subsystem.

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