Bug 2360198 (CVE-2025-22052) - CVE-2025-22052 kernel: staging: gpib: Fix Oops after disconnect in ni_usb
Summary: CVE-2025-22052 kernel: staging: gpib: Fix Oops after disconnect in ni_usb
Keywords:
Status: NEW
Alias: CVE-2025-22052
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-16 15:02 UTC by OSIDB Bzimport
Modified: 2025-04-18 03:27 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-04-16 15:02:10 UTC
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.

Comment 1 Avinash Hanwate 2025-04-17 15:53:59 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025041603-CVE-2025-22052-54f5@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.