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 C9C3F3D093C for ; Wed, 22 Apr 2026 13:54:58 +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=1776866098; cv=none; b=UvSSD7pSbh/bLAFZQ2jpLPg5pwSsqL+GiWhKX5ugNiXxbiOuvwBy4linEqvj8qY+5OHySRhLX5R2NdUYVQs8K/ZpgOWkROwfSK/uQUEnnSeMaWe+8wMWmvdV7jtoy74PBJ5aur2FBTSkLomAVcvPB+wFNAWtepGW75rF1PLjpCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866098; c=relaxed/simple; bh=wFLtUJCoR09XwzgL3C9rKKtv3JuLOr4uTuA3qQ/ZsfU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kGtc+uW/h8a4UgFnY7ALDrTHLeoxyZdzNnFWKPW6dbq+PgNerio0qDrutesAjzqBHvgiv1CXK1hNyBRbqrK0bAi9bwNQZqE6H1yfLHI+jg1YHerGTtPUwe659Ofb8JOkfyjM9kAtJC/8KEjZn7VBkw/b6n/TmGah92EFDypwbcg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DytodgNQ; 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="DytodgNQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4900BC2BCAF; Wed, 22 Apr 2026 13:54:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866097; bh=wFLtUJCoR09XwzgL3C9rKKtv3JuLOr4uTuA3qQ/ZsfU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=DytodgNQRbSu4WeFm/pyTdb9wVsJxkikyEcYuVqXr9aqZiyjAe5yipjHVRe27jwsD 4/FKy5ockvdmQ5W843TMzxwWw2IuL+Bh9ovYlWA1N9FzEWoUWb7FCYvs1kRuO3bAPc azPZSDckm9a1PbeUvIhBsWd+89u/tDg5FWIsR8cg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31438: netfs: Fix kernel BUG in netfs_limit_iter() for ITER_KVEC iterators Date: Wed, 22 Apr 2026 15:53:44 +0200 Message-ID: <2026042243-CVE-2026-31438-66c2@gregkh> X-Mailer: git-send-email 2.54.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=2785; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SkZvwjU6IfBj0lftOKj1+eIdn9exsjHKmYELJzMLJ/I=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLj2vWM2cUc9/kWXRdaVAm6MBcveWvju3p3g398n2S vludVfrjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjILFOGBUsrj7f+2yBy9Dbn Tr8PFsHeXMWsbxlmMfNMv/JN6lqz+rUzzPvcoy9/Zb/9EgA= 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: netfs: Fix kernel BUG in netfs_limit_iter() for ITER_KVEC iterators When a process crashes and the kernel writes a core dump to a 9P filesystem, __kernel_write() creates an ITER_KVEC iterator. This iterator reaches netfs_limit_iter() via netfs_unbuffered_write(), which only handles ITER_FOLIOQ, ITER_BVEC and ITER_XARRAY iterator types, hitting the BUG() for any other type. Fix this by adding netfs_limit_kvec() following the same pattern as netfs_limit_bvec(), since both kvec and bvec are simple segment arrays with pointer and length fields. Dispatch it from netfs_limit_iter() when the iterator type is ITER_KVEC. The Linux kernel CVE team has assigned CVE-2026-31438 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit cae932d3aee55035a54415dcea8e7ecf2ec469b5 and fixed in 6.12.80 with commit 18c2e20b42dd21db599e42d05ddaeeb647b2bb6d Issue introduced in 6.8 with commit cae932d3aee55035a54415dcea8e7ecf2ec469b5 and fixed in 6.18.21 with commit 4bc2d72c7695cedf6d4e1a558924903c2b28a78e Issue introduced in 6.8 with commit cae932d3aee55035a54415dcea8e7ecf2ec469b5 and fixed in 6.19.11 with commit 00d6df7115f6972370974212de9088087820802e Issue introduced in 6.8 with commit cae932d3aee55035a54415dcea8e7ecf2ec469b5 and fixed in 7.0 with commit 67e467a11f62ff64ad219dc6aa5459e132c79d14 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-31438 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/netfs/iterator.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/18c2e20b42dd21db599e42d05ddaeeb647b2bb6d https://git.kernel.org/stable/c/4bc2d72c7695cedf6d4e1a558924903c2b28a78e https://git.kernel.org/stable/c/00d6df7115f6972370974212de9088087820802e https://git.kernel.org/stable/c/67e467a11f62ff64ad219dc6aa5459e132c79d14