CVE-2025-21934

published 1 Apr 2025 · updated 12 Aug 2026

rapidio: fix an API misues when rio_add_net() fails

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 22e4977141dfc6d109bf29b495bf2187b4250990, Kernel 2537f01d57f08c527e40bbb5862aa6ff43344898, Kernel 88ddad53e4cfb6de861c6d4fb7b25427f46baed5 and 5 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.6, >=e8de370188d098bb49483c287b44925957c3c9b6 <22e4977141dfc6d109bf29b495bf2187b4250990, >=e8de370188d098bb49483c287b44925957c3c9b6 <2537f01d57f08c527e40bbb5862aa6ff43344898, >=e8de370188d098bb49483c287b44925957c3c9b6 <88ddad53e4cfb6de861c6d4fb7b25427f46baed5, >=e8de370188d098bb49483c287b44925957c3c9b6 <a5f5e520e8fbc6294020ff8afa36f684d92c6e6a, >=e8de370188d098bb49483c287b44925957c3c9b6 <b2ef51c74b0171fde7eb69b6152d3d2f743ef269, >=e8de370188d098bb49483c287b44925957c3c9b6 <cdd9f58f7fe41a55fae4305ea51fc234769fd466, >=e8de370188d098bb49483c287b44925957c3c9b6 <d4ec862ce80f64db923a1d942b5d11cf6fc87d36, >=e8de370188d098bb49483c287b44925957c3c9b6 <f0aa4ee1cbbf7789907e5a3f6810de01c146c21122e4977141dfc6d109bf29b495bf2187b4250990, 2537f01d57f08c527e40bbb5862aa6ff43344898, 88ddad53e4cfb6de861c6d4fb7b25427f46baed5, a5f5e520e8fbc6294020ff8afa36f684d92c6e6a, b2ef51c74b0171fde7eb69b6152d3d2f743ef269, cdd9f58f7fe41a55fae4305ea51fc234769fd466, d4ec862ce80f64db923a1d942b5d11cf6fc87d36, f0aa4ee1cbbf7789907e5a3f6810de01c146c211

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-21934 severity on Zeptric[![CVE-2025-21934](https://zeptric.io/badge/cve/CVE-2025-21934.svg)](https://zeptric.io/cve/CVE-2025-21934)