{"id":"CVE-2026-45887","summary":"af_unix: Fix memleak of newsk in unix_stream_connect().","details":"In the Linux kernel, the following vulnerability has been resolved:\n\naf_unix: Fix memleak of newsk in unix_stream_connect().\n\nWhen prepare_peercred() fails in unix_stream_connect(),\nunix_release_sock() is not called for newsk, and the memory\nis leaked.\n\nLet's move prepare_peercred() before unix_create1().","modified":"2026-07-15T01:49:08.326496828Z","published":"2026-05-27T12:16:58.720Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45887.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/365996a2b14d07caa9e33d367b67ea26c09d89b4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6884028cd7f275f8bcb854a347265cb1fb0e4bea"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a5d95d7caba0160fb7b2b8d2bd96d5a1be861d9f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45887.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45887"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.7.5"}