CVE-2026-45887
JSON

5.5medium

af_unix: Fix memleak of newsk in unix_stream_connect().

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Affected

Product or packageVersionsReported by
Linux Linuxfrom fd0a109a0f6b7524543d17520da92a44a9f5343c before 365996a2b14d07caa9e33d367b67ea26c09d89b4, from fd0a109a0f6b7524543d17520da92a44a9f5343c before a5d95d7caba0160fb7b2b8d2bd96d5a1be861d9f, from fd0a109a0f6b7524543d17520da92a44a9f5343c before 6884028cd7f275f8bcb854a347265cb1fb0e4bea, 6.16
Not affected: before 6.16, from 6.18.14 up to 6.18.*, from 6.19.4 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.16 before 6.18.14, from 6.19 before 6.19.4NVD

Classification

References

Sources

SourceRecordLicence
CVE ListCVE-2026-45887 changed 2026-05-27CVE Terms of Use
NVDCVE-2026-45887 changed 2026-06-25Public domain