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 8BD652FF151 for ; Tue, 13 Jan 2026 15:31:51 +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=1768318311; cv=none; b=BeAWVgFtKgZeDrbtsNs0yiONF82V2ubw7FRiIi/v3GM6PB1YPZ3ntomW/vqydKYAf6h3y/g9eXOTcFC7+xtW712+KWQw26hgdlDlw0mKWaU4sSRyQ80eyHiU28Ib1GJ6177BV124DKAOJFtRR3L+5rxpKwZvczh62ZXPwaPvXIc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318311; c=relaxed/simple; bh=WGafNo7jGzPJKrr6655YSIoKZsWRZQht0NHjYclUxfI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=G3fG/vIBTmUlAGvhaIEGDlv2dGR9pduKyPW/rdX0oSrK6s/Uib5iyYzvkHIhG758ONiXr3KD9TGVv5dg1qpvsT9xKVDS2OUkhS1H7ktxX/VVL/quidjw0Cw6ICvq9CKpSK3gIztnKJveYt3txl+gCsYqtoCkUOW6EsItHzbYPEg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=poZwpMuH; 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="poZwpMuH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12563C116C6; Tue, 13 Jan 2026 15:31:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768318311; bh=WGafNo7jGzPJKrr6655YSIoKZsWRZQht0NHjYclUxfI=; h=From:To:Cc:Subject:Date:Reply-To:From; b=poZwpMuH0MSqkOQp1uOPtLzivwStqau4/Pj7hOr1zZ/8RmN4rPynHgZcnqcRKLchE DkWJir8kVzr1bfiecOD6qVXvOMligV3P8isT7jyEMRlYwNEfxE1RtKIrD3PW0159fp 16XycjE1CZLqtw0edwp8IZ2WlmR/j1QgBQXIFcsA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68794: iomap: adjust read range correctly for non-block-aligned positions Date: Tue, 13 Jan 2026 16:29:20 +0100 Message-ID: <2026011305-CVE-2025-68794-32db@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=2454; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Wc5hoXQlfp7f6+zsYMfg3L6AL1iWVS2ctLeLe4jSuTg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlpKYc8U5tZbJqOqdyeK3lVe9vGZ7zTZ4bLl037yftY+ 2JEvVBURywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE+CzDgnkXl5vwPP5ZtOf1 FdUZHhv2+opu+Mwwz+DnyQqe/XmnskWMLsZlTD+S36+2DQA= 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: iomap: adjust read range correctly for non-block-aligned positions iomap_adjust_read_range() assumes that the position and length passed in are block-aligned. This is not always the case however, as shown in the syzbot generated case for erofs. This causes too many bytes to be skipped for uptodate blocks, which results in returning the incorrect position and length to read in. If all the blocks are uptodate, this underflows length and returns a position beyond the folio. Fix the calculation to also take into account the block offset when calculating how many bytes can be skipped for uptodate blocks. The Linux kernel CVE team has assigned CVE-2025-68794 to this issue. Affected and fixed versions =========================== Fixed in 6.6.120 with commit 82b60ffbb532d919959702768dca04c3c0500ae5 Fixed in 6.12.64 with commit 12053695c8ef5410e8cc6c9ed4c0db9cd9c82b3e Fixed in 6.18.3 with commit 142194fb21afe964d2d194cab1fc357cbf87e899 Fixed in 6.19-rc1 with commit 7aa6bc3e8766990824f66ca76c19596ce10daf3e 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-68794 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: fs/iomap/buffered-io.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/82b60ffbb532d919959702768dca04c3c0500ae5 https://git.kernel.org/stable/c/12053695c8ef5410e8cc6c9ed4c0db9cd9c82b3e https://git.kernel.org/stable/c/142194fb21afe964d2d194cab1fc357cbf87e899 https://git.kernel.org/stable/c/7aa6bc3e8766990824f66ca76c19596ce10daf3e