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 3AE6820DE8 for ; Wed, 19 Jun 2024 14:55:07 +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=1718808907; cv=none; b=GNqnK3COQwRXjrkgoBAnhLiVC/nlf17gC+iOLYVbuWYUaNSvCEHCcIfYVOYHUq9S670B6tn2I8ocEYg7ZhifiFjnrPepkrkoCA71tqudFT3LC8OIb3KC0sCodOAd/ePieHtt0TUUETNxLdv6HjNYasnsUT5Mc4DRJGNIgzTRa2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718808907; c=relaxed/simple; bh=CY1cH74e/HFICswQvLYwQYnbT23LWa5ihFeC6JehSBU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qqM+TqGlfFD5/OwO9RJFky4AfFaFjZJb3Rk1gaied6mDdAUkWEK5damYMPwnwXAhcQBQozfurcaRT1jJiLddSaIWscF5dAfgqPhdlVIDgBlsuE8x8clWQc+mFfav9wyVkwa/wdbIGfounRrQthLSznFDugHKiPHaFsCZXPZh5aM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y4+v/CG9; 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="Y4+v/CG9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A75C0C2BBFC; Wed, 19 Jun 2024 14:55:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718808907; bh=CY1cH74e/HFICswQvLYwQYnbT23LWa5ihFeC6JehSBU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Y4+v/CG9gT6bxh7taR9G9X1khiMtZKvz4Gq8JcNc7beHM8SR83UksAxoFUduvZdSW DnPoPYvkB/MksrICXtYPk1v/nNtt1p62j59YOj6RfcYcHbZD3FuVvZhum9CExiDw7b dWWRHgjzpasF/nBeXsFtokS1bCLaHDrr11cd5YtY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47575: xen/console: harden hvc_xen against event channel storms Date: Wed, 19 Jun 2024 16:54:14 +0200 Message-ID: <2024061914-CVE-2021-47575-a011@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=3070; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CY1cH74e/HFICswQvLYwQYnbT23LWa5ihFeC6JehSBU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFH8X+fLF0N7dxEVvsNeH6vL89a4MUC98cyjHTMbAJW /lJqnVpRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExESpFhwcqCOLEPhYEveYIn ts339+Dty5FfwrDg6INilV/Tr+nME7/wb9UMi//HZlh/BwA= 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/console: harden hvc_xen against event channel storms The Xen console driver is still vulnerable for an attack via excessive number of events sent by the backend. Fix that by using a lateeoi event channel. For the normal domU initial console this requires the introduction of bind_evtchn_to_irq_lateeoi() as there is no xenbus device available at the time the event channel is bound to the irq. As the decision whether an interrupt was spurious or not requires to test for bytes having been read from the backend, move sending the event into the if statement, as sending an event without having found any bytes to be read is making no sense at all. This is part of XSA-391 --- V2: - slightly adapt spurious irq detection (Jan Beulich) V3: - fix spurious irq detection (Jan Beulich) The Linux kernel CVE team has assigned CVE-2021-47575 to this issue. Affected and fixed versions =========================== Fixed in 4.4.296 with commit c7eaa5082bcc Fixed in 4.9.294 with commit 728389c21176 Fixed in 4.14.259 with commit 68b78f976ca4 Fixed in 4.19.222 with commit 57e46acb3b48 Fixed in 5.4.168 with commit 560e64413b4a Fixed in 5.10.88 with commit 8fa3a370cc2a Fixed in 5.15.11 with commit 153d1ea32722 Fixed in 5.16 with commit fe415186b43d 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-47575 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/tty/hvc/hvc_xen.c drivers/xen/events/events_base.c include/xen/events.h 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/c7eaa5082bccfc00dfdb500ac6cc86d6f24ca027 https://git.kernel.org/stable/c/728389c21176b2095fa58e858d5ef1d2f2aac429 https://git.kernel.org/stable/c/68b78f976ca47d52c03c41eded207a312e46b934 https://git.kernel.org/stable/c/57e46acb3b48ea4e8efb1e1bea2e89e0c6cc43e2 https://git.kernel.org/stable/c/560e64413b4a6d9bd6630e350d5f2e6a05f6ffe3 https://git.kernel.org/stable/c/8fa3a370cc2af858a9ba662ca4f2bd0917550563 https://git.kernel.org/stable/c/153d1ea3272209fc970116f09051002d14422cde https://git.kernel.org/stable/c/fe415186b43df0db1f17fa3a46275fd92107fe71