{"id":"CVE-2026-74354","aliases":["CVE-2026-74354"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Take mmap_lock in zap_pages()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Take mmap_lock in zap_pages()\n\nzap_vma_range() requires the owning mm's mmap_lock to be held.\n\nTaking mmap_read_lock under arena->lock would AB-BA against\narena_vm_close() and arena_map_mmap(), both of which run with\nmmap_write_lock held and then acquire arena->lock. Instead drop\narena->lock, mmget_not_zero() the vma's mm, take mmap_read_lock, and\nre-resolve the vma via find_vma() since it may have been unmapped or\nreplaced while waiting.\n\nTrack processed vmls with a per-call generation in vml->zap_gen and\nserialize zap_pages() callers with a new arena->zap_mutex so\nconcurrent callers on different uaddr ranges do not mark each other's\nvmls processed before the zap is done.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Take mmap_lock in zap_pages()\n\nzap_vma_range() requires the owning mm's mmap_lock to be held.\n\nTaking mmap_read_lock under arena->lock would AB-BA against\narena_vm_close() and arena_map_mmap(), both of which run with\nmmap_write_lock held and then acquire arena->lock. Instead drop\narena->lock, mmget_not_zero() the vma's mm, take mmap_read_lock, and\nre-resolve the vma via find_vma() since it may have been unmapped or\nreplaced while waiting.\n\nTrack processed vmls with a per-call generation in vml->zap_gen and\nserialize zap_pages() callers with a new arena->zap_mutex so\nconcurrent callers on different uaddr ranges do not mark each other's\nvmls processed before the zap is done.","source":"cvelist"}],"published":"2026-08-15T05:58:40.067Z","modified":"2026-10-16T19:17:41.137Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"317460317a02a1af512697e6e964298dedd8a163","fixed":"36b1d997866f6083d33934983aa2ce0a184ed642","status":"affected"},{"type":"git","introduced":"317460317a02a1af512697e6e964298dedd8a163","fixed":"80b89d0226a05e8b67969de99c31b51fcd54f76a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"7.1.5","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/36b1d997866f6083d33934983aa2ce0a184ed642","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80b89d0226a05e8b67969de99c31b51fcd54f76a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T18:54:18.946Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74354","url":"https://www.cve.org/CVERecord?id=CVE-2026-74354","licence":"CVE Terms of Use","modified":"2026-10-16T18:55:34.866Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74354","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74354","licence":"Public domain","modified":"2026-10-16T19:17:41.137Z"}],"updatedAt":"2026-11-25T22:59:33.180Z","epss":{"score":0.0012,"percentile":0.02046,"date":"2026-12-01T12:00:22.000Z"}}