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 70E58524A5 for ; Fri, 17 May 2024 13:24:44 +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=1715952284; cv=none; b=mmoYqr9iOTO5z3kXy5LJc9WzJtclymolK4TXWzvcpj6aG7pemYwmWg6WKEgC9AjPFHsjF0yhuTjOuP/D6RqK1fAfFjTWxOaubnkO8a0jiJR2NJOdqPNMdXRX1SInbEesrElbC6hkwQreyoKJBOVOnp1vG9AvDi5fdQuuXNErpxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715952284; c=relaxed/simple; bh=F98l8hjJ2i9VMZLAn35qdEhuKQAR0y31xYUVb+R+7aU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YrvLZhoQYeqGf7hvu/5V/hGDnwf7hHeMCKjYZXUZX9p+z4vzwc3buAUaaCpCs3UVXwcCrCZHApkH7ZpgSBRBKx+y/GEuRg/tmTOu+hfqOrwWZhMbqNvQeQ+I0IhhvNz5gLU2E59HbdS8AAErZUc572Zbufr3+HnH12sE+PhZ+L8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kfWpGMRF; 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="kfWpGMRF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBEF7C2BD10; Fri, 17 May 2024 13:24:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715952284; bh=F98l8hjJ2i9VMZLAn35qdEhuKQAR0y31xYUVb+R+7aU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kfWpGMRFZzMkmQAstS9oXBnXP5FaPs5/dQyJRW00jfwYOKBiancH0rmx6Yvwt/jQq xb4jiO6P7O4itCliUnTsSAW8wpFrgNAzAGDpUabzJdEOFodaSzuY/c9a8zxZR3IkrD xwzNvjFsyyosYTnR88IN6i5wZK/MVFuVKQXPV8ms= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35820: io_uring: fix io_queue_proc modifying req->flags Date: Fri, 17 May 2024 15:24:00 +0200 Message-ID: <2024051744-CVE-2024-35820-6aa4@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=2101; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=F98l8hjJ2i9VMZLAn35qdEhuKQAR0y31xYUVb+R+7aU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuUQnzKy3mZAVn6zIWPO35XbAt6vfjWxdDvmxZ0TajO HW13xO9jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgI1wSGefqLbGaYBJWefqa5 4/eqRbfWxVwxVmNYcO1XZLeCv4HG+Zo/UhMzrbdrKcxZBwA= 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: fix io_queue_proc modifying req->flags With multiple poll entries __io_queue_proc() might be running in parallel with poll handlers and possibly task_work, we should not be carelessly modifying req->flags there. io_poll_double_prepare() handles a similar case with locking but it's much easier to move it into __io_arm_poll_handler(). The Linux kernel CVE team has assigned CVE-2024-35820 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 595e52284d24 and fixed in 6.7.12 with commit 51a490a7f63c Issue introduced in 6.7 with commit 595e52284d24 and fixed in 6.8.3 with commit 0ecb8919469e Issue introduced in 6.7 with commit 595e52284d24 and fixed in 6.9 with commit 1a8ec63b2b6c 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-2024-35820 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/poll.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/51a490a7f63cae0754120e7c04f4f47920bd48db https://git.kernel.org/stable/c/0ecb8919469e6d5c74eea24086b34ce1bda5aef7 https://git.kernel.org/stable/c/1a8ec63b2b6c91caec87d4e132b1f71b5df342be