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 4BFD716C6BD for ; Wed, 21 Aug 2024 06:12:52 +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=1724220772; cv=none; b=rmzS51APvFrs098M21T70ZfGemWtEM2SDUxG4MEeIULW87nqWmFUrnIxC7MZcOjGlAH5IWg2UIWDO7cymToPTJtkFXjTHqa3/lWS0fxY/v12Q9imKugsUsB7z0asAfX5FItJEll5MiI1tJXdfQVv71C5jjjM5boxTA8Irs8jucw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220772; c=relaxed/simple; bh=ioX2ECTm58q9k1ueBP18S+IyWemjTRNElF9MED+sBRY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gW3QKxuLSXUwc4cPB5xmTqJFg7o8cXZtapf0SFuzDwTBjIsc1IGhnfBaZFSfkFtsYgisoUafKplksxw44v2g26Sb7p6MTt16gLzPkaklbTERxX52tJGXpKqaCHsxO+WqRXcvEXMx0zS4zpQ8TnxLZlh1mkECGPJPysa1dHvWeQ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tFPiRiRR; 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="tFPiRiRR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8AD4C32782; Wed, 21 Aug 2024 06:12:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220772; bh=ioX2ECTm58q9k1ueBP18S+IyWemjTRNElF9MED+sBRY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tFPiRiRRS6ijXl7MnVDL8srQTxXjZQa8/Lfpa+/618cMOcJRZO3O48Gzo31rLIykh lNJGBk+f72pPfz6ZfgN3OQAzNuloaHRqlKx9355XpPHXpTd1CL9irlJJ5sexpe3BKq FYh7/Ed4GXgE6ZjIihBq08VZMbozVNHb+FLeiS1M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52895: io_uring/poll: don't reissue in case of poll race on multishot request Date: Wed, 21 Aug 2024 14:11:36 +0800 Message-ID: <2024082111-CVE-2023-52895-5be2@gregkh> X-Mailer: git-send-email 2.46.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=2113; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ioX2ECTm58q9k1ueBP18S+IyWemjTRNElF9MED+sBRY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHWxlk1gQ8UVPouFIRv2WtpfPsNB33eLM/y0Ln/ONq3 tRadcurI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaSyckwv2aZ2sofhw/FH+nY fzNiySz5M7tCXzAs2LblbPlJl5WWz4olXfqeNLjK314WAwA= 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/poll: don't reissue in case of poll race on multishot request A previous commit fixed a poll race that can occur, but it's only applicable for multishot requests. For a multishot request, we can safely ignore a spurious wakeup, as we never leave the waitqueue to begin with. A blunt reissue of a multishot armed request can cause us to leak a buffer, if they are ring provided. While this seems like a bug in itself, it's not really defined behavior to reissue a multishot request directly. It's less efficient to do so as well, and not required to rearm anything like it is for singleshot poll requests. The Linux kernel CVE team has assigned CVE-2023-52895 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.7 with commit c06015ebc436 and fixed in 6.1.8 with commit 36fc7317cdb1 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-52895 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/36fc7317cdb16cfeae0f879916995037bb615ac4 https://git.kernel.org/stable/c/8caa03f10bf92cb8657408a6ece6a8a73f96ce13