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 B402F7EEF8 for ; Tue, 21 May 2024 15:06: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=1716303988; cv=none; b=Qz9FnDqmKSBtp/zlvbxNCnKyBQ8xiNmpCtaqs1eFAOZF3jFZzxznhbmlQYHF1irusz+KHCrOH5mR8KDkeWajtul06J+TQ2p3NUWMYdtYYlnhTEUpgwYL7+rt3PSLKBmz71rmQXBUDYY4ngyPcR/Ha4Xl/3hnm2NZvRBGP2DbtTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716303988; c=relaxed/simple; bh=7qm0suRs1/RrrL/AT0oH047STHjmxwY20xe5/YCmli0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cMiXbH2hoTNHbOzEXL4OgwcOAH3foUskk37gGqgX3wlUsX/neUDnUIdroynirtqz0xFJMmh/89XBDd4j8uV0+vp1/UKzIrw+56TZvnksU25Im6CAsILgT3GOpv/BYhzXorCM4SPOqdYf/VEtTAQ00FZxIsHBXgGyhQ9CQtU08MM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=A51wduax; 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="A51wduax" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A5ACC2BD11; Tue, 21 May 2024 15:06:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716303988; bh=7qm0suRs1/RrrL/AT0oH047STHjmxwY20xe5/YCmli0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=A51wduaxAoGlLCCfXTL9jFjemiZRRRyWpbAkM+vgnLqG2U0W8NTocoIUYkZo4u3VI q8cFf6gD+Yi0v+ajp/HUpJLF4vB+FvSSkyvpeHSHk7HLwG2WmZKqjyvzaaZy4d5+TB fvAErCxfMJwLyXzkyNUNKet1F04M73R9oqytYCQM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47377: xen/balloon: use a kernel thread instead a workqueue Date: Tue, 21 May 2024 17:03:54 +0200 Message-ID: <2024052142-CVE-2021-47377-8c20@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=2931; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7qm0suRs1/RrrL/AT0oH047STHjmxwY20xe5/YCmli0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+28/Ne8q0aNcMkYhcIUXean3Vf/uPcbgs7s1gl89ZN 63jxbV3HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRvnCG+alfvbbt+3HnlLKT tqDDwfcah0594mSYw8lbuO/xEsGjrj+sJieyGxSsOZbmDQA= 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/balloon: use a kernel thread instead a workqueue Today the Xen ballooning is done via delayed work in a workqueue. This might result in workqueue hangups being reported in case of large amounts of memory are being ballooned in one go (here 16GB): BUG: workqueue lockup - pool cpus=6 node=0 flags=0x0 nice=0 stuck for 64s! Showing busy workqueues and worker pools: workqueue events: flags=0x0 pwq 12: cpus=6 node=0 flags=0x0 nice=0 active=2/256 refcnt=3 in-flight: 229:balloon_process pending: cache_reap workqueue events_freezable_power_: flags=0x84 pwq 12: cpus=6 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: disk_events_workfn workqueue mm_percpu_wq: flags=0x8 pwq 12: cpus=6 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: vmstat_update pool 12: cpus=6 node=0 flags=0x0 nice=0 hung=64s workers=3 idle: 2222 43 This can easily be avoided by using a dedicated kernel thread for doing the ballooning work. The Linux kernel CVE team has assigned CVE-2021-47377 to this issue. Affected and fixed versions =========================== Fixed in 4.14.249 with commit c5d5a43dd2b6 Fixed in 4.19.209 with commit 6bba79c6a073 Fixed in 5.4.150 with commit 29917bbb07c3 Fixed in 5.10.70 with commit 372d3e6ea1e1 Fixed in 5.14.9 with commit 922fd5b6bb13 Fixed in 5.15 with commit 8480ed9c2bbd 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-47377 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/xen/balloon.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/c5d5a43dd2b649a0a290bfed00fb76d1aff89be6 https://git.kernel.org/stable/c/6bba79c6a073741b672b0bf86a1f03c0fe47f973 https://git.kernel.org/stable/c/29917bbb07c30be295dece245c7c21872e1a6fbb https://git.kernel.org/stable/c/372d3e6ea1e115942fdfb4b25f7003d822d071be https://git.kernel.org/stable/c/922fd5b6bb13ad31ff36e86e2eba2f26d8135272 https://git.kernel.org/stable/c/8480ed9c2bbd56fc86524998e5f2e3e22f5038f6