CVE-2021-29266 Use after free in n/a
A use-after-free in the Linux kernel vhost/vdpa driver allows attackers to execute arbitrary code or escalate privileges via re-opening a character device.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-29266?
CVE-2021-29266 is a high-severity use after free vulnerability in Linux kernel, published on 26 Mar 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
An issue was discovered in the Linux kernel before 5.11.9. drivers/vhost/vdpa.c has a use-after-free because v->config_ctx has an invalid value upon re-opening a character device, aka CID-f6bbf0010ba0.
Weakness: CWE-416
Which versions are affected by CVE-2021-29266?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-29266?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2021-29266 being exploited?
There is no known exploitation of CVE-2021-29266 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-6548, DEBIAN-CVE-2021-29266, GHSA-cq8m-c9w9-pc58, UBUNTU-CVE-2021-29266.