CVE-2021-38208: Null Pointer Dereference

Published Aug 8, 2021
·
Updated

A flaw in the Linux kernels NFC implementation allowed local unpriviledged users to cause a kernel panic to create a denial of service (NULL pointer dereference and BUG) by making a getsockname call after a certain type of failure of a bind call.

Reference and upstream patch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4ac06a1e013cf5fdd963317ffd3b968560f33bba

Other sources

net/nfc/llcpsock.c in the Linux kernel before 5.12.10 allows local unprivileged users to cause a denial of service (NULL pointer dereference and BUG) by making a getsockname call after a certain type of failure of a bind call.

— Launchpad

Affected Software

95 affected componentsFixes available
redhat/kernel<5.13
5.13
Linux Linux kernel<5.12.10
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
ubuntu/linux-aws<4.4.0-1102.107
4.4.0-1102.107
ubuntu/linux-azure<4.15.0-1122.135~14.04.1
4.15.0-1122.135~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-1110.117~16.04.1
4.15.0-1110.117~16.04.1
ubuntu/linux-azure<4.15.0-1122.135~16.04.1
4.15.0-1122.135~16.04.1
ubuntu/linux-gcp<4.15.0-1107.121~16.04.1
4.15.0-1107.121~16.04.1
ubuntu/linux-hwe<4.15.0-154.161~16.04.1
4.15.0-154.161~16.04.1
ubuntu/linux-kvm<4.4.0-1103.112
4.4.0-1103.112
ubuntu/linux-oracle<4.15.0-1079.87~16.04.1
4.15.0-1079.87~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-154.161
4.15.0-154.161
ubuntu/linux-aws<4.15.0-1110.117
4.15.0-1110.117
ubuntu/linux-aws-5.4<5.4.0-1055.58~18.04.1
5.4.0-1055.58~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1122.135
4.15.0-1122.135
ubuntu/linux-azure-5.4<5.4.0-1056.58~18.04.1
5.4.0-1056.58~18.04.1
ubuntu/linux-dell300x<4.15.0-1027.32
4.15.0-1027.32
ubuntu/linux-gcp-4.15<4.15.0-1107.121
4.15.0-1107.121
ubuntu/linux-gcp-5.4<5.4.0-1051.55~18.04.1
5.4.0-1051.55~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1051.54~18.04.1
5.4.0-1051.54~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1022.23~18.04.1
5.4.0-1022.23~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-81.91~18.04.1
5.4.0-81.91~18.04.1
ubuntu/linux-kvm<4.15.0-1098.100
4.15.0-1098.100
ubuntu/linux-oracle<4.15.0-1079.87
4.15.0-1079.87
ubuntu/linux-oracle-5.4<5.4.0-1053.57~18.04.1
5.4.0-1053.57~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1042.46~18.04.3
5.4.0-1042.46~18.04.3
ubuntu/linux-raspi2<4.15.0-1094.100
4.15.0-1094.100
ubuntu/linux-snapdragon<4.15.0-1111.120
4.15.0-1111.120
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-2052.54
4.15.0-2052.54
ubuntu/linux-azure-fips<4.15.0-2034.38
4.15.0-2034.38
ubuntu/linux-fips<4.15.0-1068.77
4.15.0-1068.77
ubuntu/linux-gcp-fips<4.15.0-2017.19
4.15.0-2017.19
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-81.91
5.4.0-81.91
ubuntu/linux-aws<5.4.0-1055.58
5.4.0-1055.58
ubuntu/linux-aws-5.11<5.11.0-1016.17~20.04.1
5.11.0-1016.17~20.04.1
ubuntu/linux-aws-5.8<5.8.0-1042.44~20.04.1
5.8.0-1042.44~20.04.1
ubuntu/linux-azure<5.4.0-1056.58
5.4.0-1056.58
ubuntu/linux-azure-5.11<5.11.0-1013.14~20.04.1
5.11.0-1013.14~20.04.1
ubuntu/linux-azure-5.8<5.8.0-1040.43~20.04.1
5.8.0-1040.43~20.04.1
ubuntu/linux-bluefield<5.4.0-1019.22
5.4.0-1019.22
ubuntu/linux-gcp<5.4.0-1051.55
5.4.0-1051.55
ubuntu/linux-gcp-5.11<5.11.0-1017.19~20.04.1
5.11.0-1017.19~20.04.1
ubuntu/linux-gcp-5.8<5.8.0-1039.41
5.8.0-1039.41
ubuntu/linux-gke<5.4.0-1051.54
5.4.0-1051.54
ubuntu/linux-gkeop<5.4.0-1022.23
5.4.0-1022.23
ubuntu/linux-hwe-5.11<5.11.0-34.36~20.04.1
5.11.0-34.36~20.04.1
ubuntu/linux-kvm<5.4.0-1045.47
5.4.0-1045.47
ubuntu/linux-oem-5.10<5.10.0-1038.40
5.10.0-1038.40
ubuntu/linux-oracle<5.4.0-1053.57
5.4.0-1053.57
ubuntu/linux-oracle-5.11<5.11.0-1016.17~20.04.1
5.11.0-1016.17~20.04.1
ubuntu/linux-oracle-5.8<5.8.0-1038.39~20.04.1
5.8.0-1038.39~20.04.1
ubuntu/linux-raspi<5.4.0-1042.46
5.4.0-1042.46
ubuntu/linux-riscv-5.11<5.11.0-1017.18~20.04.1
5.11.0-1017.18~20.04.1
ubuntu/linux-hwe-5.8*
ubuntu/linux-oem-5.6*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.8*
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-fips<5.4.0-1032.37
5.4.0-1032.37
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-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 5.13
  2. 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
  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-1122.135~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-1110.117~16.04.1
  9. Upgrade

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

    Fixed in 4.15.0-1122.135~16.04.1
  10. Upgrade

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

    Fixed in 4.15.0-1107.121~16.04.1
  11. Upgrade

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

    Fixed in 4.15.0-154.161~16.04.1
  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-1079.87~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-154.161
  16. Upgrade

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

    Fixed in 4.15.0-1110.117
  17. Upgrade

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

    Fixed in 5.4.0-1055.58~18.04.1
  18. Upgrade

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

    Fixed in 4.15.0-1122.135
  19. Upgrade

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

    Fixed in 5.4.0-1056.58~18.04.1
  20. Upgrade

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

    Fixed in 4.15.0-1027.32
  21. Upgrade

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

    Fixed in 4.15.0-1107.121
  22. Upgrade

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

    Fixed in 5.4.0-1051.55~18.04.1
  23. Upgrade

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

    Fixed in 5.4.0-1051.54~18.04.1
  24. Upgrade

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

    Fixed in 5.4.0-1022.23~18.04.1
  25. Upgrade

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

    Fixed in 5.4.0-81.91~18.04.1
  26. Upgrade

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

    Fixed in 4.15.0-1098.100
  27. Upgrade

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

    Fixed in 4.15.0-1079.87
  28. Upgrade

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

    Fixed in 5.4.0-1053.57~18.04.1
  29. Upgrade

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

    Fixed in 5.4.0-1042.46~18.04.3
  30. Upgrade

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

    Fixed in 4.15.0-1094.100
  31. Upgrade

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

    Fixed in 4.15.0-1111.120
  32. Upgrade

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

    Fixed in 4.15.0-2052.54
  33. Upgrade

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

    Fixed in 4.15.0-2034.38
  34. Upgrade

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

    Fixed in 4.15.0-1068.77
  35. Upgrade

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

    Fixed in 4.15.0-2017.19
  36. Upgrade

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

    Fixed in 5.4.0-81.91
  37. Upgrade

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

    Fixed in 5.4.0-1055.58
  38. Upgrade

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

    Fixed in 5.11.0-1016.17~20.04.1
  39. Upgrade

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

    Fixed in 5.8.0-1042.44~20.04.1
  40. Upgrade

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

    Fixed in 5.4.0-1056.58
  41. Upgrade

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

    Fixed in 5.11.0-1013.14~20.04.1
  42. Upgrade

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

    Fixed in 5.8.0-1040.43~20.04.1
  43. Upgrade

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

    Fixed in 5.4.0-1019.22
  44. Upgrade

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

    Fixed in 5.4.0-1051.55
  45. Upgrade

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

    Fixed in 5.11.0-1017.19~20.04.1
  46. Upgrade

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

    Fixed in 5.8.0-1039.41
  47. Upgrade

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

    Fixed in 5.4.0-1051.54
  48. Upgrade

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

    Fixed in 5.4.0-1022.23
  49. Upgrade

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

    Fixed in 5.11.0-34.36~20.04.1
  50. Upgrade

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

    Fixed in 5.4.0-1045.47
  51. Upgrade

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

    Fixed in 5.10.0-1038.40
  52. Upgrade

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

    Fixed in 5.4.0-1053.57
  53. Upgrade

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

    Fixed in 5.11.0-1016.17~20.04.1
  54. Upgrade

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

    Fixed in 5.8.0-1038.39~20.04.1
  55. Upgrade

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

    Fixed in 5.4.0-1042.46
  56. Upgrade

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

    Fixed in 5.11.0-1017.18~20.04.1
  57. Upgrade

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

    Fixed in 5.4.0-1069.73+fips2
  58. Upgrade

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

    Fixed in 5.4.0-1073.76+fips1
  59. Upgrade

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

    Fixed in 5.4.0-1032.37
  60. Upgrade

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

    Fixed in 5.4.0-1067.71~20.04.1
  61. Upgrade

    Upgrade linux kernel (net/nfc/llcp_sock.c) to a version that resolves this vulnerability.

    Fixed in 5.12.10

Event History

Aug 8, 2021
CVE Published
12:00 AM
Data Sourced
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·07:22 PM
Data Sourced
via MITRE·07:22 PM
Description
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Sep 21, 2021
Data Sourced
06:23 PM
Weakness
Data Sourced
via NVD·06:23 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·06:23 PM
Affected Software
Apr 18, 2022
Data Sourced
via Red Hat·02:57 AM
DescriptionSeverityAffected Software
Nov 21, 2024
Updated
via NVD·06:16 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·04:01 AM
Affected Software
Nov 11, 2026
Updated
via OSV·09:37 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-38208?

CVE-2021-38208 is classified as a medium severity vulnerability due to its potential to cause a kernel panic and denial of service.

2

How do I fix CVE-2021-38208?

To fix CVE-2021-38208, users should upgrade the Linux kernel to versions 5.13 or later, or specific fixed versions on Debian systems.

3

Who is affected by CVE-2021-38208?

CVE-2021-38208 affects users of the Linux kernel versions prior to 5.13 and certain Debian Linux packages.

4

What type of vulnerability is CVE-2021-38208?

CVE-2021-38208 is a local denial of service vulnerability resulting from a NULL pointer dereference in the NFC implementation of the Linux kernel.

5

Can CVE-2021-38208 be exploited remotely?

CVE-2021-38208 cannot be exploited remotely as it requires local unprivileged user access to trigger the kernel panic.

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