From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0D49D80C15 for ; Thu, 20 Jun 2024 11:16:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718882179; cv=none; b=u6H5kNzxSp4cDhgLc5eUths5cmk9/9R+0kiEe23bgUUVp3ChC0BDope/kh2SpLYTTXXTlrzhvHWBGFT2lWuFm4L/Fdp8vXzw9CuUgA04GoOkeSSt2VZRD0dFAzhATH2s2hH2TqIhTwt7AaLoJd87XVHfFE5F+rCh4OMdRELOCxI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718882179; c=relaxed/simple; bh=i7vjP/b0tQZIXGiniX0fPPCWZG/AGJo8EMRMO4EClCY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Y7l5guhQTuu8Kpox5V4m/ezbZz/q/6MmgBbrATVytpDeyHnUyH85j2kbXp2U3baaXRUY9b+pK6jnEh9oFiVDtTRY2FkcDjCSVFMmSLkDoZvwg3tIyykiLRcLY7LBbMw8pOXLSZ1L3N9wIN5BYRKZIMinZcKry7vUolXITpxpdjM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FjA4WqcL; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="FjA4WqcL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3720DC2BD10; Thu, 20 Jun 2024 11:16:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718882178; bh=i7vjP/b0tQZIXGiniX0fPPCWZG/AGJo8EMRMO4EClCY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FjA4WqcLrfu4Ag6rUUoDklNQUpSjlI43TH9kzjX1FbkdnslEZ3Vk8wNvnxUnK+TWo E5zU5LU5qZatxNwaXxpvqh+7vvPU9GJv+pPgIaPWA+JFhuZ9uoVITCahd5mIq8nZ+J k+oDK1A0atkSIj6R+ftniRtRaUAE0H1U00Yex4Mo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48711: tipc: improve size validations for received domain records Date: Thu, 20 Jun 2024 13:15:51 +0200 Message-ID: <2024062053-CVE-2022-48711-4d4e@gregkh> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3552; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=i7vjP/b0tQZIXGiniX0fPPCWZG/AGJo8EMRMO4EClCY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkl/Fm8Kesm7sudleT2QG3r6vJVPV3BVgFy07KSew+a7 OQp3HizI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaySpJhwWG/4oDVuR/ubZ4a 3lDbe8J3+raFbQzzLNY6GrjPKlww580M0z9/KoXWbvh+BAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: tipc: improve size validations for received domain records The function tipc_mon_rcv() allows a node to receive and process domain_record structs from peer nodes to track their views of the network topology. This patch verifies that the number of members in a received domain record does not exceed the limit defined by MAX_MON_DOMAIN, something that may otherwise lead to a stack overflow. tipc_mon_rcv() is called from the function tipc_link_proto_rcv(), where we are reading a 32 bit message data length field into a uint16. To avert any risk of bit overflow, we add an extra sanity check for this in that function. We cannot see that happen with the current code, but future designers being unaware of this risk, may introduce it by allowing delivery of very large (> 64k) sk buffers from the bearer layer. This potential problem was identified by Eric Dumazet. This fixes CVE-2022-0435 The Linux kernel CVE team has assigned CVE-2022-48711 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit 35c55c9877f8 and fixed in 4.9.301 with commit 175db196e45d Issue introduced in 4.8 with commit 35c55c9877f8 and fixed in 4.14.266 with commit fde4ddeadd09 Issue introduced in 4.8 with commit 35c55c9877f8 and fixed in 4.19.229 with commit f1af11edd08d Issue introduced in 4.8 with commit 35c55c9877f8 and fixed in 5.4.179 with commit d692e3406e05 Issue introduced in 4.8 with commit 35c55c9877f8 and fixed in 5.10.100 with commit 3c7e59435535 Issue introduced in 4.8 with commit 35c55c9877f8 and fixed in 5.15.23 with commit 1f1788616157 Issue introduced in 4.8 with commit 35c55c9877f8 and fixed in 5.16.9 with commit 59ff7514f8c5 Issue introduced in 4.8 with commit 35c55c9877f8 and fixed in 5.17 with commit 9aa422ad3266 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-2022-48711 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/tipc/link.c net/tipc/monitor.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/175db196e45d6f0e6047eccd09c8ba55465eb131 https://git.kernel.org/stable/c/fde4ddeadd099bf9fbb9ccbee8e1b5c20d530a2d https://git.kernel.org/stable/c/f1af11edd08dd8376f7a84487cbb0ea8203e3a1d https://git.kernel.org/stable/c/d692e3406e052dbf9f6d9da0cba36cb763272529 https://git.kernel.org/stable/c/3c7e5943553594f68bbc070683db6bb6f6e9e78e https://git.kernel.org/stable/c/1f1788616157b0222b0c2153828b475d95e374a7 https://git.kernel.org/stable/c/59ff7514f8c56f166aadca49bcecfa028e0ad50f https://git.kernel.org/stable/c/9aa422ad326634b76309e8ff342c246800621216