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 B81C91FCF69 for ; Mon, 21 Oct 2024 20:14:32 +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=1729541672; cv=none; b=coFQDt9gM7sFbP2haGA52tarOZBduP/8IkaZ0GMP8YHH0PJGH+6W/MlT6VAMqnGur0tSPXITIHGvbQFj9C9QH2oibvdtr+HALv4EVvst4zTDB24VckwpNIU5P+FuIQTFf8++T9++9Ccin7IDV83Zppb9QohZuRhnvf0/JdsSFNE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541672; c=relaxed/simple; bh=iQ+YFvhijAWoJ/Usd5b+WY67Tru1EmrbfHWFlJbZpKA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M3Q905JQL0GjcIFG4Mg/4TFoPvc2+X2JrVK2vQdaco25PAkhflU8qdDrLe5+fRJlF7DxNibTqM4v5LUOWvTXg5T+Af6XRmCFKBcNPPcF9k/bgZgisgC42u/H2Y4UyH0RuqPN9t+TPifOwL7r4EJgr2dwXhMWx/lHv3oAtD5L9Nw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gTzXdDhg; 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="gTzXdDhg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BCDFC4CEC3; Mon, 21 Oct 2024 20:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541672; bh=iQ+YFvhijAWoJ/Usd5b+WY67Tru1EmrbfHWFlJbZpKA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gTzXdDhg8/aASDuvwKJOtag17CU33GcOnvcO4M3KMHxKZg3of9TsuV8jepBfJ8qgj CKesXMWpjDBoIYlfx64+TfdYlPJxpsVlRYypo7DyMPfmTLo1vIPrP80crzuxLarrsH sdpUPIRWdtt31vF3N4KM/4acvyF0fOV3dT86FzAk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49026: e100: Fix possible use after free in e100_xmit_prepare Date: Mon, 21 Oct 2024 22:06:58 +0200 Message-ID: <2024102155-CVE-2022-49026-f8d1@gregkh> X-Mailer: git-send-email 2.47.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=2283; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iQ+YFvhijAWoJ/Usd5b+WY67Tru1EmrbfHWFlJbZpKA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW5RX8Hmnroi16f63/dVM0xm31p44JDeB1eJ2bviHK +vYQt8rdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEzmsxLGh1v3dj40IX5i+y Zil3zXrX/jy8bTnD/ECF2tVtb3eq+e7aOMfZuDRk9ZPwSQA= 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: e100: Fix possible use after free in e100_xmit_prepare In e100_xmit_prepare(), if we can't map the skb, then return -ENOMEM, so e100_xmit_frame() will return NETDEV_TX_BUSY and the upper layer will resend the skb. But the skb is already freed, which will cause UAF bug when the upper layer resends the skb. Remove the harmful free. The Linux kernel CVE team has assigned CVE-2022-49026 to this issue. Affected and fixed versions =========================== Issue introduced in 4.3 with commit 5e5d49422dfb and fixed in 5.10.158 with commit b775f37d9439 Issue introduced in 4.3 with commit 5e5d49422dfb and fixed in 5.15.82 with commit 9fc27d22cdb9 Issue introduced in 4.3 with commit 5e5d49422dfb and fixed in 6.0.12 with commit b46f6144ab89 Issue introduced in 4.3 with commit 5e5d49422dfb and fixed in 6.1 with commit 45605c75c52c 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-49026 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/e100.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/b775f37d943966f6f77dca402f5a9dedce502c25 https://git.kernel.org/stable/c/9fc27d22cdb9b1fcd754599d216a8992fed280cd https://git.kernel.org/stable/c/b46f6144ab89d3d757ead940759c505091626a7d https://git.kernel.org/stable/c/45605c75c52c7ae7bfe902214343aabcfe5ba0ff