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 5644C12CD8B for ; Mon, 8 Dec 2025 00:47:32 +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=1765154852; cv=none; b=uSoKpJrg/p4BTUV6Ns80pNeBQ5cYm07cu02SMpgndmZjvcGV5LEFsT3x0LHbc5x/WEjTP5H2SqnGbbDp6ecxUz/mt+7gGx0VSy/eE69Uo1Bs2dz8xERXzR2B4AGv+/gjN+cLR/fu+5Mnfe9hmOdBq5OeKfWtNE1EwvnRK4nQ90U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765154852; c=relaxed/simple; bh=GhbViH0ixHpXrmNii8Icuccdc3883OnodBnxwX4tT1I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XL/53a0pp5H+w/OyG2CtsReTVbiqwzktcfCoE5dSflm9tJpCnFB02g2Ztno6OUw09KV+3L/G7b7hlsmgI0fmT7JLn/2DD6lQP1KzlfqGuiLpUyi6KDoDFiACDepxHAcE1uNcP1RM3/pCsT9zn54+LgH9HFeBPnvHsSA0u819pII= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e4Yt7tMC; 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="e4Yt7tMC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADC30C4CEFB; Mon, 8 Dec 2025 00:47:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765154852; bh=GhbViH0ixHpXrmNii8Icuccdc3883OnodBnxwX4tT1I=; h=From:To:Cc:Subject:Date:Reply-To:From; b=e4Yt7tMCYkKj0lKe+dKoZ2h2YoYrZZSFCg8EBsN+zvh8HcEFcZxdnSD87wjBL0hzq bhvwiARybkJf603JLGLh1g6BAfIw3hpODAthZbD196t5Zc4mNGg2GJPw3yCpVcUlBG Jz5Qwkf5cWU60znkyqSCEgX8FReV/CbIaYMjDdAg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40291: io_uring: fix regbuf vector size truncation Date: Mon, 8 Dec 2025 09:47:16 +0900 Message-ID: <2025120815-CVE-2025-40291-8752@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1953; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bps7HPxC7OEIkNOltQjPAAxt2P2YH7U/F010JJB0g+8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlmCsJrKuqvmPaZ1Nbs06rfpaPksk3FaaFb98ZE/UfPU hWUCs52xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwET8jzDMM5nKZXLc7MVrvaf8 Dez5r54GMOSoMCyY1fZglkffzuRVcnlPF205pueZ6loGAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: io_uring: fix regbuf vector size truncation There is a report of io_estimate_bvec_size() truncating the calculated number of segments that leads to corruption issues. Check it doesn't overflow "int"s used later. Rough but simple, can be improved on top. The Linux kernel CVE team has assigned CVE-2025-40291 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 9ef4cbbcb4ac3786a1a4164507511b76b2a572c5 and fixed in 6.17.8 with commit 826ce37a842633efe1bb763e4b13045d74060d72 Issue introduced in 6.15 with commit 9ef4cbbcb4ac3786a1a4164507511b76b2a572c5 and fixed in 6.18 with commit 146eb58629f45f8297e83d69e64d4eea4b28d972 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-2025-40291 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/rsrc.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/826ce37a842633efe1bb763e4b13045d74060d72 https://git.kernel.org/stable/c/146eb58629f45f8297e83d69e64d4eea4b28d972