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 733BF34250F for ; Thu, 4 Dec 2025 14:14:24 +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=1764857664; cv=none; b=rDQo45czrBP8kDy9wkfNWoNCFlJHMQpU9FXZV7NiXZqYjlQJ1jov5DFKn/JTLBl9tI9hRPpw/M++7cBy1KslVZN26f/EWGJnRhk9V5aqj2gz25VKuGugmlZxtuiwsdRtetQmMI/Tx6b/EciCb6DDINK17nDtQbu4yCjpq3D1D/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764857664; c=relaxed/simple; bh=Hc9Y7+gVXkK2N4y9OTDsLu97XfVpMZ8WVwS2k+PhOUA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Bt3pr2Giu/XqDPD8vYslfmiBjhJJUHw2o//cat1s42C+YOYfH+3peHBd3UremMK3u7hF+Azxhwho4/o18Q0DUcA0z+Q9wQJT8u1r2TaJN3a4sWPHVUtqaWl/7EpsHkZnepxkG3asucYzhVaxjhru/bTnlJ3jZq0+T+PaxW3x5HM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yISkZJzA; 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="yISkZJzA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29369C16AAE; Thu, 4 Dec 2025 14:14:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764857663; bh=Hc9Y7+gVXkK2N4y9OTDsLu97XfVpMZ8WVwS2k+PhOUA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=yISkZJzA4+NYzasxHrXCHXuY2RxgiYYNi3D7Pst1mUw0j6AAQ26y0iXKICj3GzMLf Z3HiLA3yrMgoaXunu0XmL+QjJ2YVWlSlGaleLOb0I8EgN/rzh4NHvu00zlN2AUyT++ ccvlWR8b99VPw1lysk+Muwcv83+CWdbG3+ti3vkY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40216: io_uring/rsrc: don't rely on user vaddr alignment Date: Thu, 4 Dec 2025 15:14:18 +0100 Message-ID: <2025120417-CVE-2025-40216-d79f@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=2180; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hRlePp6Edk17OOm5eh1bTBmwJMLoVIAh2CE5f5ItIOY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmG0y0dpjs23wmZ6b/q9n6fspMTy+svs5yPikm2fmESe WXnjFXiHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRg/EMC9YqC3c+FNe/evhe ytK5hfGvtJ2KrzIsWHfp9Zy0C5kK0+ZU+122fC1hW/d6OQA= 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/rsrc: don't rely on user vaddr alignment There is no guaranteed alignment for user pointers, however the calculation of an offset of the first page into a folio after coalescing uses some weird bit mask logic, get rid of it. The Linux kernel CVE team has assigned CVE-2025-40216 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit a8edbb424b1391b077407c75d8f5d2ede77aa70d and fixed in 6.12.36 with commit 50998b0ae7d9d552e96d8b7239981cf05f65eff5 Issue introduced in 6.12 with commit a8edbb424b1391b077407c75d8f5d2ede77aa70d and fixed in 6.15.5 with commit f16769241594be59387b56ab525e327f54377e60 Issue introduced in 6.12 with commit a8edbb424b1391b077407c75d8f5d2ede77aa70d and fixed in 6.16 with commit 3a3c6d61577dbb23c09df3e21f6f9eda1ecd634b 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-40216 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 io_uring/rsrc.h 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/50998b0ae7d9d552e96d8b7239981cf05f65eff5 https://git.kernel.org/stable/c/f16769241594be59387b56ab525e327f54377e60 https://git.kernel.org/stable/c/3a3c6d61577dbb23c09df3e21f6f9eda1ecd634b