From mboxrd@z Thu Jan 1 00:00:00 1970 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 DDD9D12DD8E for ; Fri, 24 May 2024 15:13:06 +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=1716563586; cv=none; b=lyfvLiVHLzWF5ceqiJ+8/y/E6uQW4mduArHV03dfr7h/aKw7IzUWC6AjmssVvlL3ItE/LD+BNeOVwenp3rysE6RUaeittS0Qv1F1IDSlcAr28FmPs1LXJALBzjb89pIVze3YGeyJYDW2SuEdk7gCFkzwPMSAuM1kLeXcey4bPIY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563586; c=relaxed/simple; bh=MB+yQ/AFrSdkHVS63ly5Rtoczkk9aXGYnJ9JVCnTFdI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SujES94zl6Q6I1JNiUvMtpiwa92fvI4aiRwRW56QL1jinHD/z4VqTB+3yQX6x28TDtFzhk/pwRk62rlr7F+si2GCuUZZfsQTQZ4aY7yLDg3S9jfVkS2IzlRBXZww3MNmpsK4eI9+6VM3BPqKlwDbzjeKt9a56n3W3YgzCGOL5JM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=u/GCVJhg; 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="u/GCVJhg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67491C32789; Fri, 24 May 2024 15:13:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716563586; bh=MB+yQ/AFrSdkHVS63ly5Rtoczkk9aXGYnJ9JVCnTFdI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=u/GCVJhgys1Z15l99p4sCgg5R+VdqKi8YcBbJN8/wll8t8Xa97wvZTU+uJYMdWaFb furZM0RVBzgnd2m8ry2L7mOY+aMatV/gxumJ1kk0sfe/mSDOs+pOiWwJ2gFRzje98v elTwqmoQYMz0Ffgb6Kwc5XF22y3ZhGB6O/+SwoAw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47569: io_uring: fail cancellation for EXITING tasks Date: Fri, 24 May 2024 17:13:01 +0200 Message-ID: <2024052453-CVE-2021-47569-2d3a@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=2409; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MB+yQ/AFrSdkHVS63ly5Rtoczkk9aXGYnJ9JVCnTFdI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkB68oKrhTtVNv+x0nK5PPxZzfPW6fHPDt7+eJJaalJr y9PC8/Y3BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT2WXNML88gPuK/MEjGwK4 l+99mP7s0w2x1zsZ5nApHT7f/3/z54Nr/gu/O5t4+MJu8YsA 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: io_uring: fail cancellation for EXITING tasks WARNING: CPU: 1 PID: 20 at fs/io_uring.c:6269 io_try_cancel_userdata+0x3c5/0x640 fs/io_uring.c:6269 CPU: 1 PID: 20 Comm: kworker/1:0 Not tainted 5.16.0-rc1-syzkaller #0 Workqueue: events io_fallback_req_func RIP: 0010:io_try_cancel_userdata+0x3c5/0x640 fs/io_uring.c:6269 Call Trace: io_req_task_link_timeout+0x6b/0x1e0 fs/io_uring.c:6886 io_fallback_req_func+0xf9/0x1ae fs/io_uring.c:1334 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 We need original task's context to do cancellations, so if it's dying and the callback is executed in a fallback mode, fail the cancellation attempt. The Linux kernel CVE team has assigned CVE-2021-47569 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 89b263f6d56e and fixed in 5.15.6 with commit 3d2a1e68fd99 Issue introduced in 5.15 with commit 89b263f6d56e and fixed in 5.16 with commit 617a89484deb 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-47569 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: fs/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/3d2a1e68fd9904fdc1b02f2e7d40ca47df7ba39f https://git.kernel.org/stable/c/617a89484debcd4e7999796d693cf0b77d2519de