{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "4e127de14fa78bcd98c6459b0b984b8266cd0203"
            },
            {
              "fixed": "9c97fcfb7a62dea893104a046d544da8ac23370b"
            },
            {
              "fixed": "c899d4b62c0757a280831e89c1f3801b597e8f38"
            },
            {
              "fixed": "b89921eed8cf2d97250bac4be38dbcfbf048b586"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.14"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45939.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ngpib: Fix memory leak in ni_usb_init()\n\nIn ni_usb_init(), if ni_usb_setup_init() fails, the function returns\n-EFAULT without freeing the allocated writes buffer, leading to a\nmemory leak.\n\nAdditionally, ni_usb_setup_init() returns 0 on failure, which causes\nni_usb_init() to return -EFAULT, an inappropriate error code for this\nsituation.\n\nFix the leak by freeing writes in the error path. Modify\nni_usb_setup_init() to return -EINVAL on failure and propagate this\nerror code in ni_usb_init().",
  "id": "CVE-2026-45939",
  "modified": "2026-07-08T05:36:43.009759083Z",
  "published": "2026-05-27T12:17:55.481Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9c97fcfb7a62dea893104a046d544da8ac23370b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b89921eed8cf2d97250bac4be38dbcfbf048b586"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c899d4b62c0757a280831e89c1f3801b597e8f38"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45939.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-45939"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "gpib: Fix memory leak in ni_usb_init()"
}