{"id":"CVE-2025-21687","aliases":["CVE-2025-21687"],"related":[],"kind":"vulnerability","state":"published","title":"vfio/platform: check the bounds of read/write syscalls","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nvfio/platform: check the bounds of read/write syscalls\n\ncount and offset are passed from user space and not checked, only\noffset is capped to 40 bits, which can be used to read/write out of\nbounds of the device.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvfio/platform: check the bounds of read/write syscalls\n\ncount and offset are passed from user space and not checked, only\noffset is capped to 40 bits, which can be used to read/write out of\nbounds of the device.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-02-10T15:58:43.944Z","modified":"2026-08-05T11:53:37.668Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-125","CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"6e3f264560099869f68830cb14b3b3e71e5ac76a","fixed":"f21636f24b6786c8b13f1af4319fa75ffcf17f38","status":"affected"},{"type":"git","introduced":"6e3f264560099869f68830cb14b3b3e71e5ac76a","fixed":"9377cdc118cf327248f1a9dde7b87de067681dc9","status":"affected"},{"type":"git","introduced":"6e3f264560099869f68830cb14b3b3e71e5ac76a","fixed":"d19a8650fd3d7aed8d1af1d9a77f979a8430eba1","status":"affected"},{"type":"git","introduced":"6e3f264560099869f68830cb14b3b3e71e5ac76a","fixed":"ed81d82bb6e9df3a137f2c343ed689e6c68268ef","status":"affected"},{"type":"git","introduced":"6e3f264560099869f68830cb14b3b3e71e5ac76a","fixed":"92340e6c5122d823ad064984ef7513eba9204048","status":"affected"},{"type":"git","introduced":"6e3f264560099869f68830cb14b3b3e71e5ac76a","fixed":"f65ce06387f8c1fb54bd59e18a8428248ec68eaf","status":"affected"},{"type":"git","introduced":"6e3f264560099869f68830cb14b3b3e71e5ac76a","fixed":"6bcb8a5b70b80143db9bf12dfa7d53636f824d53","status":"affected"},{"type":"git","introduced":"6e3f264560099869f68830cb14b3b3e71e5ac76a","fixed":"1485932496a1b025235af8aa1e21988d6b7ccd54","status":"affected"},{"type":"git","introduced":"6e3f264560099869f68830cb14b3b3e71e5ac76a","fixed":"c981c32c38af80737a2fedc16e270546d139ccdd","status":"affected"},{"type":"git","introduced":"6e3f264560099869f68830cb14b3b3e71e5ac76a","fixed":"a20fcaa230f7472456d12cf761ed13938e320ac3","status":"affected"},{"type":"git","introduced":"6e3f264560099869f68830cb14b3b3e71e5ac76a","fixed":"665cfd1083866f87301bbd232cb8ba48dcf4acce","status":"affected"},{"type":"git","introduced":"6e3f264560099869f68830cb14b3b3e71e5ac76a","fixed":"ce9ff21ea89d191e477a02ad7eabf4f996b80a69","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.1","status":"unaffected"},{"type":"semver","introduced":"5.4.290","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.4.291","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.234","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.10.235","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.178","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.15.179","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.128","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.1.129","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.75","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.12","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.1","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.1","fixed":"5.4.290"},{"status":"affected","introduced":"5.5","fixed":"5.10.234"},{"status":"affected","introduced":"5.11","fixed":"5.15.178"},{"status":"affected","introduced":"5.16","fixed":"6.1.128"},{"status":"affected","introduced":"6.2","fixed":"6.6.75"},{"status":"affected","introduced":"6.7","fixed":"6.12.12"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/f21636f24b6786c8b13f1af4319fa75ffcf17f38","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9377cdc118cf327248f1a9dde7b87de067681dc9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d19a8650fd3d7aed8d1af1d9a77f979a8430eba1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ed81d82bb6e9df3a137f2c343ed689e6c68268ef","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92340e6c5122d823ad064984ef7513eba9204048","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f65ce06387f8c1fb54bd59e18a8428248ec68eaf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6bcb8a5b70b80143db9bf12dfa7d53636f824d53","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1485932496a1b025235af8aa1e21988d6b7ccd54","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c981c32c38af80737a2fedc16e270546d139ccdd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a20fcaa230f7472456d12cf761ed13938e320ac3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/665cfd1083866f87301bbd232cb8ba48dcf4acce","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ce9ff21ea89d191e477a02ad7eabf4f996b80a69","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21687","url":"https://www.cve.org/CVERecord?id=CVE-2025-21687","licence":"CVE Terms of Use","modified":"2026-08-05T11:53:37.668Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21687","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21687","licence":"Public domain","modified":"2026-07-30T06:19:12.340Z"}],"updatedAt":"2026-11-25T22:58:53.920Z","epss":{"score":0.00349,"percentile":0.20974,"date":"2026-11-30T12:00:22.000Z"}}