CVE-2025-21935: Linux kernel · rapidio: add check for rio_add_net() in rio_scan_alloc_net()
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium · fixed in 5.4.0-1146.156~18.04.1 : update Linux kernel when convenient.
Data as of 30 Oct 2026, 23:07 UTC
- Patch
- Available – fixed in 5.4.0-1146.156~18.04.1, 5.4.0-1151.158~18.04.1, 5.4.0-1149.158~18.04.1 +88
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 1 Apr 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: 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 30 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-7510-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7511-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7511-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7512-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7517-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7518-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-5 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-6.11pkg:deb/ubuntu/linux-azure-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-nvidiapkg:deb/ubuntu/linux-azure-nvidia?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gcppkg:deb/ubuntu/linux-gcp?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 patch is available and has been released in multiple Linux kernel versions including 5.4.0-1146.156~18.04.1, 5.4.0-1151.158~18.04.1, 5.4.0-1149.158~18.04.1, 5.4.0-216.236~18.04.1, 5.4.0-1092.97~18.04.1, and 5.15.0-1084.91~20.04.1 among others. Users should update their Linux kernel to one of these fixed versions or later to remediate this vulnerability. After applying the update, a system reboot is required to ensure the fix is active.
Description
CVE-2025-21935 is a vulnerability in the Linux kernel's RapidIO driver where the return value of the function rio_add_net() was not checked in rio_scan_alloc_net(). This could lead to improper memory handling if rio_add_net() fails. The issue has been fixed in several Linux kernel versions with patches that add the necessary checks and free memory appropriately.
References
- ubuntu.com/security/CVE-2025-21935 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-21935 (opens in a new tab)
- git.kernel.org/linus/e842f9a1edf306bf36fe2a4d847a0b0d458770de (opens in a new tab)
- git.kernel.org/stable/c/181d4daaefb3bceeb2f2635ba9f3781eeda9e550 (opens in a new tab)
- git.kernel.org/stable/c/4f3509cfcc02e9d757f2714bb7dbbeec35de6fa7 (opens in a new tab)
- git.kernel.org/stable/c/6d22953c4a183d0b7fdf34d68c5debd16da6edc5 (opens in a new tab)
- git.kernel.org/stable/c/a0d069ccc475abaaa79c6368ee27fc0b5912bea8 (opens in a new tab)
- git.kernel.org/stable/c/ad82be4298a89a9ae46f07128bdf3d8614bce745 (opens in a new tab)
- git.kernel.org/stable/c/c332f3e2df0fcae5a45fd55cc18902fb1e4825ca (opens in a new tab)
- git.kernel.org/stable/c/e6411c3b9512dba09af7d014d474516828c89706 (opens in a new tab)
- git.kernel.org/stable/c/e842f9a1edf306bf36fe2a4d847a0b0d458770de (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7511-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7511-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7512-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7517-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7518-1 (opens in a new tab)