A vulnerability in the Linux kernel's BPF subsystem on x86-64 architectures involving the bpf_throw() function with programs using a private stack has been fixed. The flaw causes incorrect register values to be returned to the kernel after bpf_throw() is called, leading to kernel crashes such as NULL pointer dereferences. This affects BPF programs with private stacks larger than 48 bytes, including tracepoint, raw_tp, perf_event, tracing, and struct_ops programs. The issue arises because the stack pointer used during exception handling is offset incorrectly by 8 bytes due to the handling of the r9 register in JITed code. The fix adjusts the stack pointer calculation to account for this offset.