{"id":"CVE-2026-53085","published":"2026-06-24T16:30:25Z","modified":"2026-10-19T19:47:16Z","title":"bpf: fix mm lifecycle in open-coded task_vma iterator","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: fix mm lifecycle in open-coded task_vma iterator\n\nThe open-coded task_vma iterator reads task->mm locklessly and acquires\nmmap_read_trylock() but never calls mmget(). If the task exits\nconcurrently, the mm_struct can be freed as it is not\nSLAB_TYPESAFE_BY_RCU, resulting in a use-after-free.\n\nSafely read task->mm with a trylock on alloc_lock and acquire an mm\nreference. Drop the reference via bpf_iter_mmput_async() in _destroy()\nand error paths. bpf_iter_mmput_async() is a local wrapper around\nmmput_async() with a fallback to mmput() on !CONFIG_MMU.\n\nReject irqs-disabled contexts (including NMI) up front. Operations used\nby _next() and _destroy() (mmap_read_unlock, bpf_iter_mmput_async)\ntake spinlocks with IRQs disabled (pool->lock, pi_lock). Running from\nNMI or from a tracepoint that fires with those locks held could\ndeadlock.\n\nA trylock on alloc_lock is used instead of the blocking task_lock()\n(get_task_mm) to avoid a deadlock when a softirq BPF program iterates\na task that already holds its alloc_lock on the same CPU.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00175,"percentile":0.04143,"provenance":"source"},"cwes":[{"id":"CWE-825","name":"Expired Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/239cec25a22662dbd80f57d94b38178c8be95269","tags":[]},{"url":"https://git.kernel.org/stable/c/d0862de7c866c5bd7c32531f66738c21197af888","tags":[]},{"url":"https://git.kernel.org/stable/c/43683bb280330f3d36f0f2a3932a4867b9603e9c","tags":[]},{"url":"https://git.kernel.org/stable/c/d8e27d2d22b6e2df3a0125b8c08e9aace38c954c","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-53085","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2492404","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-53085.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":0.83},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 4ac4546821584736798aaa9e97da9f6eaf689ea3, < 239cec25a22662dbd80f57d94b38178c8be95269",">= 4ac4546821584736798aaa9e97da9f6eaf689ea3, < d0862de7c866c5bd7c32531f66738c21197af888",">= 4ac4546821584736798aaa9e97da9f6eaf689ea3, < 43683bb280330f3d36f0f2a3932a4867b9603e9c",">= 4ac4546821584736798aaa9e97da9f6eaf689ea3, < d8e27d2d22b6e2df3a0125b8c08e9aace38c954c"]},{"vendor":"Linux","product":"Linux","versions":["6.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T15:25:24.795566Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-38953","exploited":false,"provenance":"source"}}