All reports
Low

kernel: af_unix: Fix memleak of newsk in unix_stream_connect()

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-45887

Probability of exploitation in the next 30 days: 0.15%

FIRST EPSS · 2026-11-19

Description

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

A flaw was found in the Linux kernel's af_unix subsystem. This vulnerability, a memory leak, occurs in the unix_stream_connect() function when a specific internal operation fails to release allocated memory. Over time, this unreleased memory could accumulate, potentially leading to system instability or a Denial of Service (DoS) condition.