CVE-2025-21687: Linux kernel · vfio/platform: check the bounds of read/write syscalls
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High · fixed in 5.4.0-1142.152~18.04.1 : patch Linux kernel soon.
Data as of 26 Oct 2026, 13:47 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 14% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.4.0-1142.152~18.04.1, 5.4.0-1147.154~18.04.1, 5.4.0-1145.154~18.04.1 +49
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 10 Feb 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux@6.8.0-136.136?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws@6.8.0-1060.63?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure@6.8.0-1062.69?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-azure-6.11pkg:deb/ubuntu/linux-azure-6.11@6.11.0-1018.18~24.04.1?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-azure-fdepkg:deb/ubuntu/linux-azure-fde@6.8.0-1061.68?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-azure-nvidiapkg:deb/ubuntu/linux-azure-nvidia@6.8.0-1039.42?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix for this vulnerability is available and has been applied in the listed linux-aws kernel versions. Users should upgrade to a patched kernel version to remediate this issue. Since the vulnerability requires high privileges, limiting access to privileged accounts also reduces risk. Patch status is confirmed by the presence of fixed versions; no additional vendor advisory was provided.
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.
References
- ubuntu.com/security/CVE-2025-21687 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-21687 (opens in a new tab)
- git.kernel.org/linus/ce9ff21ea89d191e477a02ad7eabf4f996b80a69 (opens in a new tab)
- git.kernel.org/stable/c/665cfd1083866f87301bbd232cb8ba48dcf4acce (opens in a new tab)
- git.kernel.org/stable/c/6bcb8a5b70b80143db9bf12dfa7d53636f824d53 (opens in a new tab)
- git.kernel.org/stable/c/92340e6c5122d823ad064984ef7513eba9204048 (opens in a new tab)
- git.kernel.org/stable/c/a20fcaa230f7472456d12cf761ed13938e320ac3 (opens in a new tab)
- git.kernel.org/stable/c/c981c32c38af80737a2fedc16e270546d139ccdd (opens in a new tab)
- git.kernel.org/stable/c/ce9ff21ea89d191e477a02ad7eabf4f996b80a69 (opens in a new tab)
- git.kernel.org/stable/c/d19a8650fd3d7aed8d1af1d9a77f979a8430eba1 (opens in a new tab)
- git.kernel.org/stable/c/f21636f24b6786c8b13f1af4319fa75ffcf17f38 (opens in a new tab)
- ubuntu.com/security/notices/USN-7387-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7388-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7389-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7390-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7387-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7387-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7391-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7392-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7393-1 (opens in a new tab)