CVE-2025-21934: Linux kernel · rapidio: fix an API misues when rio_add_net() fails
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 30 Oct 2026, 01:24 UTC
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 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 29 Oct 2026.
What to do
AI-suggested
A fix has been applied in the Linux kernel to correct the API misuse in rio_add_net(). Users should update to the fixed kernel version once available. Since this is not a cloud service, manual patching is required. Patch status is not explicitly confirmed in the input; users should consult the official Linux kernel advisories for the fixed versions and apply updates accordingly.
Description
CVE-2025-21934 is a high-severity vulnerability in the Linux kernel's rapidio subsystem. It involves an API misuse in the rio_add_net() function, where improper handling of device registration failures can lead to a use-after-free condition. The flaw occurs because put_device() should be called instead of kfree() when device_register() fails, and the net pointer must be cleared to prevent use-after-free.
References
- nvd.nist.gov/vuln/detail/CVE-2025-21934 (opens in a new tab)
- git.kernel.org/stable/c/22e4977141dfc6d109bf29b495bf2187b4250990 (opens in a new tab)
- git.kernel.org/stable/c/2537f01d57f08c527e40bbb5862aa6ff43344898 (opens in a new tab)
- git.kernel.org/stable/c/88ddad53e4cfb6de861c6d4fb7b25427f46baed5 (opens in a new tab)
- git.kernel.org/stable/c/a5f5e520e8fbc6294020ff8afa36f684d92c6e6a (opens in a new tab)
- git.kernel.org/stable/c/b2ef51c74b0171fde7eb69b6152d3d2f743ef269 (opens in a new tab)
- git.kernel.org/stable/c/cdd9f58f7fe41a55fae4305ea51fc234769fd466 (opens in a new tab)
- git.kernel.org/stable/c/d4ec862ce80f64db923a1d942b5d11cf6fc87d36 (opens in a new tab)
- git.kernel.org/stable/c/f0aa4ee1cbbf7789907e5a3f6810de01c146c211 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/05/msg00030.html (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/05/msg00045.html (opens in a new tab)