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 460E21E884 for ; Fri, 15 Mar 2024 20:15:36 +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=1710533737; cv=none; b=UhuF49XGk9E71h7Vh6D/IZWDfjZCvG1yL+8bb3yydP74NY32MHedse9tW7SZh7ta+d6D8ad3AEiRDH3cBlF1WA2lvyXA8Y52OPFZXlGJQ06cJVj393UY+RWSm29/zdyQhiyippTYaS4gtUvPLp86o/W5WYWy63w379pSt0MX598= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710533737; c=relaxed/simple; bh=UMliAEtAOmkZjtgZuTKsjs81it66uE0o9Z8QO/GQROU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J+p+WuRiPrOflT4lbBq02htcKf3pX5K3pa6DId2PdaSPY6oUH6aActOehBuBv/sqJUvl+4GtS2V63q4/KjKRTZzeA6F8TAt3IGXYRLhKK9lv15fpxCkWYdq0N4gm1yKbWfU4Ket8NtvImspV6Iw1fXU/JR4/syH7rFDRHK33Tak= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=axVcg9yA; 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="axVcg9yA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8508EC433C7; Fri, 15 Mar 2024 20:15:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1710533736; bh=UMliAEtAOmkZjtgZuTKsjs81it66uE0o9Z8QO/GQROU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=axVcg9yADZdCIEs8VkmcDRQPltDLzcf8Wd1+GZ1H04peafv2TKVWoVr5fdG7zNBAL kYLQYJV8MCNHIUGFeR55E0qQk6tb5eGNK61ogBrvnZ+YRLbz7SlRG5fDl5kkHjQEmx bqElHOEtqfptwMBQy72vlNVjvZz/zoYBbwHCFngk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47111: xen-netback: take a reference to the RX task thread Date: Fri, 15 Mar 2024 21:15:01 +0100 Message-ID: <2024031506-CVE-2021-47111-4bd0@gregkh> X-Mailer: git-send-email 2.44.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=2311; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UMliAEtAOmkZjtgZuTKsjs81it66uE0o9Z8QO/GQROU=; b=owGbwMvMwCRo6H6F97bub03G02pJDKlf1nip7r9XOv/Q6q9SHJpLfmzSkpnz88bE5hMbeScrH 2C+wHd2V0csC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMxD6XYQ7fSonTXlcYRTas lL++82Xh5ht2KqwMC+YbHzH4/kLkQI7k5BUyJ2oPqVsangUA 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: xen-netback: take a reference to the RX task thread Do this in order to prevent the task from being freed if the thread returns (which can be triggered by the frontend) before the call to kthread_stop done as part of the backend tear down. Not taking the reference will lead to a use-after-free in that scenario. Such reference was taken before but dropped as part of the rework done in 2ac061ce97f4. Reintroduce the reference taking and add a comment this time explaining why it's needed. This is XSA-374 / CVE-2021-28691. The Linux kernel CVE team has assigned CVE-2021-47111 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 2ac061ce97f4 and fixed in 5.10.43 with commit 6b53db8c4c14 Issue introduced in 5.5 with commit 2ac061ce97f4 and fixed in 5.12.10 with commit caec9bcaeb1a Issue introduced in 5.5 with commit 2ac061ce97f4 and fixed in 5.13 with commit 107866a8eb0b Please see https://www.kernel.org or 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-47111 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/xen-netback/interface.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/6b53db8c4c14b4e7256f058d202908b54a7b85b4 https://git.kernel.org/stable/c/caec9bcaeb1a5f03f2d406305355c853af10c13e https://git.kernel.org/stable/c/107866a8eb0b664675a260f1ba0655010fac1e08