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 ACA6BEEB5 for ; Mon, 24 Feb 2025 09:01:29 +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=1740387689; cv=none; b=UxJZIv2uRWhX+rVWUKiYSOvgviejoT8CDY8Mt/iwIcwk+VaEcG8mc0rQeAOnQNMCOsTj3m5/rNs80l5knt8bCvp9jZpsMmFQajSBwUM7ovJxMP3kE5mem5RvX1gNc5H4IMrL9IAkdYK7xV5Bfyy8b034vQjiJuS+FE0zmDdSX7M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740387689; c=relaxed/simple; bh=sdSoFY1/DeUvdzkHXPS5GY3CV61kWvtuUIG6QFV64lE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nQLFImTRWQBZYeItiWHvrlaxypYs1wBlE4hIH608UPO23Y0Gooy3zG1IgRnb//soyrlIDCry5f4qcwLaYaI0rb3xBo7UO3PeH9Wwm43DCA/PI5jgQlpwlReKWgI9lCmtEdBe9EKPLA6lAoLuoIBPXMBug98mYERV9lYDnQeD+EY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=C/0+v1py; 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="C/0+v1py" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C520AC4CED6; Mon, 24 Feb 2025 09:01:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740387689; bh=sdSoFY1/DeUvdzkHXPS5GY3CV61kWvtuUIG6QFV64lE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=C/0+v1pyDtTfn9RsmcJEyRZGKm7wIlnKkLNPzCSzIJVzW1lPmWp470ieIplnrlm6B ibTLEIq8mFz4/4IURZ7sLHAmnddZbs6Zt0OFXNe6b7qGjhLbgxduP2gPKpPjY66LUZ WKLnr2ig8nA3rUE64W7PpAuVG58oRYvXavHA3bI4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52926: io_uring/rw: split io_read() into a helper Date: Mon, 24 Feb 2025 10:00:17 +0100 Message-ID: <2025022416-CVE-2023-52926-7cb1@gregkh> X-Mailer: git-send-email 2.48.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=1921; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sdSoFY1/DeUvdzkHXPS5GY3CV61kWvtuUIG6QFV64lE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl7TBWWuy4SU7t7nWuWxR3OFclROaYHND33lFssWXa96 5P/F96IjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI+SWGBccPNHEXbjLidXhr dFCO79ORmb2edQzzI1UcL5eul7KeLsx0/H1/4+Ir2dZsAA== 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: IORING_OP_READ did not correctly consume the provided buffer list when read i/o returned < 0 (except for -EAGAIN and -EIOCBQUEUED return). This can lead to a potential use-after-free when the completion via io_rw_done runs at separate context. The Linux kernel CVE team has assigned CVE-2023-52926 to this issue. Affected and fixed versions =========================== Fixed in 6.1.122 with commit 72060434a14caea20925e492310d6e680e3f9007 Fixed in 6.6.68 with commit 6c27fc6a783c8a77c756dd5461b15e465020d075 Fixed in 6.7 with commit a08d195b586a217d76b42062f88f375a3eedda4d 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-52926 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/rw.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/72060434a14caea20925e492310d6e680e3f9007 https://git.kernel.org/stable/c/6c27fc6a783c8a77c756dd5461b15e465020d075 https://git.kernel.org/stable/c/a08d195b586a217d76b42062f88f375a3eedda4d