CVE-2025-22052 staging: gpib: Fix Oops after disconnect in ni_usb

Medium 5.5 Published Updated

A NULL pointer dereference in the Linux kernel's ni_usb GPIB driver causes a system crash when the USB dongle is disconnected during operation.

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-22052?

CVE-2025-22052 is a medium-severity vulnerability in Linux kernel, published on 16 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:

staging: gpib: Fix Oops after disconnect in ni_usb

If the usb dongle is disconnected subsequent calls to the driver cause a NULL dereference Oops as the bus_interface is set to NULL on disconnect.

This problem was introduced by setting usb_dev from the bus_interface for dev_xxx messages.

Previously bus_interface was checked for NULL only in the the functions directly calling usb_fill_bulk_urb or usb_control_msg.

Check for valid bus_interface on all interface entry points and return -ENODEV if it is NULL.

Weakness: CWE-476

Which versions are affected by CVE-2025-22052?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-22052?

Apply the vendor's patch.

Is CVE-2025-22052 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-22052, GHSA-gjvw-2pj9-fgr6, ROOT-OS-DEBIAN-13-CVE-2025-22052, UBUNTU-CVE-2025-22052.

Is CVE-2025-22052 in your software?

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

Check your SBOMs for free