Skip to main content
← All vulnerabilities
CVE-2026-45887

af_unix: Fix memleak of newsk in unix_stream_connect().

Published
Last modified
published
Not listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub

Summary

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

Timeline

  1. CVE published

Affected versions

  • Linux Linux

    Version range not reported

  • Linux Linux

    6.16

References 3

git.kernel.org