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 94A21143C7B for ; Tue, 21 May 2024 15:25:15 +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=1716305115; cv=none; b=Y5FDWHr1meGcOWLsu6+g+H7vZwt5PTSYFDBqtB6xvP2EDg2/aYYQDsEbF5YTAKqhr1ES9XhVWzF+SfpTj0ra95UDAkEXd6oMLqwKaEq2l1Fordq7cUzc5+19b1mu5Fq1VpbUTAs9kfSP5iLPY8dkX+jiGsv4zL8LEQW7MYnehes= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305115; c=relaxed/simple; bh=H2AlZ7K4JUQomFGc67y0OE5UDZVK4t0kTTHXeRDoAQY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IVqsPqVnwSgHGTS44SNXU4xpm6O+zj7N0ZCWuz7Kv0ct/DVE+bLu0RvVt2hlahS6xXXztnASfaXRhGe44LrRt6cO5wiw/ulmIdxdNcouibUjzv7UF9ZHaON5lB9uX9PFfDFFNNXA5sO68L4jSmLKcsa7S7VGGZFeag9omQ5YK/w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K8/N035v; 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="K8/N035v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFDAFC4AF08; Tue, 21 May 2024 15:25:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305115; bh=H2AlZ7K4JUQomFGc67y0OE5UDZVK4t0kTTHXeRDoAQY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=K8/N035vbhvoNtBzNxMuiM4CgehmkLNF+cW7kVCIPibQVNhrhXbDPBNTNTiZ9p0ec BMoSYddc1k5BAGcqRJI6g+qeuHa3M2AMpjSqqHHAF1m2iZ1pOuijgp+7VrgvD5hMmL QrMewC4hDZ/ggTdd315DoM62CIEyifUKtBTk91vE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52700: tipc: fix kernel warning when sending SYN message Date: Tue, 21 May 2024 17:22:58 +0200 Message-ID: <2024052156-CVE-2023-52700-1e45@gregkh> X-Mailer: git-send-email 2.45.1 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=2909; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=H2AlZ7K4JUQomFGc67y0OE5UDZVK4t0kTTHXeRDoAQY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+ewI+Zp+rZxL52CpS9fX/7dTnwR/D/qtur9FoOJcQJ 8xx8ER3RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykUoRhfq6MXPBCu6NmCmH1 LNF7T+vVcWSkM8z3eXpmb16r7G7fD4kSN7Yf3GzWffAAAA== 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: fix kernel warning when sending SYN message When sending a SYN message, this kernel stack trace is observed: ... [ 13.396352] RIP: 0010:_copy_from_iter+0xb4/0x550 ... [ 13.398494] Call Trace: [ 13.398630] [ 13.398630] ? __alloc_skb+0xed/0x1a0 [ 13.398630] tipc_msg_build+0x12c/0x670 [tipc] [ 13.398630] ? shmem_add_to_page_cache.isra.71+0x151/0x290 [ 13.398630] __tipc_sendmsg+0x2d1/0x710 [tipc] [ 13.398630] ? tipc_connect+0x1d9/0x230 [tipc] [ 13.398630] ? __local_bh_enable_ip+0x37/0x80 [ 13.398630] tipc_connect+0x1d9/0x230 [tipc] [ 13.398630] ? __sys_connect+0x9f/0xd0 [ 13.398630] __sys_connect+0x9f/0xd0 [ 13.398630] ? preempt_count_add+0x4d/0xa0 [ 13.398630] ? fpregs_assert_state_consistent+0x22/0x50 [ 13.398630] __x64_sys_connect+0x16/0x20 [ 13.398630] do_syscall_64+0x42/0x90 [ 13.398630] entry_SYSCALL_64_after_hwframe+0x63/0xcd It is because commit a41dad905e5a ("iov_iter: saner checks for attempt to copy to/from iterator") has introduced sanity check for copying from/to iov iterator. Lacking of copy direction from the iterator viewpoint would lead to kernel stack trace like above. This commit fixes this issue by initializing the iov iterator with the correct copy direction when sending SYN or ACK without data. The Linux kernel CVE team has assigned CVE-2023-52700 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit f25dcc7687d4 and fixed in 6.1.13 with commit 54b6082aec17 Issue introduced in 4.0 with commit f25dcc7687d4 and fixed in 6.2 with commit 11a4d6f67cf5 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-2023-52700 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/socket.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/54b6082aec178f16ad6d193b4ecdc9c4823d9a32 https://git.kernel.org/stable/c/11a4d6f67cf55883dc78e31c247d1903ed7feccc