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 1DD0D1E5B7D for ; Wed, 16 Apr 2025 14:18:37 +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=1744813117; cv=none; b=TgiOMZM1Tt+EclvofL45G1oK7X/u1H4TDIus6pXfPjjEfX9HJrLKoGPcRajI44ZFH8KVgoyL3vHP8JmM927SpbhznutYL4jJMjjb+LlQLFogfbcpTBYF88T0X6QL290bIH52buap/ANzZ2UNb4XNxRGp3cc3CCfbiZZ2YAesakw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744813117; c=relaxed/simple; bh=HTFWTQAvCIrnSh7pzCHbBTJRCmfTLnPm1iF71YqohTg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IMKazCoo4LUDuLNp2HCfsYZzH3XY5PO9ERPzRgT5bQ+KoJpQ71oGTfiX/KUNY4vMyiwicj2E/MH7qESeHjvY3VHFqLQnCpLYYa7uMxt/0zVdS7NT6gEfU1Soo0TYec6oYbW5gD2VmbuLGHwta3VcCjQE6cvInF4g93i66ji22Zw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FJzq3t19; 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="FJzq3t19" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81DABC4CEE4; Wed, 16 Apr 2025 14:18:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744813117; bh=HTFWTQAvCIrnSh7pzCHbBTJRCmfTLnPm1iF71YqohTg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FJzq3t19hwrDwm+SCF+RRov2rpu4XYO11NGVlP6QP5K/pNQbT8LeEKwxF0bU8B5Ll 75dRsIy0QjpiwQmVxw0t7WsvKh3OmabhAyKTf4HrQewgdKlDfRkF3dCmgFQkvTaexH jbPoJXM9It/XsSG/hYH8J28TYthPcFP77cj4VTA4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22122: block: fix adding folio to bio Date: Wed, 16 Apr 2025 16:13:33 +0200 Message-ID: <2025041628-CVE-2025-22122-c2d1@gregkh> X-Mailer: git-send-email 2.49.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=2061; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HTFWTQAvCIrnSh7pzCHbBTJRCmfTLnPm1iF71YqohTg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d52RPaUsHmm+Rnqxs14P637HNOnoEJVsdc9L/ZcY9 ddtWbOpI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaSe41hnl4hfwXfhsMJfGYC dsrB4u3XA0NOM8yvD5Zc/WLm7yOmq+Um+Njxhi0IfykBAA== 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: block: fix adding folio to bio >4GB folio is possible on some ARCHs, such as aarch64, 16GB hugepage is supported, then 'offset' of folio can't be held in 'unsigned int', cause warning in bio_add_folio_nofail() and IO failure. Fix it by adjusting 'page' & trimming 'offset' so that `->bi_offset` won't be overflow, and folio can be added to bio successfully. The Linux kernel CVE team has assigned CVE-2025-22122 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit ed9832bc08db29874600eb066b74918fe6fc2060 and fixed in 6.14.2 with commit b96e0af1b1c99cb7e6188b6fa4963a4e47beb01e Issue introduced in 6.12 with commit ed9832bc08db29874600eb066b74918fe6fc2060 and fixed in 6.15-rc1 with commit 26064d3e2b4d9a14df1072980e558c636fb023ea 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-22122 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: block/bio.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/b96e0af1b1c99cb7e6188b6fa4963a4e47beb01e https://git.kernel.org/stable/c/26064d3e2b4d9a14df1072980e558c636fb023ea