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 008FB6D1D2 for ; Tue, 21 May 2024 14:38:26 +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=1716302307; cv=none; b=pVEPXn93+gY9y3I/Nk70ES4lmh6/gi9I9WCblvKz1OUuYjD/PrR7HVcggggZ6KBQj/HZ+cT5K23qXVjd01h0dbi10Pcv7Q6ZPx6FZiTJVswTdHjjjX6NEtGSlOscrFxb/0yygFT3oHmtt6Ddh6Lo949dX+BDoY6GvP3U96h8axk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302307; c=relaxed/simple; bh=InxDUcooDtR2CgNPYDO8XdrOv3YH6aAhSyMwKmgv3x0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=C7TYb2QLH/GXNOA9/dwN9Y4GTDEAWJXwa5UyMuFCfnOCKuUPlhl06Q9v4TYKVNy0NCglUn7Ojeoq6OV8CNKtooayslY/fyzH4HYr4V1uTTU3Y+beN7Ov0KycQnM9DStO2tVS2Bv4cmcYKz0paqH+jhIKa2RE4pkGG8hox+LVvYw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Liyqwm7x; 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="Liyqwm7x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 368F3C2BD11; Tue, 21 May 2024 14:38:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302306; bh=InxDUcooDtR2CgNPYDO8XdrOv3YH6aAhSyMwKmgv3x0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Liyqwm7xt4jltzsA2Nv22fTqm201RzCI0yxwuxWn7Rp7w6olU0Q71zzAOxCZ/7GrR cBaTHPDtim14IckqjHjghzkBfJU4O1S3BW10TY0yfR7/xNNxh5IQ11vw1XcF3iedSA K6i40Hupx4CryXXFt3QF7VtwK8pTP/6OJdStq8qU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47311: net: qcom/emac: fix UAF in emac_remove Date: Tue, 21 May 2024 16:35:45 +0200 Message-ID: <2024052129-CVE-2021-47311-47f4@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=2698; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=InxDUcooDtR2CgNPYDO8XdrOv3YH6aAhSyMwKmgv3x0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+Gw2PJX7u0dAMDb1eW3WHb8em/kRNqa3T1yk4H0l9d rPr3ruPHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARk8UM8ytP7FY1O52h0bDz fvv/u+dttTWuT2NYMPOZ6Tkpnld/gnYW18j8uqgn1XLPEwA= 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: qcom/emac: fix UAF in emac_remove adpt is netdev private data and it cannot be used after free_netdev() call. Using adpt 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-47311 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit 54e19bc74f33 and fixed in 4.9.277 with commit 4d04a42b926e Issue introduced in 4.9 with commit 54e19bc74f33 and fixed in 4.14.241 with commit b1e091331920 Issue introduced in 4.9 with commit 54e19bc74f33 and fixed in 4.19.199 with commit 11e9d163d631 Issue introduced in 4.9 with commit 54e19bc74f33 and fixed in 5.4.135 with commit 2b70ca92847c Issue introduced in 4.9 with commit 54e19bc74f33 and fixed in 5.10.53 with commit b560521eca03 Issue introduced in 4.9 with commit 54e19bc74f33 and fixed in 5.13.5 with commit 8a225a6e07a5 Issue introduced in 4.9 with commit 54e19bc74f33 and fixed in 5.14 with commit ad297cd2db89 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-47311 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/qualcomm/emac/emac.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/4d04a42b926e682140776e54188f4a44f1f01a81 https://git.kernel.org/stable/c/b1e091331920f8fbfc747dcbd16263fcd71abb2d https://git.kernel.org/stable/c/11e9d163d631198bb3eb41a677a61b499516c0f7 https://git.kernel.org/stable/c/2b70ca92847c619d6264c7372ef74fcbfd1e048c https://git.kernel.org/stable/c/b560521eca03d0a2db6093a5a632cbdd0a0cf833 https://git.kernel.org/stable/c/8a225a6e07a57a1538d53637cb3d82bd3e477839 https://git.kernel.org/stable/c/ad297cd2db8953e2202970e9504cab247b6c7cb4