# CVE-2026-139298

- Bağlantı: https://www.allsafe.com.tr/cve-2026-139298/
- Yayımlanma: 2026-11-30T17:18:53+03:00
- Yazar: Postmaster

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

bpf: Don't take a program with a target program for an iterator

bpf_iter_prog_supported() goes by the name of the attach function. Commit
 7cc639dc45c5("
bpf: Don't take an extension for an iterator program") keeps out extensions, for
which that is the name of a function of another program. A tracing program with 
BPF_TRACE_ITER that is loaded with attach_prog_fd gets there as well: unlike for
BPF_TRACE_RAW_TP, bpf_check_attach_target() does not mind the target program.

If the function is called like that of an iterator target, bpf_iter_bpf_map
 for
example, its id in the BTF of the program is cached as the id of the target, even
if the load fails later. Programs of that target which are loaded already cannot
be attached any more. And the program itself can be attached as an iterator of that
target, with a context that the verifier has taken from the prototype of that function:

 BUG: KASAN: stack-out-of-bounds in bpf_prog_66d4234e2e50f5b6_ts26_forged+0x12a/
0x20b
 Read of size 8 at addr ffffc90000d9fc48 by task ts26/104

Refuse every program that has a target program. That covers extensions.

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-139298)
