CVE-2025-22051 staging: gpib: Fix Oops after disconnect in agilent usb
A NULL pointer dereference in the Linux kernel agilent usb driver causes a system crash when the device 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-22051?
CVE-2025-22051 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 agilent usb
If the agilent 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 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-22051?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-22051?
Apply the vendor's patch.
Is CVE-2025-22051 being exploited?
There is no known exploitation of CVE-2025-22051 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-22051, GHSA-c8pq-47pf-5pgc, ROOT-OS-DEBIAN-13-CVE-2025-22051, UBUNTU-CVE-2025-22051.