{"id":"CVE-2026-64508","summary":"bpf: Support for hardening against JIT spraying","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Support for hardening against JIT spraying\n\nThe BPF JIT allocator packs many small programs into larger executable\nallocations and reuses space within those allocations as programs are\nloaded and freed. When fresh code is written into space that a previous\nprogram occupied, an indirect jump into the new program can reuse a branch\nprediction left behind by the old one.\n\nFlush the indirect branch predictors before reusing JIT memory so that\nindirect jumps into a newly written program don't reuse predictions from an\nold program that occupied the same space.\n\nIntroduce bpf_arch_pred_flush_enabled static key and bpf_arch_pred_flush\nstatic call for flushing the branch predictors on JIT memory reuse.\nArchitectures that need a flush, can update it to a predictor flush\nfunction. By default, its a NOP and does not emit any CALL.\n\nAllocations larger than a pack are not covered by this flush. That is safe\nbecause cBPF programs (the unprivileged attack surface) are bounded well\nbelow a pack size. Issue a warning if this assumption is ever violated\nwhile the flush is active.","modified":"2026-07-28T04:03:09.855766155Z","published":"2026-07-25T08:52:01.732Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64508.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/6e52c240c43a601b681e3a4e58fc5685114d4726"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7a6c171c6a1ac6d1509752dac131d941a3de0b37"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8ff183ee4d8c452960df58175a094828c0513b2e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/96cce16e26dd02a8678f1e87f88a4b5cdb63b995"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eed774da601268dae674e14d54a15e3624691f52"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64508.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64508"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.7.5"}