Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154572; b=HkNjskTPJ6UrBnTxV6SuBfrP86g3K1/Ne3rCzQnFgqpbn6c762Tgu2inF2YMeXI3F77N epJpF1Rtc0ghAhP0T6CBJ8Y59t1hZ+cAg3VIXgC+UYfRzGucBTklphqis24K6Ssdoqz7k GqRoS6q89map1+vost3EhnuDst99OhGVNn/m8oxr6S2QytjFAXULscJCOMY6qrK4ueOLP vbIc8YhImrdNYQx1rf9fKV3UL3Y1xJP+xP8246wrY37pNBG6YZjA3ES0P0pBr2W2Lwggo m/EaM+cOgdWSWVmCB8jbT85Fgtv555Id2b+JwIpex04VhZCK5d4P2/CIG+PpvQn/vIg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154572; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=/5nIUoazLVp+PEPjb8H6RJ7JUElMx9GQLbngafmJruk=; b=kw3+cMamJKlQRLHnKsScAd2waQ2kkTmPJtPMbZBx4xjSj242oDmvqDU3FJwpUV9M/8t9 5JQvKaN2lRhZDIQSBrid71Z+v0rccvtGdgDVc7WPzLtA3s91F8yA47frLVccN7yPzDAsw U3+URS7Tp2W5gp/1UKUFsgeLL4VvVc+ErH2KRA+muiNI+50ZqWFDL9XT+au5YnU/n/JNx AAObw8nHg5tJ/xTFfQGC3+bfSXI0zTwnqolYfXvzQBWT8ms+bt1TbQLWzNjIpLfOiQ3P3 asKK2Xf9QD8rD/mCg1DXm9noeG1njOXWcMugdDEVJaDvcqMIohqNKKD7XcZJJdmOiPQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=tuR86Bf6; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D053606A32A for ; Fri, 20 Nov 2026 06:02:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=tuR86Bf6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BD7C1F000D0; Fri, 20 Nov 2026 06:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154571; bh=/5nIUoazLVp+PEPjb8H6RJ7JUElMx9GQLbngafmJruk=; h=From:To:Cc:Subject:Date:Reply-To; b=tuR86Bf6wtY+jIPiDfiQwA1OkatqrR8KzyYTEY7m4DbXJOvjLrPKSkUH6WdKmKNOG duY/C021n4Sssva/pUWPgarz+o72IW5ONZ0yv54ERuKsgRBhegh6TJvqk3LcSm6tp+ nClBmrthfxLr1AW3M1rZDzx7n04IJ+HOjqdXEem4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99789: block: restore the iterator when rejecting a misaligned bio Date: Fri, 20 Nov 2026 06:52:55 +0100 Message-ID: <2026112035-CVE-2026-99789-1892@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2836; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=weyw9aFhF+mC1p+GLEKyV1BhGddpyqkjKGDPlz2AjGw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/76/2rizRPmnVILQgSfpS/n2DnOdn9ab7S0yXcTnmt GHCvKL9HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRf28ZFmyZ61HfIv/05rTK oBXy+cdldHm2b2OYH6S5/hl7UPiJIGMx/9vmrI78boWqAA== 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: block: restore the iterator when rejecting a misaligned bio bio_iov_iter_get_pages() can extract some iovecs before encountering a misaligned one. It releases the pages and rejects the entire bio, but leaves the supplied iterator advanced. An iomap direct-I/O caller may subsequently reexpand the iterator's byte count and fall back to buffered I/O. The reexpanded count then includes bytes before the iterator's current segment, potentially causing iterate_iovec() to read beyond the imported iovec array. In a reproducer using an initial empty iovec followed by 10-byte and 1015-byte segments, writev() returned 1015 instead of 1025 and KASAN reported an 8-byte read beyond the nine-element iovec allocation. Saving and restoring the iterator on the rejected-bio path makes writev() return 1025 and eliminates the KASAN report. Restore the entire iterator rather than reverting a byte count: advancing past an empty segment changes its position without consuming any bytes. Leave successful and partially accepted bio paths unchanged. The Linux kernel CVE team has assigned CVE-2026-99789 to this issue. Affected and fixed versions =========================== Issue introduced in 7.3 with commit 14b007e178811db72fbb1ebb3535160db6ec1e6a and fixed in 7.3.5 with commit 3a6381f254ed81d36f3896f61dcd5d830e08861d Issue introduced in 7.3 with commit 14b007e178811db72fbb1ebb3535160db6ec1e6a and fixed in 7.4-rc1 with commit 40d070cbb1906896d6fd65c39722d2411830ed9f Issue introduced in 7.2.4 with commit d44a97a3b1c00cc571245124e23e5ceb0a0225a0 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-2026-99789 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/3a6381f254ed81d36f3896f61dcd5d830e08861d https://git.kernel.org/stable/c/40d070cbb1906896d6fd65c39722d2411830ed9f