CVE-2025-21687·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.12
- Published
- 2025-02-10
Affected versions
From: 6.7
Until: 6.12.12
Fixed in: 6.12.12
How to fix this CVE
Update your Linux kernel to version 6.12.12 or later to patch a bounds-checking vulnerability in the VFIO platform driver that could allow local privilege escalation. This vulnerability affects kernel versions 6.7 through 6.12.11 and requires immediate patching to prevent out-of-bounds memory access through userspace read/write operations.
sudo dnf update kernel kernel-headersDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check the current kernel version with `uname -r` and compare against the affected range (6.7 to 6.12.11)
- Step 2: Verify VFIO platform driver is loaded with `lsmod | grep vfio_platform` — if present, the system may be vulnerable
- Step 3: Search kernel logs for memory access errors near VFIO operations using `journalctl -u kernel | grep -i 'vfio\|bounds\|out of bounds' | tail -50`
- Step 4: After updating, confirm the new kernel version with `uname -r` and reboot if necessary with `sudo reboot`
FAQ
What is CVE-2025-21687?
CVE-2025-21687 is a bounds-checking vulnerability in the Linux kernel's VFIO platform driver that fails to properly validate the size and offset of read/write operations from userspace, allowing a local attacker to access memory beyond device boundaries.
Is CVE-2025-21687 being actively exploited?
No, CVE-2025-21687 is not currently listed in CISA's Known Exploited Vulnerabilities catalog, and no public exploit code is available.
What versions of Kernel are affected by CVE-2025-21687?
Linux kernel versions 6.7 through 6.12.11 are vulnerable. Kernel 6.12.12 and later versions include the fix.
How do I check if my server is vulnerable to CVE-2025-21687?
Run `uname -r` to display your kernel version. If it falls between 6.7 and 6.12.11, and `lsmod | grep vfio_platform` shows the driver is loaded, your system is vulnerable.
Does Defensia detect CVE-2025-21687?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2025-21687 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1485932496a1b025235af8aa1e21988d6b7ccd54
- https://git.kernel.org/stable/c/665cfd1083866f87301bbd232cb8ba48dcf4acce
- https://git.kernel.org/stable/c/6bcb8a5b70b80143db9bf12dfa7d53636f824d53
- https://git.kernel.org/stable/c/92340e6c5122d823ad064984ef7513eba9204048
- https://git.kernel.org/stable/c/9377cdc118cf327248f1a9dde7b87de067681dc9
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-21687. Free for 1 server.
Get started free