CVE-2021-3347: Use After Free

Published Jan 28, 2021
·
Updated

A flaw was found in the Linux kernel. A use after free issue in PI futex may lead to code execution.

Upstream patch:

https://github.com/torvalds/linux/commit/c64396cc36c6e60704ab06c1fb1c4a46179c9120

References:

https://www.openwall.com/lists/oss-security/2021/01/29/1

Other sources

A flaw was found in the Linux kernel. A use-after-free memory flaw in the Fast Userspace Mutexes functionality allowing a local user to crash the system or escalate their privileges on the system. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

An issue was discovered in the Linux kernel through 5.10.11. PI futexes have a kernel stack use-after-free during fault handling, allowing local users to execute code in the kernel, aka CID-34b1a1ce1458.

In fixuppistateowner of futex.c, there is a possible use after free due to a race condition. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.

— OSV

Linux Kernel could allow a local authenticated attacker to gain elevated privileges on the system, caused by a kernel stack use-after-free during fault handling in PI futexes. An attacker could exploit this vulnerability to gain elevated privileges and execute arbitrary code in the kernel.

— IBM

Affected Software

102 affected componentsFixes available
redhat/kernel<0:2.6.32-754.41.2.el6
0:2.6.32-754.41.2.el6
redhat/kernel-rt<0:3.10.0-1160.31.1.rt56.1169.el7
0:3.10.0-1160.31.1.rt56.1169.el7
redhat/kernel-alt<0:4.14.0-115.36.1.el7a
0:4.14.0-115.36.1.el7a
redhat/kernel<0:3.10.0-1160.31.1.el7
0:3.10.0-1160.31.1.el7
redhat/kernel<0:3.10.0-327.100.1.el7
0:3.10.0-327.100.1.el7
redhat/kernel<0:3.10.0-514.90.2.el7
0:3.10.0-514.90.2.el7
redhat/kernel<0:3.10.0-693.90.2.el7
0:3.10.0-693.90.2.el7
redhat/kernel<0:3.10.0-957.78.2.el7
0:3.10.0-957.78.2.el7
redhat/kernel<0:3.10.0-1062.56.1.el7
0:3.10.0-1062.56.1.el7
redhat/kernel-rt<0:4.18.0-240.22.1.rt7.77.el8_3
0:4.18.0-240.22.1.rt7.77.el8_3
redhat/kernel<0:4.18.0-240.22.1.el8_3
0:4.18.0-240.22.1.el8_3
redhat/kernel<0:4.18.0-147.48.1.el8_1
0:4.18.0-147.48.1.el8_1
redhat/kernel-rt<0:4.18.0-193.51.1.rt13.101.el8_2
0:4.18.0-193.51.1.rt13.101.el8_2
redhat/kernel<0:4.18.0-193.51.1.el8_2
0:4.18.0-193.51.1.el8_2
IBM DRM<=2.0.6
Linux Linux kernel<=5.10.11
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Fedoraproject Fedora=32
Fedoraproject Fedora=33
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
Google Android
android/:linux_kernel:>=:0<:2021-08-05
:2021-08-05
ubuntu/linux-aws<4.4.0-1090.94
4.4.0-1090.94
ubuntu/linux-azure<4.15.0-1112.124~14.04.1
4.15.0-1112.124~14.04.1
ubuntu/linux-lts-xenial<4.4.0-208.240~14.04.1
4.4.0-208.240~14.04.1
ubuntu/linux*
ubuntu/linux<4.4.0-208.240
4.4.0-208.240
ubuntu/linux-aws<4.4.0-1126.140
4.4.0-1126.140
ubuntu/linux-aws-hwe<4.15.0-1098.105~16.04.1
4.15.0-1098.105~16.04.1
ubuntu/linux-azure<4.15.0-1112.124~16.04.1
4.15.0-1112.124~16.04.1
ubuntu/linux-gcp<4.15.0-1097.110~16.04.1
4.15.0-1097.110~16.04.1
ubuntu/linux-hwe<4.15.0-142.146~16.04.1
4.15.0-142.146~16.04.1
ubuntu/linux-kvm<4.4.0-1091.100
4.4.0-1091.100
ubuntu/linux-oracle<4.15.0-1069.77~16.04.1
4.15.0-1069.77~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1060.66
4.4.0-1060.66
ubuntu/linux-fips*
ubuntu/linux<4.15.0-141.145
4.15.0-141.145
ubuntu/linux-aws<4.15.0-1098.105
4.15.0-1098.105
ubuntu/linux-aws-5.4<5.4.0-1039.41~18.04.1
5.4.0-1039.41~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1112.125
4.15.0-1112.125
ubuntu/linux-azure-5.4<5.4.0-1041.43~18.04.1
5.4.0-1041.43~18.04.1
ubuntu/linux-dell300x<4.15.0-1016.20
4.15.0-1016.20
ubuntu/linux-gcp-4.15<4.15.0-1097.110
4.15.0-1097.110
ubuntu/linux-gcp-5.4<5.4.0-1038.41~18.04.1
5.4.0-1038.41~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1037.39~18.04.1
5.4.0-1037.39~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1011.12~18.04.2
5.4.0-1011.12~18.04.2
ubuntu/linux-hwe-5.4<5.4.0-67.75~18.04.1
5.4.0-67.75~18.04.1
ubuntu/linux-kvm<4.15.0-1089.91
4.15.0-1089.91
ubuntu/linux-oracle<4.15.0-1069.77
4.15.0-1069.77
ubuntu/linux-oracle-5.4<5.4.0-1039.42~18.04.1
5.4.0-1039.42~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1030.33~18.04.1
5.4.0-1030.33~18.04.1
ubuntu/linux-raspi2<4.15.0-1083.88
4.15.0-1083.88
ubuntu/linux-snapdragon<4.15.0-1100.109
4.15.0-1100.109
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-2041.43
4.15.0-2041.43
ubuntu/linux-azure-fips<4.15.0-2024.27
4.15.0-2024.27
ubuntu/linux-fips<4.15.0-1057.65
4.15.0-1057.65
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-67.75
5.4.0-67.75
ubuntu/linux-aws<5.4.0-1039.41
5.4.0-1039.41
ubuntu/linux-azure<5.4.0-1041.43
5.4.0-1041.43
ubuntu/linux-gcp<5.4.0-1038.41
5.4.0-1038.41
ubuntu/linux-gke<5.4.0-1037.39
5.4.0-1037.39
ubuntu/linux-gkeop<5.4.0-1011.12
5.4.0-1011.12
ubuntu/linux-hwe-5.8<5.8.0-49.55~20.04.1
5.8.0-49.55~20.04.1
ubuntu/linux-kvm<5.4.0-1034.35
5.4.0-1034.35
ubuntu/linux-oem-5.10<5.10.0-1017.18
5.10.0-1017.18
ubuntu/linux-oracle<5.4.0-1039.42
5.4.0-1039.42
ubuntu/linux-raspi<5.4.0-1030.33
5.4.0-1030.33
ubuntu/linux-riscv-5.8<5.8.0-22.24~20.04.1
5.8.0-22.24~20.04.1
ubuntu/linux-azure-fde-5.15<5.15.0-1114.123~20.04.1
5.15.0-1114.123~20.04.1
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*
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:2.6.32-754.41.2.el6
  2. Upgrade

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

    Fixed in 0:3.10.0-1160.31.1.rt56.1169.el7
  3. Upgrade

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

    Fixed in 0:4.14.0-115.36.1.el7a
  4. Upgrade

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

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

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

    Fixed in 0:3.10.0-327.100.1.el7
  6. Upgrade

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

    Fixed in 0:3.10.0-514.90.2.el7
  7. Upgrade

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

    Fixed in 0:3.10.0-693.90.2.el7
  8. Upgrade

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

    Fixed in 0:3.10.0-957.78.2.el7
  9. Upgrade

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

    Fixed in 0:3.10.0-1062.56.1.el7
  10. Upgrade

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

    Fixed in 0:4.18.0-240.22.1.rt7.77.el8_3
  11. Upgrade

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

    Fixed in 0:4.18.0-240.22.1.el8_3
  12. Upgrade

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

    Fixed in 0:4.18.0-147.48.1.el8_1
  13. Upgrade

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

    Fixed in 0:4.18.0-193.51.1.rt13.101.el8_2
  14. Upgrade

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

    Fixed in 0:4.18.0-193.51.1.el8_2
  15. 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
  16. Upgrade

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

    Fixed in :2021-08-05
  17. Upgrade

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

    Fixed in 4.4.0-1090.94
  18. Upgrade

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

    Fixed in 4.15.0-1112.124~14.04.1
  19. Upgrade

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

    Fixed in 4.4.0-208.240~14.04.1
  20. Upgrade

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

    Fixed in 4.4.0-208.240
  21. Upgrade

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

    Fixed in 4.4.0-1126.140
  22. Upgrade

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

    Fixed in 4.15.0-1098.105~16.04.1
  23. Upgrade

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

    Fixed in 4.15.0-1112.124~16.04.1
  24. Upgrade

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

    Fixed in 4.15.0-1097.110~16.04.1
  25. Upgrade

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

    Fixed in 4.15.0-142.146~16.04.1
  26. Upgrade

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

    Fixed in 4.4.0-1091.100
  27. Upgrade

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

    Fixed in 4.15.0-1069.77~16.04.1
  28. Upgrade

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

    Fixed in 4.4.0-1060.66
  29. Upgrade

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

    Fixed in 4.15.0-141.145
  30. Upgrade

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

    Fixed in 4.15.0-1098.105
  31. Upgrade

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

    Fixed in 5.4.0-1039.41~18.04.1
  32. Upgrade

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

    Fixed in 4.15.0-1112.125
  33. Upgrade

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

    Fixed in 5.4.0-1041.43~18.04.1
  34. Upgrade

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

    Fixed in 4.15.0-1016.20
  35. Upgrade

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

    Fixed in 4.15.0-1097.110
  36. Upgrade

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

    Fixed in 5.4.0-1038.41~18.04.1
  37. Upgrade

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

    Fixed in 5.4.0-1037.39~18.04.1
  38. Upgrade

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

    Fixed in 5.4.0-1011.12~18.04.2
  39. Upgrade

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

    Fixed in 5.4.0-67.75~18.04.1
  40. Upgrade

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

    Fixed in 4.15.0-1089.91
  41. Upgrade

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

    Fixed in 4.15.0-1069.77
  42. Upgrade

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

    Fixed in 5.4.0-1039.42~18.04.1
  43. Upgrade

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

    Fixed in 5.4.0-1030.33~18.04.1
  44. Upgrade

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

    Fixed in 4.15.0-1083.88
  45. Upgrade

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

    Fixed in 4.15.0-1100.109
  46. Upgrade

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

    Fixed in 4.15.0-2041.43
  47. Upgrade

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

    Fixed in 4.15.0-2024.27
  48. Upgrade

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

    Fixed in 4.15.0-1057.65
  49. Upgrade

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

    Fixed in 5.4.0-67.75
  50. Upgrade

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

    Fixed in 5.4.0-1039.41
  51. Upgrade

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

    Fixed in 5.4.0-1041.43
  52. Upgrade

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

    Fixed in 5.4.0-1038.41
  53. Upgrade

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

    Fixed in 5.4.0-1037.39
  54. Upgrade

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

    Fixed in 5.4.0-1011.12
  55. Upgrade

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

    Fixed in 5.8.0-49.55~20.04.1
  56. Upgrade

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

    Fixed in 5.4.0-1034.35
  57. Upgrade

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

    Fixed in 5.10.0-1017.18
  58. Upgrade

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

    Fixed in 5.4.0-1039.42
  59. Upgrade

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

    Fixed in 5.4.0-1030.33
  60. Upgrade

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

    Fixed in 5.8.0-22.24~20.04.1
  61. Upgrade

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

    Fixed in 5.15.0-1114.123~20.04.1
  62. Upgrade

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

    Fixed in 5.4.0-1069.73+fips2
  63. Upgrade

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

    Fixed in 5.4.0-1073.76+fips1
  64. Upgrade

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

    Fixed in 5.4.0-1067.71~20.04.1
  65. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch c64396cc36c6e60704ab06c1fb1c4a46179c9120

Event History

Jan 28, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 29, 2021
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
CVE Published
via MITRE·04:56 PM
Data Sourced
via MITRE·04:56 PM
Description
Data Sourced
via OSV·05:15 PM
DescriptionSeverityAffected Software
Aug 1, 2021
Advisory Published
via OSV·12:00 AM
Oct 11, 2021
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Apr 17, 2022
Data Sourced
via Red Hat·09:07 PM
DescriptionSeverityAffected Software
Apr 26, 2022
Exploit Published
via GitHub·11:32 AM
Nov 7, 2023
Data Sourced
via NVD·03:37 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
03:37 AM
Affected Software
Apr 29, 2024
Data Sourced
via Android·12:00 AM
SeverityWeaknessAffected Software
Updated
via Android·12:00 AM
Affected Software
Aug 26, 2024
Updated
via Android·12:00 AM
Affected Software
Nov 21, 2024
Updated
via NVD·06:21 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·04:04 AM
SeverityWeaknessAffected Software
Nov 11, 2026
Updated
via OSV·09:36 AM
Affected Software
Nov 12, 2026
Updated
via OSV·05:22 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-3347?

CVE-2021-3347 has a high severity level due to the potential for code execution through a use after free vulnerability.

2

How do I fix CVE-2021-3347?

To fix CVE-2021-3347, apply the latest kernel patches and updates provided by your distribution.

3

Which Linux versions are affected by CVE-2021-3347?

CVE-2021-3347 affects multiple versions of the Linux kernel, particularly those prior to the patched versions listed by Red Hat and other distributions.

4

What are the potential impacts of CVE-2021-3347?

The potential impacts of CVE-2021-3347 include arbitrary code execution, which could lead to system compromise or unauthorized access.

5

Is there an exploit available for CVE-2021-3347?

At the time of reporting, there was potential for exploitation, but specific exploit details require careful management to prevent misuse.

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