CVE-2025-21687
vfio/platform: check the bounds of read/write syscalls
Check your servers for CVE-2025-21687
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-21687 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.5% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 6e3f264560099869f68830cb14b3b3e71e5ac76a, before f21636f24b6786c8b13f1af4319fa75ffcf17f38 affected from 6e3f264560099869f68830cb14b3b3e71e5ac76a, before 9377cdc118cf327248f1a9dde7b87de067681dc9 affected from 6e3f264560099869f68830cb14b3b3e71e5ac76a, before d19a8650fd3d7aed8d1af1d9a77f979a8430eba1 affected from 6e3f264560099869f68830cb14b3b3e71e5ac76a, before ed81d82bb6e9df3a137f2c343ed689e6c68268ef affected from 6e3f264560099869f68830cb14b3b3e71e5ac76a, before 92340e6c5122d823ad064984ef7513eba9204048 affected from 6e3f264560099869f68830cb14b3b3e71e5ac76a, before f65ce06387f8c1fb54bd59e18a8428248ec68eaf affected from 6e3f264560099869f68830cb14b3b3e71e5ac76a, before 6bcb8a5b70b80143db9bf12dfa7d53636f824d53 affected from 6e3f264560099869f68830cb14b3b3e71e5ac76a, before 1485932496a1b025235af8aa1e21988d6b7ccd54 affected from 6e3f264560099869f68830cb14b3b3e71e5ac76a, before c981c32c38af80737a2fedc16e270546d139ccdd affected from 6e3f264560099869f68830cb14b3b3e71e5ac76a, before a20fcaa230f7472456d12cf761ed13938e320ac3 affected from 6e3f264560099869f68830cb14b3b3e71e5ac76a, before 665cfd1083866f87301bbd232cb8ba48dcf4acce affected from 6e3f264560099869f68830cb14b3b3e71e5ac76a, before ce9ff21ea89d191e477a02ad7eabf4f996b80a69
Other versions: unaffected
|
| Linux |
affected 4.1 unaffected before 4.1 unaffected from 5.4.290 up to and including 5.4.* unaffected from 5.4.291 up to and including 5.4.* unaffected from 5.10.234 up to and including 5.10.* unaffected from 5.10.235 up to and including 5.10.* unaffected from 5.15.178 up to and including 5.15.* unaffected from 5.15.179 up to and including 5.15.* unaffected from 6.1.128 up to and including 6.1.* unaffected from 6.1.129 up to and including 6.1.* unaffected from 6.6.75 up to and including 6.6.* unaffected from 6.12.12 up to and including 6.12.* unaffected from 6.13.1 up to and including 6.13.* unaffected 6.14 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-21687 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-21687
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-21687
trivy image --scanners vuln IMAGE | grep CVE-2025-21687
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/f21636f24b6786c8b13f1af4319fa75ffcf17f38 git.kernel.org
- https://git.kernel.org/stable/c/9377cdc118cf327248f1a9dde7b87de067681dc9 git.kernel.org
- https://git.kernel.org/stable/c/d19a8650fd3d7aed8d1af1d9a77f979a8430eba1 git.kernel.org
- https://git.kernel.org/stable/c/ed81d82bb6e9df3a137f2c343ed689e6c68268ef git.kernel.org
- https://git.kernel.org/stable/c/92340e6c5122d823ad064984ef7513eba9204048 git.kernel.org
- https://git.kernel.org/stable/c/f65ce06387f8c1fb54bd59e18a8428248ec68eaf git.kernel.org
- https://git.kernel.org/stable/c/6bcb8a5b70b80143db9bf12dfa7d53636f824d53 git.kernel.org
- https://git.kernel.org/stable/c/1485932496a1b025235af8aa1e21988d6b7ccd54 git.kernel.org
- https://git.kernel.org/stable/c/c981c32c38af80737a2fedc16e270546d139ccdd git.kernel.org
- https://git.kernel.org/stable/c/a20fcaa230f7472456d12cf761ed13938e320ac3 git.kernel.org
- https://git.kernel.org/stable/c/665cfd1083866f87301bbd232cb8ba48dcf4acce git.kernel.org
- https://git.kernel.org/stable/c/ce9ff21ea89d191e477a02ad7eabf4f996b80a69 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html lists.debian.org
Source: the record CVE-2025-21687 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse