CVE-2025-21687
vfio/platform: check the bounds of read/write syscalls
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < f21636f24b6786c8b13f1af4319fa75ffcf17f38; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 9377cdc118cf327248f1a9dde7b87de067681dc9; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < d19a8650fd3d7aed8d1af1d9a77f979a8430eba1; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < ed81d82bb6e9df3a137f2c343ed689e6c68268ef; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 92340e6c5122d823ad064984ef7513eba9204048; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < f65ce06387f8c1fb54bd59e18a8428248ec68eaf; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 6bcb8a5b70b80143db9bf12dfa7d53636f824d53; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 1485932496a1b025235af8aa1e21988d6b7ccd54; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < c981c32c38af80737a2fedc16e270546d139ccdd; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < a20fcaa230f7472456d12cf761ed13938e320ac3; …
- Anyone running Linux 4.1
Vulnerability facts
- Affected
- Linux >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < f21636f24b6786c8b13f1af4319fa75ffcf17f38; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 9377cdc118cf327248f1a9dde7b87de067681dc9; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < d19a8650fd3d7aed8d1af1d9a77f979a8430eba1; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < ed81d82bb6e9df3a137f2c343ed689e6c68268ef; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 92340e6c5122d823ad064984ef7513eba9204048; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < f65ce06387f8c1fb54bd59e18a8428248ec68eaf; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 6bcb8a5b70b80143db9bf12dfa7d53636f824d53; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 1485932496a1b025235af8aa1e21988d6b7ccd54; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < c981c32c38af80737a2fedc16e270546d139ccdd; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < a20fcaa230f7472456d12cf761ed13938e320ac3; …; Linux 4.1
- Fixed in
- Linux 9377cdc118cf327248f1a9dde7b87de067681dc9, Linux 92340e6c5122d823ad064984ef7513eba9204048, Linux 6bcb8a5b70b80143db9bf12dfa7d53636f824d53, Linux 1485932496a1b025235af8aa1e21988d6b7ccd54
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.35% chance of exploitation in 30 days (percentile 21, 2026-11-26)
- CWE
- CWE-125, CWE-787
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < f21636f24b6786c8b13f1af4319fa75ffcf17f38; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 9377cdc118cf327248f1a9dde7b87de067681dc9; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < d19a8650fd3d7aed8d1af1d9a77f979a8430eba1; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < ed81d82bb6e9df3a137f2c343ed689e6c68268ef; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 92340e6c5122d823ad064984ef7513eba9204048; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < f65ce06387f8c1fb54bd59e18a8428248ec68eaf; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 6bcb8a5b70b80143db9bf12dfa7d53636f824d53; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 1485932496a1b025235af8aa1e21988d6b7ccd54; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < c981c32c38af80737a2fedc16e270546d139ccdd; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < a20fcaa230f7472456d12cf761ed13938e320ac3; … | — | cvelist |
| Linux | 4.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-21687. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-21687.md Affected: Linux >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < f21636f24b6786c8b13f1af4319fa75ffcf17f38; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 9377cdc118cf327248f1a9dde7b87de067681dc9; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < d19a8650fd3d7aed8d1af1d9a77f979a8430eba1; >= 6e3f264560099869f68830c… Fixed in: Linux 9377cdc118cf327248f1a9dde7b87de067681dc9, Linux 92340e6c5122d823ad064984ef7513eba9204048, Linux 6bcb8a5b70b80143db9bf12dfa7d53636f824d53, Linux 1485932496a1b025235af8aa1e21988d6b7ccd54 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/f21636f24b6786c8b13f1af4319fa75ffcf17f38
- https://git.kernel.org/stable/c/d19a8650fd3d7aed8d1af1d9a77f979a8430eba1
- https://git.kernel.org/stable/c/92340e6c5122d823ad064984ef7513eba9204048
- https://git.kernel.org/stable/c/6bcb8a5b70b80143db9bf12dfa7d53636f824d53
- https://git.kernel.org/stable/c/1485932496a1b025235af8aa1e21988d6b7ccd54
- https://git.kernel.org/stable/c/c981c32c38af80737a2fedc16e270546d139ccdd
- https://git.kernel.org/stable/c/a20fcaa230f7472456d12cf761ed13938e320ac3
- https://git.kernel.org/stable/c/665cfd1083866f87301bbd232cb8ba48dcf4acce
- https://git.kernel.org/stable/c/ce9ff21ea89d191e477a02ad7eabf4f996b80a69
Other
- https://git.kernel.org/stable/c/9377cdc118cf327248f1a9dde7b87de067681dc9
- https://git.kernel.org/stable/c/ed81d82bb6e9df3a137f2c343ed689e6c68268ef
- https://git.kernel.org/stable/c/f65ce06387f8c1fb54bd59e18a8428248ec68eaf
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html
FAQ
Is CVE-2025-21687 being exploited?
There is no confirmed exploitation: CVE-2025-21687 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-21687?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-21687?
Linux >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < f21636f24b6786c8b13f1af4319fa75ffcf17f38; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 9377cdc118cf327248f1a9dde7b87de067681dc9; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < d19a8650fd3d7aed8d1af1d9a77f979a8430eba1; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < ed81d82bb6e9df3a137f2c343ed689e6c68268ef; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 92340e6c5122d823ad064984ef7513eba9204048; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < f65ce06387f8c1fb54bd59e18a8428248ec68eaf; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 6bcb8a5b70b80143db9bf12dfa7d53636f824d53; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < 1485932496a1b025235af8aa1e21988d6b7ccd54; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < c981c32c38af80737a2fedc16e270546d139ccdd; >= 6e3f264560099869f68830cb14b3b3e71e5ac76a, < a20fcaa230f7472456d12cf761ed13938e320ac3; …; Linux 4.1.
Is there a fix for CVE-2025-21687?
Yes. Fixed in Linux 9377cdc118cf327248f1a9dde7b87de067681dc9, Linux 92340e6c5122d823ad064984ef7513eba9204048, Linux 6bcb8a5b70b80143db9bf12dfa7d53636f824d53, Linux 1485932496a1b025235af8aa1e21988d6b7ccd54. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-21687?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.