CVE-2026-143107

Unknown

Last modified

CVE-2026-143107 is a vulnerability of currently unknown severity. In the Linux kernel, the following vulnerability has been resolved: fs/proc: fix the write length returned by proc_sys_call_handler() proc_sys_call_handler() reads the write length from iov_iter_count() and copies that many bytes from the iterator into kbuf. A cgroup/sysctl BPF program can replace the new value through bpf_sysctl_set_new_value() and update count to the length of the replacement value.

Description

In the Linux kernel, the following vulnerability has been resolved: fs/proc: fix the write length returned by proc_sys_call_handler() proc_sys_call_handler() reads the write length from iov_iter_count() and copies that many bytes from the iterator into kbuf. A cgroup/sysctl BPF program can replace the new value through bpf_sysctl_set_new_value() and update count to the length of the replacement value. The handler then returns that adjusted count as the number of bytes written, even though the iterator originally held a different number of bytes. If the replacement value is longer than the original input, ->write_iter() reports more bytes than the iterator held. splice(2) passes that value to iter_file_splice_write(), which subtracts it from the pipe length and walks past the pipe head: Splice Exceeded! ret=7 tot=1 left=0 Oops: general protection fault RIP: 0010:iter_file_splice_write+0xb6f/0x1170 The write path consumes at most the original iterator length in copy_from_iter_full() before the BPF hook runs. Return the smaller of the adjusted and original counts on the write path, so an expanded BPF value cannot exceed the iterator while a handler that reports a shorter parsed length still produces a short write. The read path keeps using the adjusted count for copy_to_iter().

Affected Software

Source: CNA advisory (CVE.org). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 4e63acdff864654cee0ac5aaeda3913798ee78f6, < 5bbe4236551e90b6dc1726c1dc90938c983019f4; >= 4e63acdff864654cee0ac5aaeda3913798ee78f6, < 320b18a1d5fc8e3d1c0bc9bc85bad9f385febe02; >= 4e63acdff864654cee0ac5aaeda3913798ee78f6, < d53648ba26a19a7b9941baeaf29e3ce5eccda467; >= 4e63acdff864654cee0ac5aaeda3913798ee78f6, < ff5b00fdf78b7bd95b651beb9ea704a0be8d5be7; >= 4e63acdff864654cee0ac5aaeda3913798ee78f6, < c8384cc688e7c22ad955369dad56e98503b93f82; >= 4e63acdff864654cee0ac5aaeda3913798ee78f6, < fbdc020ee1b82079102e493aaa7200de5f497a38
LinuxLinux5.2

References

Timeline

Published
Last Modified
Status
Received

Frequently Asked Questions

What is CVE-2026-143107?
In the Linux kernel, the following vulnerability has been resolved: fs/proc: fix the write length returned by proc_sys_call_handler() proc_sys_call_handler() reads the write length from iov_iter_count() and copies that many bytes from the iterator into kbuf. A cgroup/sysctl BPF program can replace the new value through bpf_sysctl_set_new_value() and update count to the length of the replacement value. The handler then returns that adjusted count as the number of bytes written, even though the iterator originally held a different number of bytes. If the replacement value is longer than the original input, ->write_iter() reports more bytes than the iterator held. splice(2) passes that value to iter_file_splice_write(), which subtracts it from the pipe length and walks past the pipe head: Splice Exceeded! ret=7 tot=1 left=0 Oops: general protection fault RIP: 0010:iter_file_splice_write+0xb6f/0x1170 The write path consumes at most the original iterator length in copy_from_iter_full() before the BPF hook runs. Return the smaller of the adjusted and original counts on the write path, so an expanded BPF value cannot exceed the iterator while a handler that reports a shorter parsed length still produces a short write. The read path keeps using the adjusted count for copy_to_iter().
How severe is CVE-2026-143107?
Severity scoring for CVE-2026-143107 is pending analysis.
How do I fix CVE-2026-143107?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-143107?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST