Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 335613ED13E for ; Wed, 27 May 2026 12:23:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884615; cv=none; b=Y8QLi+AAjj/Roe02+ckl0rDLct/mxuCjPLCk+JVeCv78M/EvyEHpQnG9XLheOSA3BvLjaPb8kRrZOzNVlX+8ZtQg9lzArL6HvwqBzvYbG/0IK27XRBXH7MPbP2+brd+O+ECq6dGpdT5W0pg58o8tF9TpFvXNE0yM7pN38WpumgM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884615; c=relaxed/simple; bh=QdVg4w4nogpV+FVupwVdxExbI6tIHl9XD26b0PJrp5Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dJ2wKq8XuvQJ45Oej4m5GnUz/yvCOuVPSXJnctBeiPQWwbtHOMVF2AslyMkvhrQ8NHr+lzfP4ihg+LKrXgGp/DGgub2hHURwglmST3lzeegS9T3kRhiC0onwSfilky3suf2HxTRaOKo/b3hiea7QbeacI0Gatuc/d8utcBbzF0M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=owh2I/Xa; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="owh2I/Xa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 872831F000E9; Wed, 27 May 2026 12:23:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884614; bh=QH2yQ+B9s5ZycP09GfbuzPevMHP793HKp3W8vw5dAtc=; h=From:To:Cc:Subject:Date:Reply-To; b=owh2I/XaTdlM7O0Cqml+xV7/UO2dd9cEeQG121lV6NBsSypfeeJmFmUiEH7BHQALR 91y8t8+iqLJhJeZ4U0c5L/Mohy5H+o2h4jI0Hpi6TAXFmFELdMBdDz+n0tm3WB3oBc lNh/saJikMMcg3hecEt2sg6DHJhLXURF2ku0UhrE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45887: af_unix: Fix memleak of newsk in unix_stream_connect(). Date: Wed, 27 May 2026 14:18:49 +0200 Message-ID: <2026052716-CVE-2026-45887-8c83@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2169; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tGbqpwI4IGZ7gCVIlWW7UQ9dwk3jExOZaBd7jWpsKew=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliDzlEtkkdXGe6KSY4ZvnXpQdXrBQurc24wMo1yf3e6 fi0l7mPOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiYsUMC06V/eae/y3t9m3N e5siWC5z1e+IXs0wz27pZ0N31eWHD4YKcny4ZfbnGvOtKQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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(). The Linux kernel CVE team has assigned CVE-2026-45887 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit fd0a109a0f6b7524543d17520da92a44a9f5343c and fixed in 6.18.14 with commit 365996a2b14d07caa9e33d367b67ea26c09d89b4 Issue introduced in 6.16 with commit fd0a109a0f6b7524543d17520da92a44a9f5343c and fixed in 6.19.4 with commit a5d95d7caba0160fb7b2b8d2bd96d5a1be861d9f Issue introduced in 6.16 with commit fd0a109a0f6b7524543d17520da92a44a9f5343c and fixed in 7.0 with commit 6884028cd7f275f8bcb854a347265cb1fb0e4bea Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-45887 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/unix/af_unix.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/365996a2b14d07caa9e33d367b67ea26c09d89b4 https://git.kernel.org/stable/c/a5d95d7caba0160fb7b2b8d2bd96d5a1be861d9f https://git.kernel.org/stable/c/6884028cd7f275f8bcb854a347265cb1fb0e4bea