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 405EC1F956 for ; Wed, 19 Jun 2024 14:54:28 +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=1718808869; cv=none; b=CsAtTM6v08AQIfXM21u4nIdlSlo6X9h7H2B9feLQGLfVqx9XW04S0Cm5vxkuUX0zrFOaMXG/k78cMI3qbgnf6M3e3c2gIsR7Q+vq4+0Uyw0tiARYPaSeKQmfBcaxuV5LE3CSc3VHklI1JQqMyzho7CHpx572ct1DNWd4eHM7ziE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718808869; c=relaxed/simple; bh=9J04ZmPpnORjRRAr15y5onqIwIG6OuZXaIbGWmXbzVw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k8fnUntCufWo+R8WEn/SWU3BBhLZ/XPWDSdpVa8LUfVHNf/7tBFwhFb+r4gpvnbf/MgITpnATwK9Q0U7GFV4p9AWwm7cGKu/uJpAVMzfGeWL84qfZqtT7iREN2EC+7UTTYD23bGJPrvdWbog4KAdp+zP/gfhb2clktpYrz+TEWQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tTflxLpM; 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="tTflxLpM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B5E5C2BBFC; Wed, 19 Jun 2024 14:54:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718808868; bh=9J04ZmPpnORjRRAr15y5onqIwIG6OuZXaIbGWmXbzVw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tTflxLpMxsTadVoioOWtrwoXpDd9GQKw3UZNxlSy1AHSb4/oRQLXiq3S58nBLALp4 zy3RlB1TsQDFwmoDNVswfKlAT7rTYib4hvgd2dSi9MyOSv2Un6ZSgvmDGVuYU3QWVB YyuoZlWgcKRU01y8RHqoAg4ozzjHnlkCXCyoChZA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47574: xen/netfront: harden netfront against event channel storms Date: Wed, 19 Jun 2024 16:54:13 +0200 Message-ID: <2024061914-CVE-2021-47574-18b4@gregkh> X-Mailer: git-send-email 2.45.2 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=2905; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9J04ZmPpnORjRRAr15y5onqIwIG6OuZXaIbGWmXbzVw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFH8Wk751q04ucljQrq/uL+zv53d+MBPKdzy7ktdRo7 JcpM1zXEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNZPIFhvv+82l2Tux5J14Rk yezkvVFknB8TzzA/15VfI8H2uNvJ9YIZukc+VF497vgXAA== 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/netfront: harden netfront against event channel storms The Xen netfront driver is still vulnerable for an attack via excessive number of events sent by the backend. Fix that by using lateeoi event channels. For being able to detect the case of no rx responses being added while the carrier is down a new lock is needed in order to update and test rsp_cons and the number of seen unconsumed responses atomically. This is part of XSA-391 --- V2: - don't eoi irq in case of interface set broken (Jan Beulich) - handle carrier off + no new responses added (Jan Beulich) V3: - add rx_ prefix to rsp_unconsumed (Jan Beulich) - correct xennet_set_rx_rsp_cons() spelling (Jan Beulich) The Linux kernel CVE team has assigned CVE-2021-47574 to this issue. Affected and fixed versions =========================== Fixed in 4.4.296 with commit 81900aa7d7a1 Fixed in 4.9.294 with commit 99120c8230fd Fixed in 4.14.259 with commit 4bf81386e3d6 Fixed in 4.19.222 with commit 3559ca594f15 Fixed in 5.4.168 with commit 3e68d099f09c Fixed in 5.10.88 with commit d31b3379179d Fixed in 5.15.11 with commit a29c8b5226ed Fixed in 5.16 with commit b27d47950e48 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-47574 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-netfront.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/81900aa7d7a130dec4c55b68875e30fb8c9effec https://git.kernel.org/stable/c/99120c8230fdd5e8b72a6e4162db9e1c0a61954a https://git.kernel.org/stable/c/4bf81386e3d6e5083c93d51eff70260bcec091bb https://git.kernel.org/stable/c/3559ca594f15fcd23ed10c0056d40d71e5dab8e5 https://git.kernel.org/stable/c/3e68d099f09c260a7dee28b99af02fe6977a9e66 https://git.kernel.org/stable/c/d31b3379179d64724d3bbfa87bd4ada94e3237de https://git.kernel.org/stable/c/a29c8b5226eda52e6d6ff151d9343558ea3ad451 https://git.kernel.org/stable/c/b27d47950e481f292c0a5ad57357edb9d95d03ba