{"id":"CVE-2026-143107","summary":"fs/proc: fix the write length returned by proc_sys_call_handler()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/proc: fix the write length returned by proc_sys_call_handler()\n\nproc_sys_call_handler() reads the write length from iov_iter_count() and\ncopies that many bytes from the iterator into kbuf.  A cgroup/sysctl BPF\nprogram can replace the new value through bpf_sysctl_set_new_value() and\nupdate count to the length of the replacement value.  The handler then\nreturns that adjusted count as the number of bytes written, even though\nthe iterator originally held a different number of bytes.\n\nIf the replacement value is longer than the original input, -\u003ewrite_iter()\nreports more bytes than the iterator held.  splice(2) passes that value to\niter_file_splice_write(), which subtracts it from the pipe length and\nwalks past the pipe head:\n\n  Splice Exceeded! ret=7 tot=1 left=0\n  Oops: general protection fault\n  RIP: 0010:iter_file_splice_write+0xb6f/0x1170\n\nThe write path consumes at most the original iterator length in\ncopy_from_iter_full() before the BPF hook runs.  Return the smaller of the\nadjusted and original counts on the write path, so an expanded BPF value\ncannot exceed the iterator while a handler that reports a shorter parsed\nlength still produces a short write.  The read path keeps using the\nadjusted count for copy_to_iter().","modified":"2026-12-03T11:00:27.744874718Z","published":"2026-12-03T09:19:23.749Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143107.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/320b18a1d5fc8e3d1c0bc9bc85bad9f385febe02"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5bbe4236551e90b6dc1726c1dc90938c983019f4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c8384cc688e7c22ad955369dad56e98503b93f82"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d53648ba26a19a7b9941baeaf29e3ce5eccda467"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fbdc020ee1b82079102e493aaa7200de5f497a38"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ff5b00fdf78b7bd95b651beb9ea704a0be8d5be7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143107.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143107"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"4e63acdff864654cee0ac5aaeda3913798ee78f6"},{"fixed":"5bbe4236551e90b6dc1726c1dc90938c983019f4"},{"fixed":"320b18a1d5fc8e3d1c0bc9bc85bad9f385febe02"},{"fixed":"d53648ba26a19a7b9941baeaf29e3ce5eccda467"},{"fixed":"ff5b00fdf78b7bd95b651beb9ea704a0be8d5be7"},{"fixed":"c8384cc688e7c22ad955369dad56e98503b93f82"},{"fixed":"fbdc020ee1b82079102e493aaa7200de5f497a38"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143107.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.0"},{"fixed":"5.10.276"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143107.json"}}],"schema_version":"1.9.2"}