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 30D9516F846 for ; Mon, 25 Mar 2024 09:08:51 +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=1711357732; cv=none; b=PicSF6+J4GCYfTSrRCJf87VXFMQ2lcVLtsIGagAg1qEzvUdKHd1Yd6GCvh89yqMYQuIPn5YUG2lTVjSuPTHDYg4L5YGxXPnT2cw42qbZ/qR3qC5LC6pQgoDURHeWDRA2uprYThjO+rGqt6CD5469CE8F+HIgkji2fisEBAgOs+g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711357732; c=relaxed/simple; bh=C0EA1NQwxoC6uNgAZ0XCioosvLu0kpgvZqvDynKPKok=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HD1IukZICTUOrMENaecq1WLgZcjT/AHgkC7X++wWNT2+bmNyME35mBf6ElGWoG7zx3HTzydavZNvFh5cYIaNNM8IHNEr0Sf2EYmYBLgKp7ZsQfTGjtr12VaKRnunsdIwJ6GGoW5SUzQ6FyV1K9JlSe5P6evm/cN/i6BX3vSyZOU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mjzOU+58; 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="mjzOU+58" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54573C433C7; Mon, 25 Mar 2024 09:08:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711357731; bh=C0EA1NQwxoC6uNgAZ0XCioosvLu0kpgvZqvDynKPKok=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mjzOU+58jCEzanEBiJlPXGQOIQJvBzu9Wy8GIASj31U2adUt4nNAK7XHO6f1RR8kk wIxkrCM0J3PUpfwX+bsANVDc+rOqP1QpLmg0WHeJGcbAwhnrZQLwvJQhguxs77im/A W635FO4dOD8LHsro3XE5ZV0PIZOu68l79Hu36xTU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47141: gve: Add NULL pointer checks when freeing irqs. Date: Mon, 25 Mar 2024 10:07:58 +0100 Message-ID: <2024032557-CVE-2021-47141-ce47@gregkh> X-Mailer: git-send-email 2.44.0 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=2214; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=C0EA1NQwxoC6uNgAZ0XCioosvLu0kpgvZqvDynKPKok=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmMdu8U2MRcK+Yr/1H7oBS3qz0yp2WG88Voe6ZVv/87b nt7XHRxRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkwo5hftzaytzGEI5z177N /f5x2qonAT9e1TLMU38iuvxR/Ka7Fyax/OEOWdugkffYAAA= 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: Add NULL pointer checks when freeing irqs. When freeing notification blocks, we index priv->msix_vectors. If we failed to allocate priv->msix_vectors (see abort_with_msix_vectors) this could lead to a NULL pointer dereference if the driver is unloaded. The Linux kernel CVE team has assigned CVE-2021-47141 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 893ce44df565 and fixed in 5.4.124 with commit 821149ee88c2 Issue introduced in 5.3 with commit 893ce44df565 and fixed in 5.10.42 with commit da21a35c00ff Issue introduced in 5.3 with commit 893ce44df565 and fixed in 5.12.9 with commit 5278c75266c5 Issue introduced in 5.3 with commit 893ce44df565 and fixed in 5.13 with commit 5218e919c8d0 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-2021-47141 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_main.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/821149ee88c206fa37e79c1868cc270518484876 https://git.kernel.org/stable/c/da21a35c00ff1a1794d4f166d3b3fa8db4d0f6fb https://git.kernel.org/stable/c/5278c75266c5094d3c0958793bf12fc90300e580 https://git.kernel.org/stable/c/5218e919c8d06279884aa0baf76778a6817d5b93