CVE-2021-31916 Memory corruption in kernel

Medium 6.7 Published Updated

An out-of-bounds write in the Linux kernel's Multi-device driver allows privileged attackers to crash the system or leak kernel memory.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-31916?

CVE-2021-31916 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 6 May 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-787

Which versions are affected by CVE-2021-31916?

It affects 3 products.

Products include Debian Debian Linux, Linux kernel, Redhat Enterprise Linux.

How do I fix CVE-2021-31916?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-31916 being exploited?

There is no known exploitation of CVE-2021-31916 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as A-187955767, AZL-6558, DEBIAN-CVE-2021-31916, GHSA-2x6w-89x6-c628, PUB-A-187955767, UBUNTU-CVE-2021-31916.

Is CVE-2021-31916 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free