{"id":"CVE-2026-45939","published":"2026-05-27T12:17:55Z","modified":"2026-05-27T12:17:55Z","title":"gpib: Fix memory leak in ni_usb_init()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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().","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00121,"percentile":0.01903,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/9c97fcfb7a62dea893104a046d544da8ac23370b","tags":[]},{"url":"https://git.kernel.org/stable/c/c899d4b62c0757a280831e89c1f3801b597e8f38","tags":[]},{"url":"https://git.kernel.org/stable/c/b89921eed8cf2d97250bac4be38dbcfbf048b586","tags":[]}],"priority":{"score":0.4,"factors":[{"name":"EPSS percentile","points":0.38}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 4e127de14fa78bcd98c6459b0b984b8266cd0203, < 9c97fcfb7a62dea893104a046d544da8ac23370b",">= 4e127de14fa78bcd98c6459b0b984b8266cd0203, < c899d4b62c0757a280831e89c1f3801b597e8f38",">= 4e127de14fa78bcd98c6459b0b984b8266cd0203, < b89921eed8cf2d97250bac4be38dbcfbf048b586"]},{"vendor":"Linux","product":"Linux","versions":["6.13"]}],"euvd":{"id":"EUVD-2026-32223","exploited":false,"provenance":"source"}}