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 7EA864ABBAB for ; Thu, 17 Sep 2026 16:12:48 +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=1789661569; cv=none; b=lOMYigS8mloR6EKGmbyauiwXosrsfvN0tQkrvAAi2nFpIvsnw3338SmU75JaRzhscrYSPXtOpkkiydz0nP2g/EBOTL5lPuFm17Q5iP/7vDZXl3oS1QdW0knaSibNtx7lS7xz81CDRXHuD5LgikDtHe3x8z0/QtwsO5fzoMnxUxk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661569; c=relaxed/simple; bh=EyQRPt/67xxNLwHoU1g1VmsIHBplbmpiMC09qecK6V8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oIH9WPYS/qnd6tMN+s6bOr1OO5K9iBgmRXPOuUqeF+ofk2cnGoNx/THrsTRU9rgoymScYZh9rODcO0LMuJgh4Ork6QlHmUmkwGFabJ+w5ideIOafXRSMSaqzcot+IJAHMl786Lnk2AskgBWrCxfOdvjTRfJU5zBA0HvMef5gEfc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MWTbZQif; 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="MWTbZQif" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93A571F000FF; Thu, 17 Sep 2026 16:12:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661568; bh=sGQ7/k7NsWrV6ErkUaYYACRD4TUTeeOtqNxAbb/k6O8=; h=From:To:Cc:Subject:Date:Reply-To; b=MWTbZQifR9fFQaCSquUWnvTeswQ+MDQi/DPEFUMI3W8DlOZjjXwDtzMM69zaWDtLt ctfzNxaQGRk/6Q4/bKI4CGVyEy7Jme7NRft/PUsqezIWbq7FJjdIbWlFr11veShfUp 1Ob2E6GzgOnPcnvVwSnJe6jScbRR7KR9AxAOGgV0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90065: net/smc: release the internal TCP sock on IPPROTO_SMC socket creation failure Date: Thu, 17 Sep 2026 17:08:15 +0100 Message-ID: <2026091705-CVE-2026-90065-5813@gregkh> X-Mailer: git-send-email 2.55.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=3404; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3s+J38CTwKMyyElQjRQEMBdLpOU2Ey5gNSpLYgi+cYw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBNK+1ay6MT3hdW1xZtW9u0bXjAKim0/8STsUwbFI+ NXzOXzyHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR2f0MC851c1808p+0zkhz 1aFbPW+uidycHcqwYKqWzHYD8zmv7Kb/beLe7Odk6bDkCAA= 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: net/smc: release the internal TCP sock on IPPROTO_SMC socket creation failure IPPROTO_SMC sockets create an internal TCP sock ("clcsock") from the proto->init hook. When socket creation fails after proto->init has run - e.g. a cgroup BPF program attached to BPF_CGROUP_INET_SOCK_CREATE denies the socket - sk_common_release() only invokes sk_prot->destroy if it is set, but neither smc_inet_prot nor smc_inet6_prot defines it, and smc_destruct() returns early unless sk_state is SMC_CLOSED. As a result, every failing socket(AF_INET, SOCK_STREAM, IPPROTO_SMC) call leaks one tcp_sock, so an unprivileged task able to attach a deny-all BPF_CGROUP_INET_SOCK_CREATE program to its own cgroup can grow kernel memory unboundedly. Add a .destroy hook to both protos that releases the clcsock via smc_clcsock_release(). smc_sk_init() hashes the sock into the smc hashinfo before the clcsock is created, and smc_diag dumps walk that hash dereferencing smc->clcsock without taking clcsock_release_lock, while sk_common_release() calls .destroy before .unhash. Unhash the sock before releasing the clcsock, as __smc_release() does, so a concurrent dump cannot observe the release; the second unhash in sk_common_release() is a no-op. The Linux kernel CVE team has assigned CVE-2026-90065 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit d25a92ccae6bed02327b63d138e12e7806830f78 and fixed in 6.12.110 with commit 2f4ece7fed6d915ec64b7735962c0d84d6261032 Issue introduced in 6.11 with commit d25a92ccae6bed02327b63d138e12e7806830f78 and fixed in 6.18.52 with commit 84180988a455fd8e147c6b35c8df65d8b8cc76c2 Issue introduced in 6.11 with commit d25a92ccae6bed02327b63d138e12e7806830f78 and fixed in 7.2.6 with commit 94a913cd521c0f0408820bcdbd80dadf076d97b5 Issue introduced in 6.11 with commit d25a92ccae6bed02327b63d138e12e7806830f78 and fixed in 7.3-rc1 with commit cec261b0b4c5c0b044165303198d10ffcdf3414c 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-90065 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/smc/smc_inet.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/2f4ece7fed6d915ec64b7735962c0d84d6261032 https://git.kernel.org/stable/c/84180988a455fd8e147c6b35c8df65d8b8cc76c2 https://git.kernel.org/stable/c/94a913cd521c0f0408820bcdbd80dadf076d97b5 https://git.kernel.org/stable/c/cec261b0b4c5c0b044165303198d10ffcdf3414c