1. Home
  2. Vulnerabilities
  3. CVE-2026-53085

CVE-2026-53085

bpf: fix mm lifecycle in open-coded task_vma iterator

Published 24 Jun 2026 · modified 19 Oct 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Low 31/100

Summary

In the Linux kernel, the following vulnerability has been resolved: bpf: fix mm lifecycle in open-coded task_vma iterator The open-coded task_vma iterator reads task->mm locklessly and acquires mmap_read_trylock() but never calls mmget(). If the task exits concurrently, the mm_struct can be freed as it is not SLAB_TYPESAFE_BY_RCU, resulting in a use-after-free. Safely read task->mm with a trylock on alloc_lock and acquire an mm reference. Drop the reference via bpf_iter_mmput_async() in _destroy() and error paths. bpf_iter_mmput_async() is a local wrapper around mmput_async() with a fallback to mmput() on !CONFIG_MMU. Reject irqs-disabled contexts (including NMI) up front. Operations used by _next() and _destroy() (mmap_read_unlock, bpf_iter_mmput_async) take spinlocks with IRQs disabled (pool->lock, pi_lock). Running from NMI or from a tracepoint that fires with those locks held could deadlock. A trylock on alloc_lock is used instead of the blocking task_lock() (get_task_mm) to avoid a deadlock when a softirq BPF program iterates a task that already holds its alloc_lock on the same CPU.

Affected products and versions

Linux (4 line(s))
Linux
ProductVersionsFixed inSource
Linux 6.7 — CNA (vendor or assigner)
Linux kernel from 6.7 (included) to 6.12.91 (excluded) — NVD
Linux kernel from 6.13 (included) to 6.18.33 (excluded) — NVD
Linux kernel from 6.19 (included) to 7.0.10 (excluded) — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, CNA:416baaa9-dc9f-4396-8d5f-8c081fb06d67)
Weakness
CWE-416 · Corruption mémoire

How this data is obtained and calculated