CVE-2026-45887

published 27 May 2026 · updated 27 May 2026

af_unix: Fix memleak of newsk in unix_stream_connect().

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 365996a2b14d07caa9e33d367b67ea26c09d89b4, Kernel 6884028cd7f275f8bcb854a347265cb1fb0e4bea and Kernel a5d95d7caba0160fb7b2b8d2bd96d5a1be861d9f.

In the Linux kernel, the following vulnerability has been resolved: af_unix: Fix memleak of newsk in unix_stream_connect(). When prepare_peercred() fails in unix_stream_connect(), unix_release_sock() is not called for newsk, and the memory is leaked. Let's move prepare_peercred() before unix_create1().

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.16, >=fd0a109a0f6b7524543d17520da92a44a9f5343c <365996a2b14d07caa9e33d367b67ea26c09d89b4, >=fd0a109a0f6b7524543d17520da92a44a9f5343c <6884028cd7f275f8bcb854a347265cb1fb0e4bea, >=fd0a109a0f6b7524543d17520da92a44a9f5343c <a5d95d7caba0160fb7b2b8d2bd96d5a1be861d9f365996a2b14d07caa9e33d367b67ea26c09d89b4, 6884028cd7f275f8bcb854a347265cb1fb0e4bea, a5d95d7caba0160fb7b2b8d2bd96d5a1be861d9f

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-45887 severity on Zeptric[![CVE-2026-45887](https://zeptric.io/badge/cve/CVE-2026-45887.svg)](https://zeptric.io/cve/CVE-2026-45887)