{"id":"CVE-2026-31438","aliases":["CVE-2026-31438"],"related":[],"kind":"vulnerability","state":"published","title":"netfs: Fix kernel BUG in netfs_limit_iter() for ITER_KVEC iterators","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: Fix kernel BUG in netfs_limit_iter() for ITER_KVEC iterators\n\nWhen a process crashes and the kernel writes a core dump to a 9P\nfilesystem, __kernel_write() creates an ITER_KVEC iterator. This\niterator reaches netfs_limit_iter() via netfs_unbuffered_write(), which\nonly handles ITER_FOLIOQ, ITER_BVEC and ITER_XARRAY iterator types,\nhitting the BUG() for any other type.\n\nFix this by adding netfs_limit_kvec() following the same pattern as\nnetfs_limit_bvec(), since both kvec and bvec are simple segment arrays\nwith pointer and length fields. Dispatch it from netfs_limit_iter() when\nthe iterator type is ITER_KVEC.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: Fix kernel BUG in netfs_limit_iter() for ITER_KVEC iterators\n\nWhen a process crashes and the kernel writes a core dump to a 9P\nfilesystem, __kernel_write() creates an ITER_KVEC iterator. This\niterator reaches netfs_limit_iter() via netfs_unbuffered_write(), which\nonly handles ITER_FOLIOQ, ITER_BVEC and ITER_XARRAY iterator types,\nhitting the BUG() for any other type.\n\nFix this by adding netfs_limit_kvec() following the same pattern as\nnetfs_limit_bvec(), since both kvec and bvec are simple segment arrays\nwith pointer and length fields. Dispatch it from netfs_limit_iter() when\nthe iterator type is ITER_KVEC.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnetfs: Corrige un BUG del kernel en netfs_limit_iter() para iteradores ITER_KVEC\n\nCuando 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.\n\nSoluciona 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.","source":"nvd"}],"published":"2026-04-22T13:53:37.053Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"cae932d3aee55035a54415dcea8e7ecf2ec469b5","fixed":"18c2e20b42dd21db599e42d05ddaeeb647b2bb6d","status":"affected"},{"type":"git","introduced":"cae932d3aee55035a54415dcea8e7ecf2ec469b5","fixed":"4bc2d72c7695cedf6d4e1a558924903c2b28a78e","status":"affected"},{"type":"git","introduced":"cae932d3aee55035a54415dcea8e7ecf2ec469b5","fixed":"00d6df7115f6972370974212de9088087820802e","status":"affected"},{"type":"git","introduced":"cae932d3aee55035a54415dcea8e7ecf2ec469b5","fixed":"67e467a11f62ff64ad219dc6aa5459e132c79d14","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.8","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.8","fixed":"6.12.80"},{"status":"affected","introduced":"6.13","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/18c2e20b42dd21db599e42d05ddaeeb647b2bb6d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4bc2d72c7695cedf6d4e1a558924903c2b28a78e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/00d6df7115f6972370974212de9088087820802e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/67e467a11f62ff64ad219dc6aa5459e132c79d14","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:33:22.454Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31438","url":"https://www.cve.org/CVERecord?id=CVE-2026-31438","licence":"CVE Terms of Use","modified":"2026-11-05T21:33:51.565Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31438","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31438","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.261Z","epss":{"score":0.00127,"percentile":0.02578,"date":"2026-12-01T12:00:22.000Z"}}