{"id":"CVE-2026-45887","aliases":["CVE-2026-45887"],"related":[],"kind":"vulnerability","state":"published","title":"af_unix: Fix memleak of newsk in unix_stream_connect().","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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().","source":"cvelist"}],"published":"2026-05-27T12:16:58.720Z","modified":"2026-06-25T21:13:24.180Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"fd0a109a0f6b7524543d17520da92a44a9f5343c","fixed":"365996a2b14d07caa9e33d367b67ea26c09d89b4","status":"affected"},{"type":"git","introduced":"fd0a109a0f6b7524543d17520da92a44a9f5343c","fixed":"a5d95d7caba0160fb7b2b8d2bd96d5a1be861d9f","status":"affected"},{"type":"git","introduced":"fd0a109a0f6b7524543d17520da92a44a9f5343c","fixed":"6884028cd7f275f8bcb854a347265cb1fb0e4bea","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.16","status":"unaffected"},{"type":"semver","introduced":"6.18.14","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.4","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.16","fixed":"6.18.14"},{"status":"affected","introduced":"6.19","fixed":"6.19.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/365996a2b14d07caa9e33d367b67ea26c09d89b4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a5d95d7caba0160fb7b2b8d2bd96d5a1be861d9f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6884028cd7f275f8bcb854a347265cb1fb0e4bea","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45887","url":"https://www.cve.org/CVERecord?id=CVE-2026-45887","licence":"CVE Terms of Use","modified":"2026-05-27T12:16:58.720Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45887","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45887","licence":"Public domain","modified":"2026-06-25T21:13:24.180Z"}],"updatedAt":"2026-11-25T22:59:22.490Z","epss":{"score":0.00154,"percentile":0.0474,"date":"2026-12-01T12:00:22.000Z"}}