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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-24T16:30:25.232Z
- Modified: 2026-10-19T20:19:01.583Z
- Weaknesses: CWE-416, CWE-825
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 4ac4546821584736798aaa9e97da9f6eaf689ea3 before 239cec25a22662dbd80f57d94b38178c8be95269; from 4ac4546821584736798aaa9e97da9f6eaf689ea3 before d0862de7c866c5bd7c32531f66738c21197af888; from 4ac4546821584736798aaa9e97da9f6eaf689ea3 before 43683bb280330f3d36f0f2a3932a4867b9603e9c; from 4ac4546821584736798aaa9e97da9f6eaf689ea3 before d8e27d2d22b6e2df3a0125b8c08e9aace38c954c; 6.7 (not affected: before 6.7; from 6.12.91 up to 6.12.*; from 6.18.33 up to 6.18.*; from 7.0.10 up to 7.0.*; from 7.1 up to *)
- kernel: no versions given
- kernel-rt: no versions given
- linux linux_kernel: from 6.7 before 6.12.91; from 6.13 before 6.18.33; from 6.19 before 7.0.10

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/239cec25a22662dbd80f57d94b38178c8be95269> (patch)
- <https://git.kernel.org/stable/c/d0862de7c866c5bd7c32531f66738c21197af888> (patch)
- <https://git.kernel.org/stable/c/43683bb280330f3d36f0f2a3932a4867b9603e9c> (patch)
- <https://git.kernel.org/stable/c/d8e27d2d22b6e2df3a0125b8c08e9aace38c954c> (patch)
- <https://access.redhat.com/security/cve/CVE-2026-53085> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2492404> (issue-tracking, third-party-advisory)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-53085.json> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-53085](https://www.cve.org/CVERecord?id=CVE-2026-53085), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-53085](https://nvd.nist.gov/vuln/detail/CVE-2026-53085), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-53085 · Whole record: https://cve.day/CVE-2026-53085.json · Rebuilt by cve.day 2026-11-25T22:59:25.689Z
