{"id":"CVE-2026-139628","summary":"bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free on riscv","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Adjust bpf_func to account for CFI offset in bpf_jit_free on riscv\n\nWhen CFI is enabled, the actual BPF program entry point is shifted\nforward by a CFI preamble. During bpf_jit_free(), this shifted pointer\ncauses the wrong ro_header to be fetched, leading to a potential invalid\nmemory free.\n\nFix this by subtracting cfi_get_offset() from prog-\u003ebpf_func to\ncorrectly restore the original JITed allocation address before freeing.","modified":"2026-11-30T15:02:29.633248006Z","published":"2026-11-30T13:36:30.474Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139628.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6d256cd19d8c9fe49ece8a398ff78e55719626ee"},{"type":"WEB","url":"https://git.kernel.org/stable/c/93df8ae3267f19bf0c1135d26a0e21145dd0ea1c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b31fef1d42ddcce4670e172eb9a381fcddbd051c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bc6c4dc3d16d64bd51fa9e8629e0db199bf857be"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139628.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139628"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e63985ecd22681c7f5975f2e8637187a326b6791"},{"fixed":"bc6c4dc3d16d64bd51fa9e8629e0db199bf857be"},{"fixed":"6d256cd19d8c9fe49ece8a398ff78e55719626ee"},{"fixed":"b31fef1d42ddcce4670e172eb9a381fcddbd051c"},{"fixed":"93df8ae3267f19bf0c1135d26a0e21145dd0ea1c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139628.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.9.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139628.json"}}],"schema_version":"1.9.2"}