CVE-2026-45887

Source
https://cve.org/CVERecord?id=CVE-2026-45887
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45887.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-45887
Downstream
Published
2026-05-27T12:16:58.720Z
Modified
2026-07-15T01:49:08.326496828Z
Summary
af_unix: Fix memleak of newsk in unix_stream_connect().
Details

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

afunix: Fix memleak of newsk in unixstream_connect().

When preparepeercred() fails in unixstreamconnect(), unixrelease_sock() is not called for newsk, and the memory is leaked.

Let's move preparepeercred() before unixcreate1().

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45887.json"
}
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
fd0a109a0f6b7524543d17520da92a44a9f5343c
Fixed
365996a2b14d07caa9e33d367b67ea26c09d89b4
Fixed
a5d95d7caba0160fb7b2b8d2bd96d5a1be861d9f
Fixed
6884028cd7f275f8bcb854a347265cb1fb0e4bea

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.16.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-45887.json"