<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 20 Nov 2026 21:23:05 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-99477 — fs/proc/task_mmu: pin mm_users in do_pagemap_scan()</title>
      <link>https://db.gcve.eu/vuln/cve-2026-99477</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;fs/proc/task_mmu: pin mm_users in do_pagemap_scan()&lt;/p&gt;
&lt;p&gt;The PAGEMAP_SCAN ioctl takes mmap_read_lock() on an mm obtained from
/proc/&amp;lt;pid&amp;gt;/pagemap without holding a reference to mm_users.&lt;/p&gt;
&lt;p&gt;proc_mem_open() deliberately grabs only mm_count, so a consumer that
touches the address space has to call mmget_not_zero() first.  Every other
consumer in this file does -- m_start(), do_procmap_query(),
show_smaps_rollup() and pagemap_read() -- but do_pagemap_scan() does not.&lt;/p&gt;
&lt;p&gt;Without that reference the target can reach exit_mmap() concurrently, and
exit_mmap() calls unmap_vmas() while holding mmap_lock only for reading,
which does not exclude the scanner.  For ordinary VMAs this is harmless,
as free_pgtables() and remove_vma() run afterwards under mmap_write_lock. 
A shared hugetlb VMA is different: __hugetlb_zap_end() frees the VMA&amp;#39;s
hugetlb_vma_lock inside the read-locked phase.&lt;/p&gt;
&lt;p&gt;walk_hugetlb_range() can therefore load vma-&amp;gt;vm_private_data, have the
lock freed underneath it, and then down_read() a freed rw_semaphore.  The
load happens before the freeing side clears the pointer, so this is a
use-after-free and not a NULL dereference.  Any unprivileged user can
reach it with no huge pages configured, as hugetlb_reserve_pages()
allocates the lock before the VM_NORESERVE early return.&lt;/p&gt;
&lt;p&gt;Pin mm_users across the scan, the way the other consumers do.  mmput()
from the exiting task can then no longer reach exit_mmap() while a walk…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;fs/proc/task_mmu: pin mm_users in do_pagemap_scan()&lt;/p&gt;
&lt;p&gt;The PAGEMAP_SCAN ioctl takes mmap_read_lock() on an mm obtained from
/proc/&amp;lt;pid&amp;gt;/pagemap without holding a reference to mm_users.&lt;/p&gt;
&lt;p&gt;proc_mem_open() deliberately grabs only mm_count, so a consumer that
touches the address space has to call mmget_not_zero() first.  Every other
consumer in this file does -- m_start(), do_procmap_query(),
show_smaps_rollup() and pagemap_read() -- but do_pagemap_scan() does not.&lt;/p&gt;
&lt;p&gt;Without that reference the target can reach exit_mmap() concurrently, and
exit_mmap() calls unmap_vmas() while holding mmap_lock only for reading,
which does not exclude the scanner.  For ordinary VMAs this is harmless,
as free_pgtables() and remove_vma() run afterwards under mmap_write_lock. 
A shared hugetlb VMA is different: __hugetlb_zap_end() frees the VMA&amp;#39;s
hugetlb_vma_lock inside the read-locked phase.&lt;/p&gt;
&lt;p&gt;walk_hugetlb_range() can therefore load vma-&amp;gt;vm_private_data, have the
lock freed underneath it, and then down_read() a freed rw_semaphore.  The
load happens before the freeing side clears the pointer, so this is a
use-after-free and not a NULL dereference.  Any unprivileged user can
reach it with no huge pages configured, as hugetlb_reserve_pages()
allocates the lock before the VM_NORESERVE early return.&lt;/p&gt;
&lt;p&gt;Pin mm_users across the scan, the way the other consumers do.  mmput()
from the exiting task can then no longer reach exit_mmap() while a walk…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-99477</guid>
    </item>
  </channel>
</rss>
