Linux hwe edge: In the Linux kernel, the following vulnerability has been resolved: af_unix: Fix memleak of newsk in unix_stream_connect(). (CVE-2026-45887)
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().
AI Analysis
Technical Summary
The Linux kernel's af_unix module contained a memory leak vulnerability (CVE-2026-45887) where, if the function prepare_peercred() fails during the unix_stream_connect() process, the cleanup function unix_release_sock() is not called for the newly created socket (newsk). This results in leaked memory resources. The fix involves reordering the call to prepare_peercred() before unix_create1() to ensure proper cleanup.
Potential Impact
This vulnerability causes a memory leak (CWE-401) in the Linux kernel, which can degrade system stability or availability over time due to resource exhaustion. There is no impact on confidentiality or integrity. The CVSS vector indicates local attack complexity, low privileges required, no user interaction, and only availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability description indicates a fix was implemented by reordering function calls, but no explicit patch link or vendor advisory is provided. Users should monitor official Linux kernel advisories for updates and apply patches when available.
Linux hwe edge: In the Linux kernel, the following vulnerability has been resolved: af_unix: Fix memleak of newsk in unix_stream_connect(). (CVE-2026-45887)
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().
CVSS v3.1
Score 5.5medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's af_unix module contained a memory leak vulnerability (CVE-2026-45887) where, if the function prepare_peercred() fails during the unix_stream_connect() process, the cleanup function unix_release_sock() is not called for the newly created socket (newsk). This results in leaked memory resources. The fix involves reordering the call to prepare_peercred() before unix_create1() to ensure proper cleanup.
Potential Impact
This vulnerability causes a memory leak (CWE-401) in the Linux kernel, which can degrade system stability or availability over time due to resource exhaustion. There is no impact on confidentiality or integrity. The CVSS vector indicates local attack complexity, low privileges required, no user interaction, and only availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability description indicates a fix was implemented by reordering function calls, but no explicit patch link or vendor advisory is provided. Users should monitor official Linux kernel advisories for updates and apply patches when available.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-c5xh-c73j-mcx2
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-45887"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a3ef7ef27e9c79719034b72
Added to database: 06/26/2026, 22:06:39 UTC
Last enriched: 06/26/2026, 22:49:48 UTC
Last updated: 07/31/2026, 19:30:24 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.