<?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://vulnerability.circl.lu</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>Sat, 03 Oct 2026 06:31:55 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-72043 — LoongArch: Fix missing dirty page tracking in {pte,pmd}_wrprotect()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-72043</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;LoongArch: Fix missing dirty page tracking in {pte,pmd}_wrprotect()&lt;/p&gt;
&lt;p&gt;When hardware page table walker (PTW) is enabled on LoongArch, the CPU
may set _PAGE_DIRTY directly in the page table entry during a write TLB
miss, without going through the software TLB store handler. The software
TLB store handler (tlbex.S:254) sets both _PAGE_DIRTY and_PAGE_MODIFIED
together:&lt;/p&gt;
&lt;p&gt;ori t0, t0, (_PAGE_VALID | _PAGE_DIRTY | _PAGE_MODIFIED)&lt;/p&gt;
&lt;p&gt;Since hardware PTW only sets _PAGE_DIRTY, the software-only bit, i.e.
_PAGE_MODIFIED is left unchanged. This creates a window where a PTE has
_PAGE_DIRTY set (hardware knows the page is dirty) but _PAGE_MODIFIED
clear (software is unaware).&lt;/p&gt;
&lt;p&gt;When fork()/clone() triggers copy-on-write, __copy_present_ptes() calls
pte_wrprotect(), which unconditionally clears both the _PAGE_WRITE and
_PAGE_DIRTY bits:&lt;/p&gt;
&lt;p&gt;pte_val(pte) &amp;amp;= ~(_PAGE_WRITE | _PAGE_DIRTY);&lt;/p&gt;
&lt;p&gt;Since _PAGE_MODIFIED was never set, the dirtiness information is lost
completely. Subsequently, when memory pressure triggers page reclaim,
page_mkclean() / try_to_unmap() sees the page as clean (i.e. pte_dirty()
returns false) and the page may be freed without writeback, causing data
corruption.&lt;/p&gt;
&lt;p&gt;Fix this by propagating the _PAGE_DIRTY bit to the _PAGE_MODIFIED bit in
both pte_wrprotect() and pmd_wrprotect() before clearing writeable bits:&lt;/p&gt;
&lt;p&gt;if (pte_val(pte) &amp;amp; _PAGE_DIRTY)
        pte_val(pte) |= _PAGE_MODIFIED;&lt;/p&gt;
&lt;p&gt;The pmd_wrprotect() fi…&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;LoongArch: Fix missing dirty page tracking in {pte,pmd}_wrprotect()&lt;/p&gt;
&lt;p&gt;When hardware page table walker (PTW) is enabled on LoongArch, the CPU
may set _PAGE_DIRTY directly in the page table entry during a write TLB
miss, without going through the software TLB store handler. The software
TLB store handler (tlbex.S:254) sets both _PAGE_DIRTY and_PAGE_MODIFIED
together:&lt;/p&gt;
&lt;p&gt;ori t0, t0, (_PAGE_VALID | _PAGE_DIRTY | _PAGE_MODIFIED)&lt;/p&gt;
&lt;p&gt;Since hardware PTW only sets _PAGE_DIRTY, the software-only bit, i.e.
_PAGE_MODIFIED is left unchanged. This creates a window where a PTE has
_PAGE_DIRTY set (hardware knows the page is dirty) but _PAGE_MODIFIED
clear (software is unaware).&lt;/p&gt;
&lt;p&gt;When fork()/clone() triggers copy-on-write, __copy_present_ptes() calls
pte_wrprotect(), which unconditionally clears both the _PAGE_WRITE and
_PAGE_DIRTY bits:&lt;/p&gt;
&lt;p&gt;pte_val(pte) &amp;amp;= ~(_PAGE_WRITE | _PAGE_DIRTY);&lt;/p&gt;
&lt;p&gt;Since _PAGE_MODIFIED was never set, the dirtiness information is lost
completely. Subsequently, when memory pressure triggers page reclaim,
page_mkclean() / try_to_unmap() sees the page as clean (i.e. pte_dirty()
returns false) and the page may be freed without writeback, causing data
corruption.&lt;/p&gt;
&lt;p&gt;Fix this by propagating the _PAGE_DIRTY bit to the _PAGE_MODIFIED bit in
both pte_wrprotect() and pmd_wrprotect() before clearing writeable bits:&lt;/p&gt;
&lt;p&gt;if (pte_val(pte) &amp;amp; _PAGE_DIRTY)
        pte_val(pte) |= _PAGE_MODIFIED;&lt;/p&gt;
&lt;p&gt;The pmd_wrprotect() fi…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-72043</guid>
    </item>
  </channel>
</rss>
