VDB

CVE-2021-31916

CVE-2021-31916 PUBLISHED

Reported by redhat · Published May 6, 2021

An out-of-bounds (OOB) memory write flaw was found in list_devices 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 (CAP_SYS_ADMIN) 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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux-kvmUbuntu:Pro:16.04:LTS4.4.0-1104.113
linux_kernellinux5.12
linux-aws-5.4Ubuntu:18.04:LTS5.4.0-1049.51~18.04.1
linux-azure-fipsUbuntu:Pro:FIPS-updates:18.04:LTS4.15.0-2027.30
linux-azure-5.4Ubuntu:18.04:LTS5.4.0-1048.50~18.04.1
linux-awsUbuntu:Pro:14.04:LTS4.4.0-1103.108
linux-gcpUbuntu:Pro:16.04:LTS4.15.0-1100.113~16.04.1
linux-gcpUbuntu:20.04:LTS5.4.0-1044.47
linux-lts-xenialUbuntu:Pro:14.04:LTS4.4.0-223.256~14.04.1
linux-aws-hweUbuntu:Pro:16.04:LTS4.15.0-1103.110~16.04.1
linux-raspiUbuntu:20.04:LTS5.4.0-1036.39
linux-aws-fipsUbuntu:Pro:FIPS-updates:20.04:LTS5.4.0-1069.73+fips2

10 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
n/akernelKernel 5.12
n/akernel5.12

Timeline

  • Apr 30, 2021 CVE Published
  • May 7, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 28, 2025 PoC Published
  • Feb 23, 2026 CVE Updated
  • Mar 7, 2026 Distribution Patch (18 in total, the first dated here)
  • Mar 7, 2026 Security Advisory (24 in total, the first dated here)
  • Aug 1, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-31916
vulnetix vdb fixes CVE-2021-31916

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-31916/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›