Linux
riscv, bpf: Fix kernel stack corruption in tailcall with CFI
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 30a59cc79754fd9ff3f41b7ee2eb21da85988548, < 34b1bb33a025787e05f966e74de18cd36276f801
- >= 30a59cc79754fd9ff3f41b7ee2eb21da85988548, < a6e11a81da3420fd37f1518d4f238c4d5784086e
- >= 30a59cc79754fd9ff3f41b7ee2eb21da85988548, < 52fb1756ea1d2759dfef2d86245be00b05dac3a2
- fe5b68fdcec0f3d97a32f4c4acfef59cf90718f7
- >= 6.11.6, < 6.12
Fixed in 34b1bb33a025787e05f966e74de18cd36276f801, a6e11a81da3420fd37f1518d4f238c4d5784086e, 52fb1756ea1d2759dfef2d86245be00b05dac3a2, 6.12
- 6.12
Fixed in 0, 6.18.52, 7.2.6, 7.3
Mitigation
Upgrade Linux to 34b1bb33a025787e05f966e74de18cd36276f801 or a6e11a81da3420fd37f1518d4f238c4d5784086e or 52fb1756ea1d2759dfef2d86245be00b05dac3a2 or 6.12 or later.
Upgrade Linux to 0 or 6.18.52 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.