CVE-2026-53085: bpf: fix mm lifecycle in open-coded task_vma iterator

Published Jun 24, 2026
·
Updated

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

bpf: fix mm lifecycle in open-coded taskvma iterator

The open-coded taskvma iterator reads task->mm locklessly and acquires mmapreadtrylock() but never calls mmget(). If the task exits concurrently, the mmstruct can be freed as it is not SLABTYPESAFEBYRCU, resulting in a use-after-free.

Safely read task->mm with a trylock on alloclock and acquire an mm reference. Drop the reference via bpfitermmputasync() in destroy() and error paths. bpfitermmputasync() is a local wrapper around mmputasync() with a fallback to mmput() on !CONFIGMMU.

Reject irqs-disabled contexts (including NMI) up front. Operations used by next() and destroy() (mmapreadunlock, bpfitermmputasync) take spinlocks with IRQs disabled (pool->lock, pilock). Running from NMI or from a tracepoint that fires with those locks held could deadlock.

A trylock on alloclock is used instead of the blocking tasklock() (gettaskmm) to avoid a deadlock when a softirq BPF program iterates a task that already holds its alloclock on the same CPU.

Affected Software

4 affected components
Linux Linux kernel
Linux Linux kernel>=6.7<6.12.91
Linux Linux kernel>=6.13<6.18.33
Linux Linux kernel>=6.19<7.0.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the open-coded task_vma iterator, reject IRQs-disabled contexts, including NMI, before taking locks; use a trylock on alloc_lock instead of blocking task_lock() when reading task->mm.

  2. Operational

    Ensure the open-coded task_vma iterator drops its mm reference through bpf_iter_mmput_async() in _destroy(), including the mmput() fallback on !CONFIG_MMU, and cover both normal and error paths.

Event History

Jun 24, 2026
CVE Published
via MITRE·04:30 PM
Data Sourced
via MITRE·04:30 PM
DescriptionSeverity
Data Sourced
via NVD·05:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·06:10 PM
DescriptionSeverityAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203