# CVE-2025-22052: staging: gpib: Fix Oops after disconnect in ni_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:10.412Z
- Modified: 2026-06-17T08:44:56.160Z
- 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 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 4934b98bb24327c32ed55c96012f019932383da5 before b2d8d7959077c5d4b11d0dc6bd2167791fd1c72e; from 4934b98bb24327c32ed55c96012f019932383da5 before 5dc98ba6f7304c188b267ef481281849638447bf; from 4934b98bb24327c32ed55c96012f019932383da5 before a239c6e91b665f1837cf57b97fe638ef1baf2e78; 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/b2d8d7959077c5d4b11d0dc6bd2167791fd1c72e> (patch)
- <https://git.kernel.org/stable/c/5dc98ba6f7304c188b267ef481281849638447bf> (patch)
- <https://git.kernel.org/stable/c/a239c6e91b665f1837cf57b97fe638ef1baf2e78> (patch)

## Sources

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

---

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