riscv, bpf: Fix kernel stack corruption in tailcall with CFI
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.12, 6.18.52, 7.2.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 30a59cc79754fd9ff3f41b7ee2eb21da85988548 · fixed in 34b1bb33a025787e05f966e74de18cd36276f801; From 30a59cc79754fd9ff3f41b7ee2eb21da85988548 · fixed in a6e11a81da3420fd37f1518d4f238c4d5784086e; From 30a59cc79754fd9ff3f41b7ee2eb21da85988548 · fixed in 52fb1756ea1d2759dfef2d86245be00b05dac3a2; From 6.11.6 · fixed in 6.12
- Linux Linux
6.12
- KernelLinux
From 6.12.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6