CVE-2025-21935 rapidio: add check for rio_add_net() in rio_scan_alloc_net()

Medium 5.5 Published Updated

A missing return value check in the Linux kernel RapidIO subsystem can lead to a null pointer dereference and system crash.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-21935?

CVE-2025-21935 is a medium-severity vulnerability in Linux kernel, published on 1 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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().

Which versions are affected by CVE-2025-21935?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-21935?

Apply the vendor's patch.

Is CVE-2025-21935 being exploited?

There is no known exploitation of CVE-2025-21935 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-21935, DEBIAN-CVE-2025-21935, GHSA-f46w-cpqw-2pqr, ROOT-OS-UBUNTU-2404-CVE-2025-21935, UBUNTU-CVE-2025-21935.

Is CVE-2025-21935 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free