CVE-2025-21934Published Apr 1, 2025 · Apr 1Updated Oct 28
rapidio: fix an API misues when rio_add_net() fails
Linux
High7.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e8de370188d098bb49483c287b44925957c3c9b6 · < 22e4977141dfc6d109bf29b495bf2187b4250990| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s rapidio code has a use-after-free issue when rio_add_net() fails because device_register() fails. The input does not specify how an attacker could trigger this failure or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with rapidio support should check their versions; affected versions were not provided.