{"id":"CVE-2026-139628","aliases":["CVE-2026-139628"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free on riscv","summary":"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->bpf_func to\ncorrectly restore the original JITed allocation address before freeing.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->bpf_func to\ncorrectly restore the original JITed allocation address before freeing.","source":"cvelist"}],"published":"2026-11-30T13:36:30.474Z","modified":"2026-11-30T14:19:45.847Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e63985ecd22681c7f5975f2e8637187a326b6791","fixed":"bc6c4dc3d16d64bd51fa9e8629e0db199bf857be","status":"affected"},{"type":"git","introduced":"e63985ecd22681c7f5975f2e8637187a326b6791","fixed":"6d256cd19d8c9fe49ece8a398ff78e55719626ee","status":"affected"},{"type":"git","introduced":"e63985ecd22681c7f5975f2e8637187a326b6791","fixed":"b31fef1d42ddcce4670e172eb9a381fcddbd051c","status":"affected"},{"type":"git","introduced":"e63985ecd22681c7f5975f2e8637187a326b6791","fixed":"93df8ae3267f19bf0c1135d26a0e21145dd0ea1c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/bc6c4dc3d16d64bd51fa9e8629e0db199bf857be","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6d256cd19d8c9fe49ece8a398ff78e55719626ee","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b31fef1d42ddcce4670e172eb9a381fcddbd051c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/93df8ae3267f19bf0c1135d26a0e21145dd0ea1c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139628","url":"https://www.cve.org/CVERecord?id=CVE-2026-139628","licence":"CVE Terms of Use","modified":"2026-11-30T13:36:30.474Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139628","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139628","licence":"Public domain","modified":"2026-11-30T14:19:45.847Z"}],"updatedAt":"2026-11-30T14:33:12.229Z","epss":{"score":0.00168,"percentile":0.06387,"date":"2026-12-01T12:00:22.000Z"}}