CVE-2025-21687
JSON

7.8high

vfio/platform: check the bounds of read/write syscalls

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.35% (higher than 21% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 5 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.*
CVE List
linux linux_kernelfrom 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.13NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: vfio/platform: comprueba que los límites de las llamadas al sistema de lectura/escritura count y offset se pasan desde el espacio del usuario y no se comprueban, solo offset está limitado a 40 bits, que se pueden usar para leer/escribir fuera de los límites del dispositivo.

References

https://git.kernel.org/stable/c/f21636f24b6786c8b13f1af4319fa75ffcf17f38patch
https://git.kernel.org/stable/c/9377cdc118cf327248f1a9dde7b87de067681dc9
https://git.kernel.org/stable/c/d19a8650fd3d7aed8d1af1d9a77f979a8430eba1patch
https://git.kernel.org/stable/c/ed81d82bb6e9df3a137f2c343ed689e6c68268ef
https://git.kernel.org/stable/c/92340e6c5122d823ad064984ef7513eba9204048patch
https://git.kernel.org/stable/c/f65ce06387f8c1fb54bd59e18a8428248ec68eaf
https://git.kernel.org/stable/c/6bcb8a5b70b80143db9bf12dfa7d53636f824d53patch
https://git.kernel.org/stable/c/1485932496a1b025235af8aa1e21988d6b7ccd54patch
https://git.kernel.org/stable/c/c981c32c38af80737a2fedc16e270546d139ccddpatch
https://git.kernel.org/stable/c/a20fcaa230f7472456d12cf761ed13938e320ac3patch
https://git.kernel.org/stable/c/665cfd1083866f87301bbd232cb8ba48dcf4accepatch
https://git.kernel.org/stable/c/ce9ff21ea89d191e477a02ad7eabf4f996b80a69patch

Sources

SourceRecordLicence
CVE ListCVE-2025-21687 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-21687 changed 2026-07-30Public domain