In the Linux kernel, the following vulnerability has been resolved: riscv, bpf: Fix kernel stack corruption in tailcall with CFI When CONFIG_CFI_CLANG is enabled, prog->bpf_func already skips the kcfi instruction during setup. Including it again in the tailcall jump offset causes it to jump over an extra 4 bytes, skipping the stack pointer adjustment, which will result in kernel stack corruption.
https://git.kernel.org/stable/c/a6e11a81da3420fd37f1518d4f238c4d5784086e
https://git.kernel.org/stable/c/52fb1756ea1d2759dfef2d86245be00b05dac3a2
https://git.kernel.org/stable/c/34b1bb33a025787e05f966e74de18cd36276f801