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 D020C6D1D2 for ; Tue, 21 May 2024 14:38:23 +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=1716302303; cv=none; b=kQEhTW4xyWsQ3eVBy7GilAtdUaTIjhKB2N2S+Qoa6Bo+SGKXRPWq3nT9taxc740/p9HQ4DeWZpkxv1/7qyA70QqcP0eCOJxsEfZPKBPU/PoY0FdeSFSpFX1RbW+qxx9VWJwhrkQKwNlyS6gTAJ18Q7JSZJ/Lm6BytRNd0R3UXZo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302303; c=relaxed/simple; bh=Mo4IUiYE2xidHdCAqFMEX0TZ5coA4MECRY62BAvoe/c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X9wHDhDoMNnoM1wptlSvmTGLSxCT9c4PVw2yA/FdYn9fkiM6JzvNeaseFYucSL1hzdpE/AmJ3VNE23Rgr8LDugTfXxesgDrVScfT3fZYeLJf/qVinKnAhMSF4+x49kgsFqwxgwgIHYCaTJjbpebGad1OxStmmuvdE1Z0JoE7f70= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UioxmjGm; 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="UioxmjGm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59383C2BD11; Tue, 21 May 2024 14:38:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302303; bh=Mo4IUiYE2xidHdCAqFMEX0TZ5coA4MECRY62BAvoe/c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UioxmjGm0eh6FZ1fw1Z9BpBJcG827egEDvhuJsL/stKk6024X5E03+SohDektnO2u g2JuqVGRYGYyio1MzFNBmHmAymZZl9S6b+SpPW01d56BlhgoIiygDlRe4KLryUxMBe ocWTewjHmhXYLtCv3kOYOectvzOedNMjQXasBVKs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47310: net: ti: fix UAF in tlan_remove_one Date: Tue, 21 May 2024 16:35:44 +0200 Message-ID: <2024052128-CVE-2021-47310-a59d@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=2864; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Mo4IUiYE2xidHdCAqFMEX0TZ5coA4MECRY62BAvoe/c=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+Gw3KJO+rCLb2K0Y//bZi786jZ9nW337BVsQk2ygc5 /tM9+O0jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIpAXDfO/25xWLJDf//HLr 6juefU/K2l2NuxkWzH0YtWNfyrs9Mm+nS6TN7jA6uf9CAwA= 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: ti: fix UAF in tlan_remove_one priv is netdev private data and it cannot be used after free_netdev() call. Using priv after free_netdev() can cause UAF bug. Fix it by moving free_netdev() at the end of the function. The Linux kernel CVE team has assigned CVE-2021-47310 to this issue. Affected and fixed versions =========================== Issue introduced in 3.10 with commit 1e0a8b13d355 and fixed in 4.4.277 with commit a18a8d9cfbb1 Issue introduced in 3.10 with commit 1e0a8b13d355 and fixed in 4.9.277 with commit c263ae8c7e4c Issue introduced in 3.10 with commit 1e0a8b13d355 and fixed in 4.14.241 with commit 0538b0ab7d2c Issue introduced in 3.10 with commit 1e0a8b13d355 and fixed in 4.19.199 with commit a0a817b2d308 Issue introduced in 3.10 with commit 1e0a8b13d355 and fixed in 5.4.135 with commit b7e5563f2a78 Issue introduced in 3.10 with commit 1e0a8b13d355 and fixed in 5.10.53 with commit f2a062fcfe1d Issue introduced in 3.10 with commit 1e0a8b13d355 and fixed in 5.13.5 with commit 93efab0ef2a6 Issue introduced in 3.10 with commit 1e0a8b13d355 and fixed in 5.14 with commit 0336f8ffece6 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-47310 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/ti/tlan.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/a18a8d9cfbb112ad72e625372849adc3986fd6bf https://git.kernel.org/stable/c/c263ae8c7e4c482387de5e6c89e213f8173fe8b6 https://git.kernel.org/stable/c/0538b0ab7d2c396e385694228c7cdcd2d2c514e9 https://git.kernel.org/stable/c/a0a817b2d308fac090a05cbbe80988e073ac5193 https://git.kernel.org/stable/c/b7e5563f2a7862a9e4796abb9908b092f677e3c1 https://git.kernel.org/stable/c/f2a062fcfe1d6f1b0a86fa76ae21c277d65f4405 https://git.kernel.org/stable/c/93efab0ef2a607fff9166d447c4035f98b5db342 https://git.kernel.org/stable/c/0336f8ffece62f882ab3012820965a786a983f70