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 CA2D516DEC3 for ; Fri, 12 Jul 2024 12:28:54 +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=1720787334; cv=none; b=IjT9y/Md/U1vlPXSl4e2hvTsNaG9es2s1pnZpGnoBFkLnr6kf/rS3urFAfc7QO7fU4Np/szfnEbdU+hsTvUmQPzr/83TqPXjOi8QHL90bWj0m7bXCKQZhXpYfXQS6EBpxxVlUUMVKqD4aZcif2TJGwk2gE01g2RBFZdZxHSDE34= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787334; c=relaxed/simple; bh=/d0Zl/uw+/dCXM2bB3GIIq+I1nIviWpaaNV5UimCX3g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Y9BnnSSgM/puW0WWEipa9QAUaaRBdJXeibaANCPw9JBNonDyxC85bq/gOheRYKBazmQu832KjfK2RGpMyr92HDg5edEoGZ8K/zgE8kkV029HLidL0OmEIpbAXGFbtA9RQB/WX0qz2PJNUaycAVNCqYELG8TJvhrn3xyUz6nz5m0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iXYWiSdj; 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="iXYWiSdj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45A6DC32782; Fri, 12 Jul 2024 12:28:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787334; bh=/d0Zl/uw+/dCXM2bB3GIIq+I1nIviWpaaNV5UimCX3g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=iXYWiSdjr40mxadxQnIYxEAVw52206OmbSv8sarLO47YYofwlkm1vNpKe/8sw9k+I pD0ZJ5jOpAvjUPJLSzoM7ijjyeD2JlZ/UEGDXXm3yoNEPh109nTzL6kl3zyzuLW0e8 XVP4z79uMoNwOBM8RVBDJogau2PNCVESxAHMtGsI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40937: gve: Clear napi->skb before dev_kfree_skb_any() Date: Fri, 12 Jul 2024 14:27:35 +0200 Message-ID: <2024071217-CVE-2024-40937-fecf@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=2437; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/d0Zl/uw+/dCXM2bB3GIIq+I1nIviWpaaNV5UimCX3g=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTFVX1mra+P33xz0EPmd70VRGVRk3a2ZP3cnB+zT5+S XCL38PAjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIUUWGBU38Xgo5S8uTP+r3 TJvoPbOIRfzmXoY5fObrqjZnOV1beu7PtWWMz8OznvAyAAA= 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: gve: Clear napi->skb before dev_kfree_skb_any() gve_rx_free_skb incorrectly leaves napi->skb referencing an skb after it is freed with dev_kfree_skb_any(). This can result in a subsequent call to napi_get_frags returning a dangling pointer. Fix this by clearing napi->skb before the skb is freed. The Linux kernel CVE team has assigned CVE-2024-40937 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 9b8dd5e5ea48 and fixed in 5.15.162 with commit 75afd8724739 Issue introduced in 5.14 with commit 9b8dd5e5ea48 and fixed in 6.1.95 with commit d22128499111 Issue introduced in 5.14 with commit 9b8dd5e5ea48 and fixed in 6.6.35 with commit 2ce5341c3699 Issue introduced in 5.14 with commit 9b8dd5e5ea48 and fixed in 6.9.6 with commit a68184d5b420 Issue introduced in 5.14 with commit 9b8dd5e5ea48 and fixed in 6.10-rc4 with commit 6f4d93b78ade 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-40937 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/google/gve/gve_rx_dqo.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/75afd8724739ee5ed8165acde5f6ac3988b485cc https://git.kernel.org/stable/c/d221284991118c0ab16480b53baecd857c0bc442 https://git.kernel.org/stable/c/2ce5341c36993b776012601921d7688693f8c037 https://git.kernel.org/stable/c/a68184d5b420ea4fc7e6b7ceb52bbc66f90d3c50 https://git.kernel.org/stable/c/6f4d93b78ade0a4c2cafd587f7b429ce95abb02e