From mboxrd@z Thu Jan 1 00:00:00 1970 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 44F9D12FB0B for ; Tue, 21 May 2024 14:22:41 +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=1716301362; cv=none; b=ekkGMsU6pddAlUVX+CH+V/OYbzzPdPh/rlqBDOjdKrFCQDOVyxxM2VhD9W2VjrgjEkfLMlzoXkgdwOlZe9s1sGaaaMdSVNjEHOLo3zW8Z/r2N6aeWpEVZZ++Qo7OTF9Kv3MP0iuWaEtOGUrWDp3UlHmxJlDeshcbJkasDe3jrfs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301362; c=relaxed/simple; bh=nW4obhk0Zq8NMdZ0A15brcsWe6kfQ3QT4uWPSgZwCdY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KL0e1GgaRTOq7NM8EGtRQEkqfOwa6j6yObyq3AEHQ6m8rFW79xu9FxrRqJi8a8xQIP2mIzWu+rU9beFk109CYfyTlG9AK2zuxtzPtSexRyefc/rln/EXnX4mCkqBclkCOShMtQ0FtAwsZuXNR+VYu4zc5hQOXNWvbVwufzIk95A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CpMxWrfC; 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="CpMxWrfC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C067C32786; Tue, 21 May 2024 14:22:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716301361; bh=nW4obhk0Zq8NMdZ0A15brcsWe6kfQ3QT4uWPSgZwCdY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CpMxWrfCzBkgdUhgbmej3DLqZtqQdR5HziVtMB7fQKQpp3JFJmgfFHaeldIHM4PFk Ud43WFc78YfkboGHw6W+qKbbcIEyF8zQI26J+q8EAuAu9s7QRAbc+XxZFiAl0h6lU6 QF2AfP8ow4o+BajpwCq3Csln1iNhq16GD5BijQg8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47236: net: cdc_eem: fix tx fixup skb leak Date: Tue, 21 May 2024 16:19:50 +0200 Message-ID: <2024052140-CVE-2021-47236-c679@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=2976; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nW4obhk0Zq8NMdZ0A15brcsWe6kfQ3QT4uWPSgZwCdY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+a2vWrVK+31K7Jt3lZm3pCQWN+bL9PCvUtsQI1Po8y Vz19LhuRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkURLDgoPvT7tJhxplKXw1 7P57YG15mGjCMoYFm6+cKLDwPJM5b1ePvX4TR6DUOsMCAA== 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: cdc_eem: fix tx fixup skb leak when usbnet transmit a skb, eem fixup it in eem_tx_fixup(), if skb_copy_expand() failed, it return NULL, usbnet_start_xmit() will have no chance to free original skb. fix it by free orginal skb in eem_tx_fixup() first, then check skb clone status, if failed, return NULL to usbnet. The Linux kernel CVE team has assigned CVE-2021-47236 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit 9f722c0978b0 and fixed in 4.4.274 with commit f12554b0ff63 Issue introduced in 2.6.30 with commit 9f722c0978b0 and fixed in 4.9.274 with commit 14184ec5c958 Issue introduced in 2.6.30 with commit 9f722c0978b0 and fixed in 4.14.238 with commit 1bcacd6088d6 Issue introduced in 2.6.30 with commit 9f722c0978b0 and fixed in 4.19.196 with commit f4e6a7f19c82 Issue introduced in 2.6.30 with commit 9f722c0978b0 and fixed in 5.4.128 with commit 81de2ed06df8 Issue introduced in 2.6.30 with commit 9f722c0978b0 and fixed in 5.10.46 with commit 05b2b9f7d24b Issue introduced in 2.6.30 with commit 9f722c0978b0 and fixed in 5.12.13 with commit b4f7a9fc9d09 Issue introduced in 2.6.30 with commit 9f722c0978b0 and fixed in 5.13 with commit c3b26fdf1b32 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-47236 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/usb/cdc_eem.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/f12554b0ff639e74612cc01b3b4a049e098d2d65 https://git.kernel.org/stable/c/14184ec5c958b589ba934da7363a2877879204df https://git.kernel.org/stable/c/1bcacd6088d61c0ac6a990d87975600a81f3247e https://git.kernel.org/stable/c/f4e6a7f19c82f39b1803e91c54718f0d7143767d https://git.kernel.org/stable/c/81de2ed06df8b5451e050fe6a318af3263dbff3f https://git.kernel.org/stable/c/05b2b9f7d24b5663d9b47427fe1555bdafd3ea02 https://git.kernel.org/stable/c/b4f7a9fc9d094c0c4a66f2ad7c37b1dbe9e78f88 https://git.kernel.org/stable/c/c3b26fdf1b32f91c7a3bc743384b4a298ab53ad7