# CVE-2025-21935: rapidio: add check for rio_add_net() in rio_scan_alloc_net()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2025-04-01T15:41:03.335Z
- Modified: 2026-06-17T08:44:39.193Z
- Assigned by: Linux

## Description

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().

(As written by CVE List.)

## Affected

- Linux Linux: from e6b585ca6e81badeb3d42db3cc408174f2826034 before 6d22953c4a183d0b7fdf34d68c5debd16da6edc5; from e6b585ca6e81badeb3d42db3cc408174f2826034 before 4f3509cfcc02e9d757f2714bb7dbbeec35de6fa7; from e6b585ca6e81badeb3d42db3cc408174f2826034 before 181d4daaefb3bceeb2f2635ba9f3781eeda9e550; from e6b585ca6e81badeb3d42db3cc408174f2826034 before ad82be4298a89a9ae46f07128bdf3d8614bce745; from e6b585ca6e81badeb3d42db3cc408174f2826034 before e6411c3b9512dba09af7d014d474516828c89706; from e6b585ca6e81badeb3d42db3cc408174f2826034 before c332f3e2df0fcae5a45fd55cc18902fb1e4825ca; from e6b585ca6e81badeb3d42db3cc408174f2826034 before a0d069ccc475abaaa79c6368ee27fc0b5912bea8; from e6b585ca6e81badeb3d42db3cc408174f2826034 before e842f9a1edf306bf36fe2a4d847a0b0d458770de; 4.6 (not affected: before 4.6; from 5.4.291 up to 5.4.*; from 5.10.235 up to 5.10.*; from 5.15.179 up to 5.15.*; from 6.1.131 up to 6.1.*; from 6.6.83 up to 6.6.*; from 6.12.19 up to 6.12.*; from 6.13.7 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 4.6 before 5.4.291; from 5.5 before 5.10.235; from 5.11 before 5.15.179; from 5.16 before 6.1.131; from 6.2 before 6.6.83; from 6.7 before 6.12.19; from 6.13 before 6.13.7; 6.14

## References

- <https://git.kernel.org/stable/c/6d22953c4a183d0b7fdf34d68c5debd16da6edc5> (patch)
- <https://git.kernel.org/stable/c/4f3509cfcc02e9d757f2714bb7dbbeec35de6fa7> (patch)
- <https://git.kernel.org/stable/c/181d4daaefb3bceeb2f2635ba9f3781eeda9e550> (patch)
- <https://git.kernel.org/stable/c/ad82be4298a89a9ae46f07128bdf3d8614bce745> (patch)
- <https://git.kernel.org/stable/c/e6411c3b9512dba09af7d014d474516828c89706> (patch)
- <https://git.kernel.org/stable/c/c332f3e2df0fcae5a45fd55cc18902fb1e4825ca> (patch)
- <https://git.kernel.org/stable/c/a0d069ccc475abaaa79c6368ee27fc0b5912bea8> (patch)
- <https://git.kernel.org/stable/c/e842f9a1edf306bf36fe2a4d847a0b0d458770de> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Sources

- CVE List: [CVE-2025-21935](https://www.cve.org/CVERecord?id=CVE-2025-21935), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-21935](https://nvd.nist.gov/vuln/detail/CVE-2025-21935), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21935 · Whole record: https://cve.day/CVE-2025-21935.json · Rebuilt by cve.day 2026-11-25T22:58:55.895Z
