CVE-2025-21935Published Apr 1, 2025 · Apr 1Updated Oct 28
rapidio: add check for rio_add_net() in rio_scan_alloc_net()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e6b585ca6e81badeb3d42db3cc408174f2826034 · < c332f3e2df0fcae5a45fd55cc18902fb1e4825ca| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
rapidio: add check for rio_add_net() in rio_scan_alloc_net()
The return value of rio_add_net() should be checked. If it fails, put_device() should be called to free the memory and give up the reference initialized in rio_add_net().
From the CVE record · Linux
The Linux kernel's RapidIO code fails to release memory and a device reference when rio_add_net() fails in rio_scan_alloc_net(). The input does not specify how an attacker could trigger the failure, whether access or user interaction is required, or the resulting impact beyond the unreleased resources.
Teams running Linux kernels with RapidIO support should check their exposure; affected versions are not specified.