# CVE-2025-21935: rapidio: add check for rio\_add\_net() in rio\_scan\_alloc\_net()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-04-01 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2025-21935, DEBIAN-CVE-2025-21935
- Record: https://cvemate.com/vulnerability/CVE-2025-21935 · JSON: https://cvemate.com/vulnerability/CVE-2025-21935/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

rapidio: add check for rio_add_net() in rio_scan_alloc_net()

The return value of rio_add_net() should be checked.  If it fails,
put_device() should be called to free the memory and give up the reference
initialized in rio_add_net().
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.235%, percentile 15.448%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 140)

- debian linux (Debian): \< 6.1.133-1 \| \< 6.12.19-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-216.236 \| \< 5.15.0-140.150 \| \< 6.8.0-84.84
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1146.156 \| \< 5.15.0-1084.91 \| \< 6.8.0-1039.41
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1084.91~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1146.156~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1039.41~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1146.156+fips1 \| \< 5.15.0-1084.91+fips1 \| \< 6.8.0-1039.41+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1151.158 \| \< 5.15.0-1089.98 \| \< 6.8.0-1038.44
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 62)

- <https://git.kernel.org/stable/c/6d22953c4a183d0b7fdf34d68c5debd16da6edc5>
- <https://git.kernel.org/stable/c/4f3509cfcc02e9d757f2714bb7dbbeec35de6fa7>
- <https://git.kernel.org/stable/c/181d4daaefb3bceeb2f2635ba9f3781eeda9e550>
- <https://git.kernel.org/stable/c/ad82be4298a89a9ae46f07128bdf3d8614bce745>
- <https://git.kernel.org/stable/c/e6411c3b9512dba09af7d014d474516828c89706>
- <https://git.kernel.org/stable/c/c332f3e2df0fcae5a45fd55cc18902fb1e4825ca>
- <https://git.kernel.org/stable/c/a0d069ccc475abaaa79c6368ee27fc0b5912bea8>
- <https://git.kernel.org/stable/c/e842f9a1edf306bf36fe2a4d847a0b0d458770de>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://ubuntu.com/security/CVE-2025-21935>
- <https://www.cve.org/CVERecord?id=CVE-2025-21935>
- <https://git.kernel.org/linus/e842f9a1edf306bf36fe2a4d847a0b0d458770de>
- <https://ubuntu.com/security/notices/USN-7510-1>
- <https://ubuntu.com/security/notices/USN-7510-2>
- <https://ubuntu.com/security/notices/USN-7511-1>
- <https://ubuntu.com/security/notices/USN-7511-2>
- <https://ubuntu.com/security/notices/USN-7512-1>
- <https://ubuntu.com/security/notices/USN-7516-1>
- <https://ubuntu.com/security/notices/USN-7516-2>

---

Data as of 2026-12-05T04:24:55.204Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
