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 676C0199242 for ; Tue, 16 Jul 2024 11:46:35 +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=1721130395; cv=none; b=ICZAOKv+/eaIBVyGSYHYsx3hU/nIRkhIyHvztN0iuqVPBU/Po9iXnoOzz9d58U1Q9p+RjvdZ6+77PdLxN36M07t0voqA/iUimlkJViAIMI3HjxkCq8Ub6RdYDes0KrS2zrU6RzjWKxkGm2NiM16f2/+SrCRdMPoHk9X459Fmv0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721130395; c=relaxed/simple; bh=kMQ+3J158ciMT6BN5C6PAMY6zB2fOsRyqqKQwIuoV1g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tIxho7KATSnaiW4w0QpvQIH+uo/lCzdOxiZJhOjYvRupzjhmnfC+G0XxgPJ+nNJOesCBbb6L/875EUW5rj+YeGocG6FLzr745rysHYDHheISYo56m9AVAhyfaICvLucIY2L1oze8NJql3FsganmtucodAEiL3qkomzD7kJgUVQM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sBaK/uUq; 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="sBaK/uUq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92EA1C4AF09; Tue, 16 Jul 2024 11:46:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721130395; bh=kMQ+3J158ciMT6BN5C6PAMY6zB2fOsRyqqKQwIuoV1g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sBaK/uUqNYxccR/Y/FPKqsiFUl9IGJ5UueGAmC3vWWyTch3Bc9t151ykJCyCQzABC BWdpswJ5HF27gjw+iijKDqA548sshMk4mEcScvvLkmvl1xOi/bUejCad16ML10fTV5 Eos4kBxP9r7lJPNY9gNbYHjX/EiyNsWl1x5xv/90= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48807: ice: Fix KASAN error in LAG NETDEV_UNREGISTER handler Date: Tue, 16 Jul 2024 13:45:59 +0200 Message-ID: <2024071645-CVE-2022-48807-cd6e@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=2508; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kMQ+3J158ciMT6BN5C6PAMY6zB2fOsRyqqKQwIuoV1g=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTYrPKtSIN/PUssno+pDqLdl15Lzr/bZwSR6vPnAp+c db2f7YdsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMJEjrAzz60TjPp2t//NF6qpb wyEu20//lY8zMMwVE36/zeGEcdJy5eV52ksWdOyaMykRAA== 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: ice: Fix KASAN error in LAG NETDEV_UNREGISTER handler Currently, the same handler is called for both a NETDEV_BONDING_INFO LAG unlink notification as for a NETDEV_UNREGISTER call. This is causing a problem though, since the netdev_notifier_info passed has a different structure depending on which event is passed. The problem manifests as a call trace from a BUG: KASAN stack-out-of-bounds error. Fix this by creating a handler specific to NETDEV_UNREGISTER that only is passed valid elements in the netdev_notifier_info struct for the NETDEV_UNREGISTER event. Also included is the removal of an unbalanced dev_put on the peer_netdev and related braces. The Linux kernel CVE team has assigned CVE-2022-48807 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 6a8b357278f5 and fixed in 5.15.24 with commit f9daedc3ab8f Issue introduced in 5.15 with commit 6a8b357278f5 and fixed in 5.16.10 with commit faa9bcf700ca Issue introduced in 5.15 with commit 6a8b357278f5 and fixed in 5.17 with commit bea1898f65b9 Issue introduced in 5.14.16 with commit e83b3cce4722 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-48807 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: drivers/net/ethernet/intel/ice/ice_lag.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/f9daedc3ab8f673e3a9374b91a89fbf1174df469 https://git.kernel.org/stable/c/faa9bcf700ca1a0d09f92502a6b65d3ce313fb46 https://git.kernel.org/stable/c/bea1898f65b9b7096cb4e73e97c83b94718f1fa1