Skip to contentSkip to conversation

CVE-2026-98267: 9p: Fix v9fs_issue_write() to update i_size and remote_i_size

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

9p: Fix v9fs_issue_write() to update i_size and remote_i_size

Fix v9fs_issue_write() to update i_size and remote_i_size to the new size of the server file if we made it larger, using the start fpos and the count returned by p9_client_write() to calculate the new minimum file size.

This assumes that if the 9P server makes a short write (say it hits ENOSPC), a reduced count is returned.

The Linux kernel CVE team has assigned CVE-2026-98267 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.10 with commit 5fb70e7275a61dd404f684370e1add7fe0ebe9c5 and fixed in 6.12.112 with commit aeb1fe55583836744aef11fbfa2a09122aa9816c
	Issue introduced in 6.10 with commit 5fb70e7275a61dd404f684370e1add7fe0ebe9c5 and fixed in 6.18.54 with commit 88871ab548c1d7b11cde9b04063f3c1c6fbd7039
	Issue introduced in 6.10 with commit 5fb70e7275a61dd404f684370e1add7fe0ebe9c5 and fixed in 7.2.8 with commit 9cd92e3392bdd14568e9e44aec1ac05e1fcd62e5
	Issue introduced in 6.10 with commit 5fb70e7275a61dd404f684370e1add7fe0ebe9c5 and fixed in 7.3-rc4 with commit c60ae98c5aa64021751b38ab1313b19d620bf640

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-98267

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/9p/vfs_addr.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/aeb1fe55583836744aef11fbfa2a09122aa9816c
	https://git.kernel.org/stable/c/88871ab548c1d7b11cde9b04063f3c1c6fbd7039
	https://git.kernel.org/stable/c/9cd92e3392bdd14568e9e44aec1ac05e1fcd62e5
	https://git.kernel.org/stable/c/c60ae98c5aa64021751b38ab1313b19d620bf640