CVE-2026-139204

Not scored yetLast modified Nov 30, 2026

Description

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

bpf: Track borrowed iterator results by default

An open-coded iterator can return a struct pointer borrowed from its current element. The verifier has not tied such results to iterator state since the task_vma iterator was introduced, so a saved result can still be used after destroy. Commit bee9ef4a40a27 ("bpf: switch task_vma iterator from mmap_lock to per-VMA locks") also made next release the protection of the prior element. A later snapshot conversion made vm_file explicitly borrowed from that element.

Associate non-RCU, non-acquired struct results with the iterator reference by default. Invalidate dependents before next forks its NULL and non-NULL paths, while retaining the iterator itself. Let destroy propagate child-reference errors. Add KF_ITER_RET_INDEPENDENT for results that outlive the current element, preserving existing RCU and acquired-reference rules.

Trusted pointer field loads also need to preserve the source lifetime. Loading a trusted field does not acquire a reference to the pointed-to object. Set the field pointer's parent_id to the source's reference ID if the source is referenced, or inherit its parent_id if it is borrowed. This is a generic rule, including accesses unrelated to iterators. For example, the following access is now rejected:

file = bpf_get_task_exe_file(task); if (!file) return 0; inode = file->f_inode; bpf_put_file(file); ino = inode->i_ino;

The inode pointer borrows the file's lifetime. Releasing the acquired file reference removes that lifetime guarantee, so the verifier must invalidate the derived inode pointer as well. This does not imply that bpf_put_file() immediately frees the file or inode. Reading the inode while the file reference is held remains valid. Fields with independent RCU protection retain their existing lifetime rules.

For an iterator result, the same propagation keeps trusted fields such as vm_file and f_inode tied to the current element. Propagate the backing object's lifetime through dynptr construction too, so its descendants remain in the invalidation graph. Share the invalidation traversal between next and release, so advancing the iterator preserves its own reference.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139205In the Linux kernel, the following vulnerability has been resolved: bpf: Propagate btf_add_type() errors in btf_check_all_metas() btf_checCVE-2026-1392067.1In the Linux kernel, the following vulnerability has been resolved: net/sched: etf: initialise the sock_exterr_skb before filling it reporCVE-2026-139207In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: IPsec, Fix out-of-bounds comparison of neighbour keys mlx5eCVE-2026-139208In the Linux kernel, the following vulnerability has been resolved: net: sparx5: fix tx DCB index drift in fdma xmit sparx5_fdma_xmit() adCVE-2026-139209In the Linux kernel, the following vulnerability has been resolved: net: sparx5/lan969x: do not read past skb->len when injecting a frame CVE-2026-139216.5Insufficient validation of untrusted input in DeviceBoundSessionCredentials in Google Chrome prior to 150.0.7871.47 allowed a remote attackeCVE-2026-139210In the Linux kernel, the following vulnerability has been resolved: tcp: reject devmem tx with fastopen and repair tcp_sendmsg_locked() enCVE-2026-139211In the Linux kernel, the following vulnerability has been resolved: sctp: reject forged cookie peer_addr with unknown address family When CVE-2026-139212In the Linux kernel, the following vulnerability has been resolved: regulator: irq: freeze deferred hardware access during suspend The regCVE-2026-139213In the Linux kernel, the following vulnerability has been resolved: ASoC: amd: raven: Fix memory leak in acp3x_dma_close() acp3x_dma_open(CVE-2026-1392147.8In the Linux kernel, the following vulnerability has been resolved: perf: Fix UAF in attach_task_ctx_data() struct perf_ctx_data is RCU prCVE-2026-139215In the Linux kernel, the following vulnerability has been resolved: nsproxy: Fix cred leak in the error path of prepare_nsset() A task tha
CVE-2026-139204: Unscored | Vulnix