# CVE-2025-21934: rapidio: fix an API misues when rio\_add\_net() fails

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-04-01T15:41:02.804Z
- **Modified:** 2026-08-05T11:55:27.199Z

## Who should check

- Anyone running Linux \>= e8de370188d098bb49483c287b44925957c3c9b6, \< d4ec862ce80f64db923a1d942b5d11cf6fc87d36; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 88ddad53e4cfb6de861c6d4fb7b25427f46baed5; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< cdd9f58f7fe41a55fae4305ea51fc234769fd466; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< a5f5e520e8fbc6294020ff8afa36f684d92c6e6a; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 2537f01d57f08c527e40bbb5862aa6ff43344898; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 22e4977141dfc6d109bf29b495bf2187b4250990; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< f0aa4ee1cbbf7789907e5a3f6810de01c146c211; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< b2ef51c74b0171fde7eb69b6152d3d2f743ef269
- Anyone running Linux 4.6

## Description

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

rapidio: fix an API misues when rio\_add\_net() fails

rio\_add\_net() calls device\_register() and fails when device\_register()
fails.  Thus, put\_device() should be used rather than kfree().  Add
"mport-\>net = NULL;" to avoid a use after free issue.

## Affected and fixed versions

- Linux: \>= e8de370188d098bb49483c287b44925957c3c9b6, \< d4ec862ce80f64db923a1d942b5d11cf6fc87d36; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 88ddad53e4cfb6de861c6d4fb7b25427f46baed5; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< cdd9f58f7fe41a55fae4305ea51fc234769fd466; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< a5f5e520e8fbc6294020ff8afa36f684d92c6e6a; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 2537f01d57f08c527e40bbb5862aa6ff43344898; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 22e4977141dfc6d109bf29b495bf2187b4250990; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< f0aa4ee1cbbf7789907e5a3f6810de01c146c211; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< b2ef51c74b0171fde7eb69b6152d3d2f743ef269 (cvelist)
- Linux: 4.6 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21934. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21934.md
Affected: Linux >= e8de370188d098bb49483c287b44925957c3c9b6, < d4ec862ce80f64db923a1d942b5d11cf6fc87d36; >= e8de370188d098bb49483c287b44925957c3c9b6, < 88ddad53e4cfb6de861c6d4fb7b25427f46baed5; >= e8de370188d098bb49483c287b44925957c3c9b6, < cdd9f58f7fe41a55fae4305ea51fc234769fd466; >= e8de370188d098bb49483c2…
Fixed in: Linux 88ddad53e4cfb6de861c6d4fb7b25427f46baed5, Linux 2537f01d57f08c527e40bbb5862aa6ff43344898, Linux 22e4977141dfc6d109bf29b495bf2187b4250990

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21934 being exploited?

There is no confirmed exploitation: CVE-2025-21934 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21934?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21934?

Linux \>= e8de370188d098bb49483c287b44925957c3c9b6, \< d4ec862ce80f64db923a1d942b5d11cf6fc87d36; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 88ddad53e4cfb6de861c6d4fb7b25427f46baed5; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< cdd9f58f7fe41a55fae4305ea51fc234769fd466; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< a5f5e520e8fbc6294020ff8afa36f684d92c6e6a; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 2537f01d57f08c527e40bbb5862aa6ff43344898; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 22e4977141dfc6d109bf29b495bf2187b4250990; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< f0aa4ee1cbbf7789907e5a3f6810de01c146c211; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< b2ef51c74b0171fde7eb69b6152d3d2f743ef269; Linux 4.6.

### Is there a fix for CVE-2025-21934?

Yes. Fixed in Linux 88ddad53e4cfb6de861c6d4fb7b25427f46baed5, Linux 2537f01d57f08c527e40bbb5862aa6ff43344898, Linux 22e4977141dfc6d109bf29b495bf2187b4250990. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-21934?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/d4ec862ce80f64db923a1d942b5d11cf6fc87d36>
- patch: <https://git.kernel.org/stable/c/88ddad53e4cfb6de861c6d4fb7b25427f46baed5>
- patch: <https://git.kernel.org/stable/c/cdd9f58f7fe41a55fae4305ea51fc234769fd466>
- patch: <https://git.kernel.org/stable/c/a5f5e520e8fbc6294020ff8afa36f684d92c6e6a>
- patch: <https://git.kernel.org/stable/c/2537f01d57f08c527e40bbb5862aa6ff43344898>
- patch: <https://git.kernel.org/stable/c/22e4977141dfc6d109bf29b495bf2187b4250990>
- patch: <https://git.kernel.org/stable/c/f0aa4ee1cbbf7789907e5a3f6810de01c146c211>
- patch: <https://git.kernel.org/stable/c/b2ef51c74b0171fde7eb69b6152d3d2f743ef269>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21934>

HTML: <https://flawdb.com/CVE-2025-21934> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21934>
