# CVE-2025-21687: vfio/platform: check the bounds of read/write syscalls

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-125, CWE-787
- **Published:** 2025-02-10T15:58:43.944Z
- **Modified:** 2026-08-05T11:53:37.668Z

## 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

## 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

- 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)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/f21636f24b6786c8b13f1af4319fa75ffcf17f38>
- patch: <https://git.kernel.org/stable/c/d19a8650fd3d7aed8d1af1d9a77f979a8430eba1>
- patch: <https://git.kernel.org/stable/c/92340e6c5122d823ad064984ef7513eba9204048>
- patch: <https://git.kernel.org/stable/c/6bcb8a5b70b80143db9bf12dfa7d53636f824d53>
- patch: <https://git.kernel.org/stable/c/1485932496a1b025235af8aa1e21988d6b7ccd54>
- patch: <https://git.kernel.org/stable/c/c981c32c38af80737a2fedc16e270546d139ccdd>
- patch: <https://git.kernel.org/stable/c/a20fcaa230f7472456d12cf761ed13938e320ac3>
- patch: <https://git.kernel.org/stable/c/665cfd1083866f87301bbd232cb8ba48dcf4acce>
- patch: <https://git.kernel.org/stable/c/ce9ff21ea89d191e477a02ad7eabf4f996b80a69>
- other: <https://git.kernel.org/stable/c/9377cdc118cf327248f1a9dde7b87de067681dc9>
- other: <https://git.kernel.org/stable/c/ed81d82bb6e9df3a137f2c343ed689e6c68268ef>
- other: <https://git.kernel.org/stable/c/f65ce06387f8c1fb54bd59e18a8428248ec68eaf>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21687>

HTML: <https://flawdb.com/CVE-2025-21687> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21687>
