# CVE-2021-31916: 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 k…

- Severity: Medium 6.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Published: 2021-05-06T16:14:42.000Z
- Modified: 2026-06-17T03:52:29.103Z
- Weaknesses: CWE-787
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- kernel: Kernel 5.12
- linux linux_kernel: before 5.12
- redhat enterprise_linux: 7.0; 8.0
- debian debian_linux: 9.0

## Every score

- NVD: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.1 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:C`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1946965> (issue-tracking, patch, third-party-advisory)
- <https://github.com/torvalds/linux/commit/4edbe1d7bcffcd6269f3b5eb63f710393ff2ec7a> (patch, third-party-advisory)
- <https://seclists.org/oss-sec/2021/q1/268> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/06/msg00020.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/06/msg00019.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2021-31916](https://www.cve.org/CVERecord?id=CVE-2021-31916), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-31916](https://nvd.nist.gov/vuln/detail/CVE-2021-31916), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31916 · Whole record: https://cve.day/CVE-2021-31916.json · Rebuilt by cve.day 2026-11-25T22:58:01.184Z
