CVE-2025-21934
kernel: rapidio: fix an API misues when rio_add_net() fails
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 1, 2025
Updated · September 13, 2026
Description
A flaw was found in the Linux kernel. A local attacker with low privileges could exploit this by triggering a failure in the rio_add_net() function, which incorrectly uses kfree() instead of put_device(). This can lead to a use-after-free vulnerability, potentially resulting in information disclosure, privilege escalation, or a denial of service.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-416 · Use After Free