CVE-2026-64508

Source
https://cve.org/CVERecord?id=CVE-2026-64508
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64508.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64508
Downstream
Published
2026-07-25T08:52:01.732Z
Modified
2026-07-28T04:03:09.855766155Z
Summary
bpf: Support for hardening against JIT spraying
Details

In the Linux kernel, the following vulnerability has been resolved:

bpf: Support for hardening against JIT spraying

The BPF JIT allocator packs many small programs into larger executable allocations and reuses space within those allocations as programs are loaded and freed. When fresh code is written into space that a previous program occupied, an indirect jump into the new program can reuse a branch prediction left behind by the old one.

Flush the indirect branch predictors before reusing JIT memory so that indirect jumps into a newly written program don't reuse predictions from an old program that occupied the same space.

Introduce bpfarchpredflushenabled static key and bpfarchpred_flush static call for flushing the branch predictors on JIT memory reuse. Architectures that need a flush, can update it to a predictor flush function. By default, its a NOP and does not emit any CALL.

Allocations larger than a pack are not covered by this flush. That is safe because cBPF programs (the unprivileged attack surface) are bounded well below a pack size. Issue a warning if this assumption is ever violated while the flush is active.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64508.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
57631054fae6dcc9c892ae6310b58bbb6f6e5048
Fixed
6e52c240c43a601b681e3a4e58fc5685114d4726
Fixed
eed774da601268dae674e14d54a15e3624691f52
Fixed
8ff183ee4d8c452960df58175a094828c0513b2e
Fixed
7a6c171c6a1ac6d1509752dac131d941a3de0b37
Fixed
96cce16e26dd02a8678f1e87f88a4b5cdb63b995

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64508.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.18.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.97
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64508.json"