# CVE-2026-31438: netfs: Fix kernel BUG in netfs_limit_iter() for ITER_KVEC iterators

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-04-22T13:53:37.053Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 6.8 before 6.12.80; from 6.13 before 6.18.21; from 6.19 before 6.19.11; 7.0

## References

- <https://git.kernel.org/stable/c/18c2e20b42dd21db599e42d05ddaeeb647b2bb6d> (patch)
- <https://git.kernel.org/stable/c/4bc2d72c7695cedf6d4e1a558924903c2b28a78e> (patch)
- <https://git.kernel.org/stable/c/00d6df7115f6972370974212de9088087820802e> (patch)
- <https://git.kernel.org/stable/c/67e467a11f62ff64ad219dc6aa5459e132c79d14> (patch)

## Sources

- CVE List: [CVE-2026-31438](https://www.cve.org/CVERecord?id=CVE-2026-31438), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-31438](https://nvd.nist.gov/vuln/detail/CVE-2026-31438), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31438 · Whole record: https://cve.day/CVE-2026-31438.json · Rebuilt by cve.day 2026-11-25T22:59:19.261Z
