CVE-2026-45887Published May 27, 2026 · May 27Updated Oct 28
af_unix: Fix memleak of newsk in unix_stream_connect().
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.146.19.47.0In 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().
From the CVE record · Linux
The Linux kernel can leak memory in unix_stream_connect() if prepare_peercred() fails after a new socket is created. The issue occurs during a local Unix-domain socket connection; the input does not specify whether authentication or user interaction is required.
Engineers running the Linux kernel should check their versions against the vendor advisory; affected versions are not specified.