{"id":"CVE-2026-53084","summary":"bpf: return VMA snapshot from task_vma iterator","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: return VMA snapshot from task_vma iterator\n\nHolding the per-VMA lock across the BPF program body creates a lock\nordering problem when helpers acquire locks that depend on mmap_lock:\n\n  vm_lock -\u003e i_rwsem -\u003e mmap_lock -\u003e vm_lock\n\nSnapshot the VMA under the per-VMA lock in _next() via memcpy(), then\ndrop the lock before returning. The BPF program accesses only the\nsnapshot.\n\nThe verifier only trusts vm_mm and vm_file pointers (see\nBTF_TYPE_SAFE_TRUSTED_OR_NULL in verifier.c). vm_file is reference-\ncounted with get_file() under the lock and released via fput() on the\nnext iteration or in _destroy(). vm_mm is already correct because\nlock_vma_under_rcu() verifies vma-\u003evm_mm == mm. All other pointers\nare left as-is by memcpy() since the verifier treats them as untrusted.","modified":"2026-07-16T03:32:12.814746532Z","published":"2026-06-24T16:30:24.356Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53084.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/13860ca37b8df0b856ee1ce3bdbd7c327d5f53e8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4cbee026db54cad39c39db4d356100cb133412b3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/592226d138378601ae28eb890e2bbc23ec3600f7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/83b8802c034e843b83a3e1ef6f30cdd4e9ec291c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53084.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53084"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"4ac4546821584736798aaa9e97da9f6eaf689ea3"},{"fixed":"83b8802c034e843b83a3e1ef6f30cdd4e9ec291c"},{"fixed":"592226d138378601ae28eb890e2bbc23ec3600f7"},{"fixed":"13860ca37b8df0b856ee1ce3bdbd7c327d5f53e8"},{"fixed":"4cbee026db54cad39c39db4d356100cb133412b3"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-53084.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.91"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.33"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-53084.json"}}],"schema_version":"1.7.5"}