CVE-2026-45887

af_unix: Fix memleak of newsk in unix_stream_connect().

published May 27, 2026

CVSS
—
EPSS
0%
Percentile
4.8
In the wild
Unconfirmed
What it is

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().

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00160 · 4.8th percentile
Published
2026-05-27T12:16Z
EPSS history
Timeline
  • 27 MAY 12:16Z
    af_unix: Fix memleak of newsk in unix_stream_connect().
    cvelistv5