CVE-2026-31438

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

State
Published
Severity
Not scored
Published
Apr 22, 2026
Updated
May 11, 2026
Reserved
Mar 9, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • cae932d3aee55035a54415dcea8e7ecf2ec469b5 to before 18c2e20b42dd21db599e42d05ddaeeb647b2bb6dAffected
  • cae932d3aee55035a54415dcea8e7ecf2ec469b5 to before 4bc2d72c7695cedf6d4e1a558924903c2b28a78eAffected
  • cae932d3aee55035a54415dcea8e7ecf2ec469b5 to before 00d6df7115f6972370974212de9088087820802eAffected
  • cae932d3aee55035a54415dcea8e7ecf2ec469b5 to before 67e467a11f62ff64ad219dc6aa5459e132c79d14Affected
LinuxLinux
  • 6.8Affected
  • before 6.8Not affected
  • 6.12.80 through 6.12.*Not affected
  • 6.18.21 through 6.18.*Not affected
  • 6.19.11 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.