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 6FCE213B7A3 for ; Thu, 27 Feb 2025 02:08:46 +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=1740622127; cv=none; b=rQH+/IcT08pAQpA1TZYXCX/AKyZkz1/S9eBZNqvSrkTVzrKCcSzaB7UA+Joi/Id28aCuQnaUDtlYta9qGGqVbQlkJN9WY8h6Ssl929CDrp0CFxlJVoVzuF/Lssw3FtgAv2T8N1r/uoez3igSa4sFpwQUwbAkqrVRL0i3nFbNKEQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622127; c=relaxed/simple; bh=8/h66BZxJ5+QbUHS8uoXRI9LuGUpP7xXurcs80fQSDY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V9ErwebMyZglN5j02Ybc9mGLFnF5dU+picwx1ahuGxNSE35LJTsQRPph+nYHX+r0w+eGuV3Ef/jIWqjYmhuFDpgoXq8vBrsa7M5kPeXqbj5NG71bsS0HBJHSNzJrx4xbpIT+uNxT/bmk6wE0TlXajhVOi9Dm1Wc2MG0lFMk+TeE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Vw3XmRqc; 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="Vw3XmRqc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D903DC4CED6; Thu, 27 Feb 2025 02:08:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622125; bh=8/h66BZxJ5+QbUHS8uoXRI9LuGUpP7xXurcs80fQSDY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Vw3XmRqcKSliqzNnEjrHjd5xhWZQ2lMUU6C5c76Td+ubzXHk6SjftrwrGj9VosWuS m2tWx4gmniKhPa73RPEZTGtpfTYXpCGsQUtFSw3vpwRZGnXA6Vec7Ibj6U0MVguBon tAVa9lBmDm6qienIr6ApzufKoZXEpLZ7tcqKQk2Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-58000: io_uring: prevent reg-wait speculations Date: Wed, 26 Feb 2025 18:05:59 -0800 Message-ID: <2025022642-CVE-2024-58000-4f74@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=2281; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8/h66BZxJ5+QbUHS8uoXRI9LuGUpP7xXurcs80fQSDY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T5Rd3mKyfuHTxIRHqcclEjbFsml/vRhjqHi3ZbdEi /+TnbJsHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR0QMMC05HnkzJe+6Rq/Mq /r2s6+EmVheVXwwLdvJl2jQ4nNqkzdkhZz558btbbYZFAA== 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: prevent reg-wait speculations With *ENTER_EXT_ARG_REG instead of passing a user pointer with arguments for the waiting loop the user can specify an offset into a pre-mapped region of memory, in which case the [offset, offset + sizeof(io_uring_reg_wait)) will be intepreted as the argument. As we address a kernel array using a user given index, it'd be a subject to speculation type of exploits. Use array_index_nospec() to prevent that. Make sure to pass not the full region size but truncate by the maximum offset allowed considering the structure size. The Linux kernel CVE team has assigned CVE-2024-58000 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit aa00f67adc2c0d6439f81b5a81ff181377c47a7e and fixed in 6.13.2 with commit 2a6de94df7bfa76d9850443547e7b3333f63a16a Issue introduced in 6.13 with commit aa00f67adc2c0d6439f81b5a81ff181377c47a7e and fixed in 6.14-rc1 with commit 29b95ac917927ce9f95bf38797e16333ecb489b1 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-58000 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/2a6de94df7bfa76d9850443547e7b3333f63a16a https://git.kernel.org/stable/c/29b95ac917927ce9f95bf38797e16333ecb489b1