Skip to content
Heist/ feed
Back to feed
MediumFix available

staging: gpib: Fix Oops after disconnect in ni_usb

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.13.11, 6.14.2
CVEs
CVE-2025-22052
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 14:27 UTC · Revision 1

Source evidence

staging: gpib: Fix Oops after disconnect in ni_usb

core-osv · Original source

Published 16 Apr 2025, 14:12 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.

osv:CVE-2025-22052

Kernel

Fixed versions: 6.13.11, 6.14.2

Complete source record
{
  "id": "c32ca948613d790875a0e13ad2e305474b12deefb315bf838a7bca95a9414e50",
  "url": "https://osv.dev/vulnerability/CVE-2025-22052",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "staging: gpib: Fix Oops after disconnect in ni_usb",
    "summary": "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.",
    "evidence": "osv:CVE-2025-22052",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.13.11",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.14.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-22052",
      "aliases": [
        "CVE-2025-22052"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4934b98bb24327c32ed55c96012f019932383da5"
                },
                {
                  "fixed": "b2d8d7959077c5d4b11d0dc6bd2167791fd1c72e"
                },
                {
                  "fixed": "5dc98ba6f7304c188b267ef481281849638447bf"
                },
                {
                  "fixed": "a239c6e91b665f1837cf57b97fe638ef1baf2e78"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22052.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.13.11"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.14.0"
                },
                {
                  "fixed": "6.14.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22052.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.009719087Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/5dc98ba6f7304c188b267ef481281849638447bf",
        "https://git.kernel.org/stable/c/a239c6e91b665f1837cf57b97fe638ef1baf2e78",
        "https://git.kernel.org/stable/c/b2d8d7959077c5d4b11d0dc6bd2167791fd1c72e",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22052.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-22052",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22052.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-22052",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519622,
  "published_at": "2025-04-16T14:12:10.412+00:00"
}