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 08039127E20 for ; Tue, 21 May 2024 14:20: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=1716301252; cv=none; b=rXjz8W3Thp88imW5ItJJ41p/4Z1l3rjn+Vpxo7Bcd7JfF6R7s4TX4Eu1cfuy3FdkAD5F3UL1Njxc1BLQ/mEfsrTc/3I6hBtXUIcj0tDDILQt3uTVbYW7N7uEHXHoaSHmmlmt6fOC5PT4bb82JidIBpp0Dqon/VRcTDtGllzV66Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301252; c=relaxed/simple; bh=2eZVjuzcyy/6MJhM1Nh4EEa1OslL4ODKuK4lyxBWJuQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oj5tXpCBYBi8U4VZsRE4CjWVk1Ib+TLOBPzAS/AMLbLZNGzd/YvrrDS9Puoti1gNd5Er7tOB9OIkvwXqm3eptGgn0VXxQDXkDAUl69AuTUMdWO7OcLnn7DRLKYmxGWFEoQkb9ahWB6yILAHa9cKqHhvoHVurZKc98LNsp32Uh8E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xJz9OONs; 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="xJz9OONs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C096C2BD11; Tue, 21 May 2024 14:20:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716301251; bh=2eZVjuzcyy/6MJhM1Nh4EEa1OslL4ODKuK4lyxBWJuQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xJz9OONsokfwuj+3w2SHQkw1Dr33iQN55nWILqxa8aAMwIW4/LBWBVquknSysCzh8 2BDzP8DDF9jnPme2J11T5EXNRyCJzwYih8xVjtYqppj6l4BwSkDxHN/S37thpW4fTq O/M21VvRMs03aJbSfyWPeTLeeoI6jEGUwm2qMRkM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47224: net: ll_temac: Make sure to free skb when it is completely used Date: Tue, 21 May 2024 16:19:38 +0200 Message-ID: <2024052136-CVE-2021-47224-8135@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=2298; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2eZVjuzcyy/6MJhM1Nh4EEa1OslL4ODKuK4lyxBWJuQ=; b=kA0DAAIRMUfUDdst+ykByyZiAGZMrXih8Sc7bwJ+QTXp3Ki/lyMhSXYZUBC6N0wKvHlwzIpPr YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmZMrXgACgkQMUfUDdst+ymknACgqje+ TH3dV1XxD37tqG/63+JONKYAn09WxA/wZF/cDCeQcZnOFENqBf2b 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: net: ll_temac: Make sure to free skb when it is completely used With the skb pointer piggy-backed on the TX BD, we have a simple and efficient way to free the skb buffer when the frame has been transmitted. But in order to avoid freeing the skb while there are still fragments from the skb in use, we need to piggy-back on the TX BD of the skb, not the first. Without this, we are doing use-after-free on the DMA side, when the first BD of a multi TX BD packet is seen as completed in xmit_done, and the remaining BDs are still being processed. The Linux kernel CVE team has assigned CVE-2021-47224 to this issue. Affected and fixed versions =========================== Fixed in 5.4.128 with commit 6d120ab4dc39 Fixed in 5.10.46 with commit 019ab7d044d0 Fixed in 5.12.13 with commit e8afe05bd359 Fixed in 5.13 with commit 6aa32217a9a4 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-47224 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/xilinx/ll_temac_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/6d120ab4dc39a543c6b63361e1d0541c382900a3 https://git.kernel.org/stable/c/019ab7d044d0ebf97e1236bb8935b7809be92358 https://git.kernel.org/stable/c/e8afe05bd359ebe12a61dbdc94c06c00ea3e8d4b https://git.kernel.org/stable/c/6aa32217a9a446275440ee8724b1ecaf1838df47