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 BF566145A01 for ; Thu, 30 May 2024 14:59:48 +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=1717081188; cv=none; b=te3RIl6QwQJ1RYlArAuqSK/VnJIEDmFIgPyIugjbwhMx4ynM7u8utP2iu3ili2ooVdYYNVf5qX2siZ8x1lRVsyxAWlmcbiaylbZZGv6uD9dWKvWRv3fOO9vIkdLNJkjrK4wiXQn0HDxlsqjWI7PDNbtvbE+GVnNiylgF6t17h20= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717081188; c=relaxed/simple; bh=t6L306XnqDCQeN+8KK6VkbX1z66Sgqs1LDAkiVz9qsA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cF8zo8otgWD2JTDdMZlMKkQjgW076MuuUGNp21cwwRWdSHdZJ1i/gzphGGdbjR2c/AvwkqvwLaMmW/Fpc2iak2FsLYFujRrzoLnuKXIy1mgFykk19kO5Vz7OOFtb0rw3u2a2GVAcCmoZUUS3LVR37rXnpGczsWmnjZeuOakRtg0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=G5yDFI6Z; 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="G5yDFI6Z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8B83C2BBFC; Thu, 30 May 2024 14:59:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717081188; bh=t6L306XnqDCQeN+8KK6VkbX1z66Sgqs1LDAkiVz9qsA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=G5yDFI6Zzajh0fb+BbpsEmMyhs4clt2zXAHDyLPCE0o5fUMwfnA+FgE2HQVKpYUos JjtUyXCF4TkR2rv5cISAGQXN4iNlkHnV8v9gbKW3YF9iE1hxcwKEA239UAjTH+aWtt gcwaP0jUrk9oltPJyHMS6UNpFrZHnXh6bkWQXo2A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36020: i40e: fix vf may be used uninitialized in this function warning Date: Thu, 30 May 2024 16:59:43 +0200 Message-ID: <2024053044-CVE-2024-36020-5da7@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=3295; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t6L306XnqDCQeN+8KK6VkbX1z66Sgqs1LDAkiVz9qsA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRUxKSmfb/vyYmd7tXnsmhZuZRscKt5558F36x0PJnn j5DuOSNjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI9huG+fGrlgQL/Qr79SmM S6jmzMQm4V2qKQzz3RQCQlINrmj9O3SWXzVt65GLweGTAQ== 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: i40e: fix vf may be used uninitialized in this function warning To fix the regression introduced by commit 52424f974bc5, which causes servers hang in very hard to reproduce conditions with resets races. Using two sources for the information is the root cause. In this function before the fix bumping v didn't mean bumping vf pointer. But the code used this variables interchangeably, so stale vf could point to different/not intended vf. Remove redundant "v" variable and iterate via single VF pointer across whole function instead to guarantee VF pointer validity. The Linux kernel CVE team has assigned CVE-2024-36020 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19.264 with commit 76ed715836c6 and fixed in 4.19.312 with commit cc9cd02dd9e8 Issue introduced in 5.4.223 with commit e88c2a1e28c5 and fixed in 5.4.274 with commit 9dcf0fcb80f6 Issue introduced in 5.10.153 with commit 9abae363af5c and fixed in 5.10.215 with commit b8e82128b44f Issue introduced in 5.15.77 with commit c39de3ae5075 and fixed in 5.15.154 with commit 951d2748a2a8 Issue introduced in 6.1 with commit 52424f974bc5 and fixed in 6.1.85 with commit 3e89846283f3 Issue introduced in 6.1 with commit 52424f974bc5 and fixed in 6.6.26 with commit 0dcf573f9977 Issue introduced in 6.1 with commit 52424f974bc5 and fixed in 6.8.5 with commit 06df7618f591 Issue introduced in 6.1 with commit 52424f974bc5 and fixed in 6.9 with commit f37c4eac99c2 Issue introduced in 6.0.7 with commit 02f949747e6f 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-2024-36020 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/i40e/i40e_virtchnl_pf.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/cc9cd02dd9e8b7764ea9effb24f4f1dd73d1b23d https://git.kernel.org/stable/c/9dcf0fcb80f6aeb01469e3c957f8d4c97365450a https://git.kernel.org/stable/c/b8e82128b44fa40bf99a50b919488ef361e1683c https://git.kernel.org/stable/c/951d2748a2a8242853abc3d0c153ce4bf8faad31 https://git.kernel.org/stable/c/3e89846283f3cf7c7a8e28b342576fd7c561d2ba https://git.kernel.org/stable/c/0dcf573f997732702917af1563aa2493dc772fc0 https://git.kernel.org/stable/c/06df7618f591b2dc43c59967e294d7b9fc8675b6 https://git.kernel.org/stable/c/f37c4eac99c258111d414d31b740437e1925b8e8