CVE-2026-31438
JSON

5.5medium

netfs: Fix kernel BUG in netfs_limit_iter() for ITER_KVEC iterators

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.13% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom cae932d3aee55035a54415dcea8e7ecf2ec469b5 before 18c2e20b42dd21db599e42d05ddaeeb647b2bb6d, from cae932d3aee55035a54415dcea8e7ecf2ec469b5 before 4bc2d72c7695cedf6d4e1a558924903c2b28a78e, from cae932d3aee55035a54415dcea8e7ecf2ec469b5 before 00d6df7115f6972370974212de9088087820802e, from cae932d3aee55035a54415dcea8e7ecf2ec469b5 before 67e467a11f62ff64ad219dc6aa5459e132c79d14, 6.8
Not affected: before 6.8, from 6.12.80 up to 6.12.*, from 6.18.21 up to 6.18.*, from 6.19.11 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.8 before 6.12.80, from 6.13 before 6.18.21, from 6.19 before 6.19.11, 7.0NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: netfs: Corrige un BUG del kernel en netfs_limit_iter() para iteradores ITER_KVEC Cuando un proceso falla y el kernel escribe un volcado de memoria en un sistema de archivos 9P, __kernel_write() crea un iterador ITER_KVEC. Este iterador llega a netfs_limit_iter() a través de netfs_unbuffered_write(), que solo maneja los tipos de iterador ITER_FOLIOQ, ITER_BVEC e ITER_XARRAY, alcanzando el BUG() para cualquier otro tipo. Soluciona esto añadiendo netfs_limit_kvec() siguiendo el mismo patrón que netfs_limit_bvec(), ya que tanto kvec como bvec son matrices de segmentos simples con campos de puntero y longitud. Despáchalo desde netfs_limit_iter() cuando el tipo de iterador sea ITER_KVEC.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31438 changed 2026-11-05CVE Terms of Use
NVDCVE-2026-31438 changed 2026-11-11Public domain