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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 21% of CVEs (2026-11-30)
- Published: 2025-02-10T15:58:43.944Z
- Modified: 2026-08-05T11:53:37.668Z
- Weaknesses: CWE-125, CWE-787
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 6e3f264560099869f68830cb14b3b3e71e5ac76a before f21636f24b6786c8b13f1af4319fa75ffcf17f38; from 6e3f264560099869f68830cb14b3b3e71e5ac76a before 9377cdc118cf327248f1a9dde7b87de067681dc9; from 6e3f264560099869f68830cb14b3b3e71e5ac76a before d19a8650fd3d7aed8d1af1d9a77f979a8430eba1; from 6e3f264560099869f68830cb14b3b3e71e5ac76a before ed81d82bb6e9df3a137f2c343ed689e6c68268ef; from 6e3f264560099869f68830cb14b3b3e71e5ac76a before 92340e6c5122d823ad064984ef7513eba9204048; from 6e3f264560099869f68830cb14b3b3e71e5ac76a before f65ce06387f8c1fb54bd59e18a8428248ec68eaf; from 6e3f264560099869f68830cb14b3b3e71e5ac76a before 6bcb8a5b70b80143db9bf12dfa7d53636f824d53; from 6e3f264560099869f68830cb14b3b3e71e5ac76a before 1485932496a1b025235af8aa1e21988d6b7ccd54; from 6e3f264560099869f68830cb14b3b3e71e5ac76a before c981c32c38af80737a2fedc16e270546d139ccdd; from 6e3f264560099869f68830cb14b3b3e71e5ac76a before a20fcaa230f7472456d12cf761ed13938e320ac3; from 6e3f264560099869f68830cb14b3b3e71e5ac76a before 665cfd1083866f87301bbd232cb8ba48dcf4acce; from 6e3f264560099869f68830cb14b3b3e71e5ac76a before ce9ff21ea89d191e477a02ad7eabf4f996b80a69; and 1 more (not affected: before 4.1; from 5.4.290 up to 5.4.*; from 5.4.291 up to 5.4.*; from 5.10.234 up to 5.10.*; from 5.10.235 up to 5.10.*; from 5.15.178 up to 5.15.*; from 5.15.179 up to 5.15.*; from 6.1.128 up to 6.1.*; from 6.1.129 up to 6.1.*; from 6.6.75 up to 6.6.*; from 6.12.12 up to 6.12.*; from 6.13.1 up to 6.13.*)
- linux linux_kernel: from 4.1 before 5.4.290; from 5.5 before 5.10.234; from 5.11 before 5.15.178; from 5.16 before 6.1.128; from 6.2 before 6.6.75; from 6.7 before 6.12.12; 6.13

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/f21636f24b6786c8b13f1af4319fa75ffcf17f38> (patch)
- <https://git.kernel.org/stable/c/9377cdc118cf327248f1a9dde7b87de067681dc9>
- <https://git.kernel.org/stable/c/d19a8650fd3d7aed8d1af1d9a77f979a8430eba1> (patch)
- <https://git.kernel.org/stable/c/ed81d82bb6e9df3a137f2c343ed689e6c68268ef>
- <https://git.kernel.org/stable/c/92340e6c5122d823ad064984ef7513eba9204048> (patch)
- <https://git.kernel.org/stable/c/f65ce06387f8c1fb54bd59e18a8428248ec68eaf>
- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Sources

- CVE List: [CVE-2025-21687](https://www.cve.org/CVERecord?id=CVE-2025-21687), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-21687](https://nvd.nist.gov/vuln/detail/CVE-2025-21687), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-21687 · Whole record: https://cve.day/CVE-2025-21687.json · Rebuilt by cve.day 2026-11-25T22:58:53.920Z
