CVE-2025-21687 vfio/platform: check the bounds of read/write syscalls
A missing bounds check in the Linux kernel's vfio/platform driver allows out-of-bounds memory access via syscalls, potentially leading to code execution or privilege escalation.
- 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-2025-21687?
CVE-2025-21687 is a high-severity memory corruption vulnerability in Linux kernel, published on 10 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
vfio/platform: check the bounds of read/write syscalls
count and offset are passed from user space and not checked, only offset is capped to 40 bits, which can be used to read/write out of bounds of the device.
Which versions are affected by CVE-2025-21687?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-21687?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-21687 being exploited?
There is no known exploitation of CVE-2025-21687 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-21687, DEBIAN-CVE-2025-21687, GHSA-q3hh-qh22-77x8, ROOT-OS-UBUNTU-2404-CVE-2025-21687, UBUNTU-CVE-2025-21687.