{"id":"CVE-2026-139628","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:19:45.847","lastModified":"2026-11-30T14:19:45.847","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["arch/riscv/net/bpf_jit_core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"e63985ecd22681c7f5975f2e8637187a326b6791","lessThan":"bc6c4dc3d16d64bd51fa9e8629e0db199bf857be","versionType":"git","status":"affected"},{"version":"e63985ecd22681c7f5975f2e8637187a326b6791","lessThan":"6d256cd19d8c9fe49ece8a398ff78e55719626ee","versionType":"git","status":"affected"},{"version":"e63985ecd22681c7f5975f2e8637187a326b6791","lessThan":"b31fef1d42ddcce4670e172eb9a381fcddbd051c","versionType":"git","status":"affected"},{"version":"e63985ecd22681c7f5975f2e8637187a326b6791","lessThan":"93df8ae3267f19bf0c1135d26a0e21145dd0ea1c","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["arch/riscv/net/bpf_jit_core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.9","status":"affected"},{"version":"0","lessThan":"6.9","versionType":"semver","status":"unaffected"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/6d256cd19d8c9fe49ece8a398ff78e55719626ee","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/93df8ae3267f19bf0c1135d26a0e21145dd0ea1c","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/b31fef1d42ddcce4670e172eb9a381fcddbd051c","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/bc6c4dc3d16d64bd51fa9e8629e0db199bf857be","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}