CVE-2026-45887
publishedaf_unix: Fix memleak of newsk in unix_stream_connect().
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxfd0a109a0f6b7524543d17520da92a44a9f5343c to < 365996a2b14d07caa9e33d367b67ea26c09d89b4 · fd0a109a0f6b7524543d17520da92a44a9f5343c to < a5d95d7caba0160fb7b2b8d2bd96d5a1be861d9f · fd0a109a0f6b7524543d17520da92a44a9f5343c to < 6884028cd7f275f8bcb854a347265cb1fb0e4bea · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.16 (affected) · 0 to < 6.16 (unaffected · semver) · 6.18.14 through 6.18.* (unaffected · semver) · 6.19.4 through 6.19.* (unaffected · semver) · 7.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1514 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | kernel6.18aarch64 | Listed in advisory | Not stated | ALAS2023-2026-1514 |
| Amazon Linux | AL2023 | kernel6.18src | Listed in advisory | Not stated | ALAS2023-2026-1514 |
| Amazon Linux | AL2023 | kernel6.18x86_64 | Listed in advisory | Not stated | ALAS2023-2026-1514 |
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().
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | fd0a109a0f6b7524543d17520da92a44a9f5343c to < 365996a2b14d07caa9e33d367b67ea26c09d89b4 (affected · git)fd0a109a0f6b7524543d17520da92a44a9f5343c to < a5d95d7caba0160fb7b2b8d2bd96d5a1be861d9f (affected · git)fd0a109a0f6b7524543d17520da92a44a9f5343c to < 6884028cd7f275f8bcb854a347265cb1fb0e4bea (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.16 (affected)0 to < 6.16 (unaffected · semver)6.18.14 through 6.18.* (unaffected · semver)6.19.4 through 6.19.* (unaffected · semver)7.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
af_unix: Fix memleak of newsk in unix_stream_connect().
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ba68c9a46f98f761575cc09bc29e1483ca3fd169bf3524be85dea800a9cc3222
- Ingested
- 23 Sep 2026, 09:15:56 UTC
- Source record
- Official CVE record