# CVE-2025-22051: staging: gpib: Fix Oops after disconnect in agilent usb

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-04-16T14:12:09.761Z
- Modified: 2026-06-17T08:44:56.010Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from fbae7090f30c1bd5a351d0c8f82b6a635718b8d8 before e88633705078f40391a9afc6cc8ea3025e6f692b; from fbae7090f30c1bd5a351d0c8f82b6a635718b8d8 before 50ef6e45bec79da4c5a01fad4dc23466ba255099; from fbae7090f30c1bd5a351d0c8f82b6a635718b8d8 before 8491e73a5223acb0a4b4d78c3f8b96aa9c5e774d; 6.13 (not affected: before 6.13; from 6.13.11 up to 6.13.*; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.13 before 6.13.11; from 6.14 before 6.14.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/e88633705078f40391a9afc6cc8ea3025e6f692b> (patch)
- <https://git.kernel.org/stable/c/50ef6e45bec79da4c5a01fad4dc23466ba255099> (patch)
- <https://git.kernel.org/stable/c/8491e73a5223acb0a4b4d78c3f8b96aa9c5e774d> (patch)

## Sources

- CVE List: [CVE-2025-22051](https://www.cve.org/CVERecord?id=CVE-2025-22051), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-22051](https://nvd.nist.gov/vuln/detail/CVE-2025-22051), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-22051 · Whole record: https://cve.day/CVE-2025-22051.json · Rebuilt by cve.day 2026-11-25T22:58:56.583Z
