CVE-2025-22052

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-22052
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22052.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-22052
Downstream
Published
2025-04-16T14:12:10Z
Modified
2025-10-10T08:31:38.731142Z
Summary
staging: gpib: Fix Oops after disconnect in ni_usb
Details

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 usbdev from the businterface for dev_xxx messages.

Previously businterface was checked for NULL only in the the functions directly calling usbfillbulkurb or usbcontrolmsg.

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

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4934b98bb24327c32ed55c96012f019932383da5
Fixed
b2d8d7959077c5d4b11d0dc6bd2167791fd1c72e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4934b98bb24327c32ed55c96012f019932383da5
Fixed
5dc98ba6f7304c188b267ef481281849638447bf
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4934b98bb24327c32ed55c96012f019932383da5
Fixed
a239c6e91b665f1837cf57b97fe638ef1baf2e78

Affected versions

v6.*

v6.12
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.13
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5
v6.13-rc6
v6.13-rc7
v6.13.1
v6.13.10
v6.13.2
v6.13.3
v6.13.4
v6.13.5
v6.13.6
v6.13.7
v6.13.8
v6.13.9
v6.14
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.14.1

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.11
Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.14.2