AZL-118118: CVE-2026-143107 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
fs/proc: fix the write length returned by procsyscallhandler()
procsyscallhandler() reads the write length from iovitercount() and copies that many bytes from the iterator into kbuf. A cgroup/sysctl BPF program can replace the new value through bpfsysctlsetnewvalue() 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, ->writeiter() reports more bytes than the iterator held. splice(2) passes that value to iterfilesplicewrite(), 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:iterfilesplicewrite+0xb6f/0x1170
The write path consumes at most the original iterator length in copyfromiterfull() 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 copytoiter().
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Systems running the affected Azure Linux kernel package version 6.6.161.1-1 are exposed when a cgroup/sysctl BPF program can modify a sysctl write value during the procfs write path. The described failure is triggered through splice(2) after the BPF replacement value is longer than the original input.
What does an attacker need to trigger the fault?
The attacker needs a path to use a cgroup/sysctl BPF program that calls bpf_sysctl_set_new_value() with a replacement value longer than the original write input. They also need to exercise the affected proc sysctl write path in a way that reaches splice(2).
What is the impact of successful exploitation?
The reported condition can cause iter_file_splice_write() to walk past the pipe head, resulting in an Oops and general protection fault. The provided information supports a kernel crash or denial-of-service impact.