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 03FFF2E2DD2 for ; Wed, 1 Oct 2025 11:53:00 +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=1759319580; cv=none; b=Hj4oqMa1ZTwL1RACWU7SMRn/FyGaoOc2H+8Sw+OpBm1dsfLlDSRtN+4qGtneUOc8QfEUra5+azm7quRUFOPJRXHI7usu3XJNuOHSy2/oKPuJLlqdFMtjLqOMoBWv8Rnbw+B8GNV944Ipg7qUwMzT0x+cvX2+Og3TQZv0/oZjg7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319580; c=relaxed/simple; bh=ZqsU6xZ7hBMlbyDpwSRu5krooOaOrqWKTkATHMRvkIs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QIX7bV0/PjsY6r0RsWnj7BbJSefV65vgfqGxeysTPLISlbti1EJelx0NH8W1DoG9IXyrypF4xZRwJt0hvxXydRGm0xjUisW+wAEO84a4YbzvPiCYT3lhZ+3DAta+A2Ce0KiviXgk5VxEic4C56puOs2nsL9EiOHj/aoAaXBrlkI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P6rIvybP; 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="P6rIvybP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 632D0C4CEF4; Wed, 1 Oct 2025 11:52:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319579; bh=ZqsU6xZ7hBMlbyDpwSRu5krooOaOrqWKTkATHMRvkIs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=P6rIvybPvQDO+v/j42ZRdfcfAmSUw9MiMFHUZ/XnrtUbacVKcqr1QbbrdJDXYpQdc CA1nQpt60MSlfYuh/uvapEHq3Ym8fXZIxi1ZMKMTgJcl40pZ6s0FCk4V0SVWmq9y0u XnFbQizYzx3hVv9qeS5nltPUbPYMQE+UqXqQNgf8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53461: io_uring: wait interruptibly for request completions on exit Date: Wed, 1 Oct 2025 13:42:31 +0200 Message-ID: <2025100106-CVE-2023-53461-b02b@gregkh> X-Mailer: git-send-email 2.51.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=3121; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Tqwdne57plD1G3T4Qcku6SeBljEUhd05MHoy3odDqSg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3hftE5VbPk76eKnjFacLBbbozOKYGuwXl3tYxW9Jv+ +JIaidzRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkKS/DgmnVsed/6zdUidkd U5rhc87J7qyLL8OCrR+0LO/eTfjLMv3w8l4VHvEXtxTOAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: io_uring: wait interruptibly for request completions on exit WHen the ring exits, cleanup is done and the final cancelation and waiting on completions is done by io_ring_exit_work. That function is invoked by kworker, which doesn't take any signals. Because of that, it doesn't really matter if we wait for completions in TASK_INTERRUPTIBLE or TASK_UNINTERRUPTIBLE state. However, it does matter to the hung task detection checker! Normally we expect cancelations and completions to happen rather quickly. Some test cases, however, will exit the ring and park the owning task stopped (eg via SIGSTOP). If the owning task needs to run task_work to complete requests, then io_ring_exit_work won't make any progress until the task is runnable again. Hence io_ring_exit_work can trigger the hung task detection, which is particularly problematic if panic-on-hung-task is enabled. As the ring exit doesn't take signals to begin with, have it wait interruptibly rather than uninterruptibly. io_uring has a separate stuck-exit warning that triggers independently anyway, so we're not really missing anything by making this switch. The Linux kernel CVE team has assigned CVE-2023-53461 to this issue. Affected and fixed versions =========================== Fixed in 5.10.188 with commit 28e649dc9947e6525c95e32aa9a8e147925e3f56 Fixed in 5.15.121 with commit 8e29835366138389bfad3b31ea06960d0a77bf77 Fixed in 6.1.39 with commit b50d6e06cca7b67a3d73ca660dda27662b76e6ea Fixed in 6.4.4 with commit 58e80cb68b057e974768792c34708c6957810486 Fixed in 6.5 with commit 4826c59453b3b4677d6bf72814e7ababdea86949 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-2023-53461 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: io_uring/io_uring.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/28e649dc9947e6525c95e32aa9a8e147925e3f56 https://git.kernel.org/stable/c/8e29835366138389bfad3b31ea06960d0a77bf77 https://git.kernel.org/stable/c/b50d6e06cca7b67a3d73ca660dda27662b76e6ea https://git.kernel.org/stable/c/58e80cb68b057e974768792c34708c6957810486 https://git.kernel.org/stable/c/4826c59453b3b4677d6bf72814e7ababdea86949