CVE-2026-45939

Source
https://cve.org/CVERecord?id=CVE-2026-45939
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45939.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-45939
Downstream
Published
2026-05-27T12:17:55.481Z
Modified
2026-07-08T08:09:39.916964712Z
Summary
gpib: Fix memory leak in ni_usb_init()
Details

In the Linux kernel, the following vulnerability has been resolved:

gpib: Fix memory leak in niusbinit()

In niusbinit(), if niusbsetup_init() fails, the function returns -EFAULT without freeing the allocated writes buffer, leading to a memory leak.

Additionally, niusbsetupinit() returns 0 on failure, which causes niusb_init() to return -EFAULT, an inappropriate error code for this situation.

Fix the leak by freeing writes in the error path. Modify niusbsetupinit() to return -EINVAL on failure and propagate this error code in niusb_init().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45939.json",
    "cna_assigner": "Linux"
}
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
4e127de14fa78bcd98c6459b0b984b8266cd0203
Fixed
9c97fcfb7a62dea893104a046d544da8ac23370b
Fixed
c899d4b62c0757a280831e89c1f3801b597e8f38
Fixed
b89921eed8cf2d97250bac4be38dbcfbf048b586

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45939.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.14
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45939.json"