CVE-2021-31916: Medium severity Linux Linux kernel vulnerability

Published Mar 29, 2021
·
Updated

An out-of-bounds (OOB) memory write flaw was found in listdevices in drivers/md/dm-ioctl.c in the Multi-device driver module in the Linux kernel before 5.12. A bound check failure allows an attacker with special user (CAPSYSADMIN) privilege to gain access to out-of-bounds memory leading to a system crash or a leak of internal kernel information. The highest threat from this vulnerability is to system availability.

Other sources

An out-of-bounds (OOB) memory write flaw was found in listdevices in drivers/md/dm-ioctl.c in the Multi-device driver module in the Linux kernel. A bound check failure allows an attacker with special user (CAPSYSADMIN) privilege to gain access to out-of-bounds memory leading to a system crash, a leak of internal kernel information, or a privilege escalation problem.

In listdevices of dm-ioctl.c, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local escalation of privilege with System execution privileges needed. User interaction is not needed for exploitation.

— OSV

Affected Software

93 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-348.rt7.130.el8
0:4.18.0-348.rt7.130.el8
redhat/kernel<0:4.18.0-348.el8
0:4.18.0-348.el8
redhat/kernel<5.12
5.12
Linux Linux kernel<5.12
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
Debian Debian Linux=9.0
ubuntu/linux-aws<4.4.0-1103.108
4.4.0-1103.108
ubuntu/linux-azure<4.15.0-1115.128~14.04.1
4.15.0-1115.128~14.04.1
ubuntu/linux-lts-xenial<4.4.0-223.256~14.04.1
4.4.0-223.256~14.04.1
ubuntu/linux*
ubuntu/linux<4.4.0-223.256
4.4.0-223.256
ubuntu/linux-aws<4.4.0-1139.153
4.4.0-1139.153
ubuntu/linux-aws-hwe<4.15.0-1103.110~16.04.1
4.15.0-1103.110~16.04.1
ubuntu/linux-azure<4.15.0-1115.128~16.04.1
4.15.0-1115.128~16.04.1
ubuntu/linux-gcp<4.15.0-1100.113~16.04.1
4.15.0-1100.113~16.04.1
ubuntu/linux-hwe<4.15.0-144.148~16.04.1
4.15.0-144.148~16.04.1
ubuntu/linux-kvm<4.4.0-1104.113
4.4.0-1104.113
ubuntu/linux-oracle<4.15.0-1072.80~16.04.1
4.15.0-1072.80~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1073.79
4.4.0-1073.79
ubuntu/linux-fips*
ubuntu/linux<4.15.0-144.148
4.15.0-144.148
ubuntu/linux-aws<4.15.0-1103.110
4.15.0-1103.110
ubuntu/linux-aws-5.4<5.4.0-1049.51~18.04.1
5.4.0-1049.51~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1115.128
4.15.0-1115.128
ubuntu/linux-azure-5.4<5.4.0-1048.50~18.04.1
5.4.0-1048.50~18.04.1
ubuntu/linux-dell300x<4.15.0-1022.26
4.15.0-1022.26
ubuntu/linux-gcp-4.15<4.15.0-1100.113
4.15.0-1100.113
ubuntu/linux-gcp-5.4<5.4.0-1044.47~18.04.2
5.4.0-1044.47~18.04.2
ubuntu/linux-gke-5.4<5.4.0-1044.46~18.04.1
5.4.0-1044.46~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1016.17~18.04.1
5.4.0-1016.17~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-74.83~18.04.1
5.4.0-74.83~18.04.1
ubuntu/linux-kvm<4.15.0-1092.94
4.15.0-1092.94
ubuntu/linux-oracle<4.15.0-1072.80
4.15.0-1072.80
ubuntu/linux-oracle-5.4<5.4.0-1046.50~18.04.2
5.4.0-1046.50~18.04.2
ubuntu/linux-raspi-5.4<5.4.0-1036.39~18.04.1
5.4.0-1036.39~18.04.1
ubuntu/linux-raspi2<4.15.0-1086.91
4.15.0-1086.91
ubuntu/linux-snapdragon<4.15.0-1103.112
4.15.0-1103.112
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-2045.47
4.15.0-2045.47
ubuntu/linux-azure-fips<4.15.0-2027.30
4.15.0-2027.30
ubuntu/linux-fips<4.15.0-1060.68
4.15.0-1060.68
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-74.83
5.4.0-74.83
ubuntu/linux-aws<5.4.0-1049.51
5.4.0-1049.51
ubuntu/linux-azure<5.4.0-1048.50
5.4.0-1048.50
ubuntu/linux-bluefield<5.4.0-1012.15
5.4.0-1012.15
ubuntu/linux-gcp<5.4.0-1044.47
5.4.0-1044.47
ubuntu/linux-gke<5.4.0-1044.46
5.4.0-1044.46
ubuntu/linux-gkeop<5.4.0-1016.17
5.4.0-1016.17
ubuntu/linux-hwe-5.8<5.8.0-55.62~20.04.1
5.8.0-55.62~20.04.1
ubuntu/linux-kvm<5.4.0-1040.41
5.4.0-1040.41
ubuntu/linux-oem-5.10<5.10.0-1025.26
5.10.0-1025.26
ubuntu/linux-oracle<5.4.0-1046.50
5.4.0-1046.50
ubuntu/linux-raspi<5.4.0-1036.39
5.4.0-1036.39
ubuntu/linux-riscv-5.8<5.8.0-26.28~20.04.1
5.8.0-26.28~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-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-raspi-realtime*
android/:linux_kernel:>=:0<:2021-10-05
:2021-10-05
debian/linux<5.10.28-1
5.10.28-1
debian/linux<5.10.28-1
5.10.28-1
debian/linux<5.10.28-1
5.10.28-1
debian/linux
4.9.272-14.19.194-15.10.28-1
debian/linux-4.19
4.19.194-1~deb9u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 0:4.18.0-348.rt7.130.el8
  2. Upgrade

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

    Fixed in 0:4.18.0-348.el8
  3. Upgrade

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

    Fixed in 5.12
  4. Upgrade

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

    Fixed in 4.4.0-1103.108
  5. Upgrade

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

    Fixed in 4.15.0-1115.128~14.04.1
  6. Upgrade

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

    Fixed in 4.4.0-223.256~14.04.1
  7. Upgrade

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

    Fixed in 4.4.0-223.256
  8. Upgrade

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

    Fixed in 4.4.0-1139.153
  9. Upgrade

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

    Fixed in 4.15.0-1103.110~16.04.1
  10. Upgrade

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

    Fixed in 4.15.0-1115.128~16.04.1
  11. Upgrade

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

    Fixed in 4.15.0-1100.113~16.04.1
  12. Upgrade

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

    Fixed in 4.15.0-144.148~16.04.1
  13. Upgrade

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

    Fixed in 4.4.0-1104.113
  14. Upgrade

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

    Fixed in 4.15.0-1072.80~16.04.1
  15. Upgrade

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

    Fixed in 4.4.0-1073.79
  16. Upgrade

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

    Fixed in 4.15.0-144.148
  17. Upgrade

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

    Fixed in 4.15.0-1103.110
  18. Upgrade

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

    Fixed in 5.4.0-1049.51~18.04.1
  19. Upgrade

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

    Fixed in 4.15.0-1115.128
  20. Upgrade

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

    Fixed in 5.4.0-1048.50~18.04.1
  21. Upgrade

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

    Fixed in 4.15.0-1022.26
  22. Upgrade

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

    Fixed in 4.15.0-1100.113
  23. Upgrade

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

    Fixed in 5.4.0-1044.47~18.04.2
  24. Upgrade

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

    Fixed in 5.4.0-1044.46~18.04.1
  25. Upgrade

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

    Fixed in 5.4.0-1016.17~18.04.1
  26. Upgrade

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

    Fixed in 5.4.0-74.83~18.04.1
  27. Upgrade

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

    Fixed in 4.15.0-1092.94
  28. Upgrade

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

    Fixed in 4.15.0-1072.80
  29. Upgrade

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

    Fixed in 5.4.0-1046.50~18.04.2
  30. Upgrade

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

    Fixed in 5.4.0-1036.39~18.04.1
  31. Upgrade

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

    Fixed in 4.15.0-1086.91
  32. Upgrade

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

    Fixed in 4.15.0-1103.112
  33. Upgrade

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

    Fixed in 4.15.0-2045.47
  34. Upgrade

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

    Fixed in 4.15.0-2027.30
  35. Upgrade

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

    Fixed in 4.15.0-1060.68
  36. Upgrade

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

    Fixed in 5.4.0-74.83
  37. Upgrade

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

    Fixed in 5.4.0-1049.51
  38. Upgrade

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

    Fixed in 5.4.0-1048.50
  39. Upgrade

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

    Fixed in 5.4.0-1012.15
  40. Upgrade

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

    Fixed in 5.4.0-1044.47
  41. Upgrade

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

    Fixed in 5.4.0-1044.46
  42. Upgrade

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

    Fixed in 5.4.0-1016.17
  43. Upgrade

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

    Fixed in 5.8.0-55.62~20.04.1
  44. Upgrade

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

    Fixed in 5.4.0-1040.41
  45. Upgrade

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

    Fixed in 5.10.0-1025.26
  46. Upgrade

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

    Fixed in 5.4.0-1046.50
  47. Upgrade

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

    Fixed in 5.4.0-1036.39
  48. Upgrade

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

    Fixed in 5.8.0-26.28~20.04.1
  49. 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
  50. Upgrade

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

    Fixed in 5.4.0-1069.73+fips2
  51. Upgrade

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

    Fixed in 5.4.0-1073.76+fips1
  52. Upgrade

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

    Fixed in 5.4.0-1067.71~20.04.1
  53. Upgrade

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

    Fixed in :2021-10-05
  54. Upgrade

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

    Fixed in 5.10.28-1
  55. Upgrade

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

    Fixed in 4.9.272-1Fixed in 4.19.194-1Fixed in 5.10.28-1
  56. Upgrade

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

    Fixed in 4.19.194-1~deb9u1
  57. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 5.12

Event History

Mar 29, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 30, 2021
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
May 6, 2021
CVE Published
via MITRE·04:14 PM
Data Sourced
via MITRE·04:14 PM
DescriptionWeakness
Oct 1, 2021
Advisory Published
via OSV·12:00 AM
Nov 9, 2021
Data Sourced
via Red Hat·08:23 PM
DescriptionSeverityAffected Software
Jan 1, 2022
Data Sourced
via NVD·05:51 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
05:51 PM
Affected Software
Nov 21, 2024
Updated
via NVD·06:06 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·03:52 AM
Affected Software
Nov 11, 2026
Updated
via OSV·09:36 AM
Affected Software
Nov 12, 2026
Updated
via OSV·05:22 PM
Affected 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-2021-31916?

CVE-2021-31916 is considered a high-severity vulnerability due to its potential for escalating privileges.

2

How do I fix CVE-2021-31916?

To address CVE-2021-31916, update your Linux kernel to version 5.12 or later, or apply the specific vendor patches provided for your operating system.

3

Which systems are affected by CVE-2021-31916?

CVE-2021-31916 affects multiple Linux distributions including Red Hat Enterprise Linux 7 and 8, and Debian 9.0.

4

What type of vulnerability is CVE-2021-31916?

CVE-2021-31916 is an out-of-bounds memory write flaw that can lead to potential privilege escalation.

5

Can CVE-2021-31916 be exploited remotely?

CVE-2021-31916 requires special user privileges (CAP_SYS_ADMIN) for exploitation, limiting its remote attack potential.

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