CVE-2021-31916
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux-kvm | Ubuntu:Pro:16.04:LTS | 4.4.0-1104.113 |
| linux_kernel | linux | 5.12 |
| linux-aws-5.4 | Ubuntu:18.04:LTS | 5.4.0-1049.51~18.04.1 |
| linux-azure-fips | Ubuntu:Pro:FIPS-updates:18.04:LTS | 4.15.0-2027.30 |
| linux-azure-5.4 | Ubuntu:18.04:LTS | 5.4.0-1048.50~18.04.1 |
| linux-aws | Ubuntu:Pro:14.04:LTS | 4.4.0-1103.108 |
| linux-gcp | Ubuntu:Pro:16.04:LTS | 4.15.0-1100.113~16.04.1 |
| linux-gcp | Ubuntu:20.04:LTS | 5.4.0-1044.47 |
| linux-lts-xenial | Ubuntu:Pro:14.04:LTS | 4.4.0-223.256~14.04.1 |
| linux-aws-hwe | Ubuntu:Pro:16.04:LTS | 4.15.0-1103.110~16.04.1 |
| linux-raspi | Ubuntu:20.04:LTS | 5.4.0-1036.39 |
| linux-aws-fips | Ubuntu:Pro:FIPS-updates:20.04:LTS | 5.4.0-1069.73+fips2 |
10 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | kernel | Kernel 5.12 |
| n/a | kernel | 5.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
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- [debian-lts-announce] 20210623 [SECURITY] [DLA 2689-1] linux security update mailing-listx_refsource_MLIST
- [debian-lts-announce] 20210623 [SECURITY] [DLA 2690-1] linux-4.19 security update mailing-listx_refsource_MLIST