<?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>Sun, 04 Oct 2026 18:33:45 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-21860 — mm/zswap: fix inconsistency when zswap_store_page() fails</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-21860</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;mm/zswap: fix inconsistency when zswap_store_page() fails&lt;/p&gt;
&lt;p&gt;Commit b7c0ccdfbafd (&amp;#34;mm: zswap: support large folios in zswap_store()&amp;#34;)
skips charging any zswap entries when it failed to zswap the entire folio.&lt;/p&gt;
&lt;p&gt;However, when some base pages are zswapped but it failed to zswap the
entire folio, the zswap operation is rolled back.  When freeing zswap
entries for those pages, zswap_entry_free() uncharges the zswap entries
that were not previously charged, causing zswap charging to become
inconsistent.&lt;/p&gt;
&lt;p&gt;This inconsistency triggers two warnings with following steps:
  # On a machine with 64GiB of RAM and 36GiB of zswap
  $ stress-ng --bigheap 2 # wait until the OOM-killer kills stress-ng
  $ sudo reboot&lt;/p&gt;
&lt;p&gt;The two warnings are:
    in mm/memcontrol.c:163, function obj_cgroup_release():
      WARN_ON_ONCE(nr_bytes &amp;amp; (PAGE_SIZE - 1));&lt;/p&gt;
&lt;p&gt;in mm/page_counter.c:60, function page_counter_cancel():
      if (WARN_ONCE(new &amp;lt; 0, &amp;#34;page_counter underflow: %ld nr_pages=%lu\n&amp;#34;,
	  new, nr_pages))&lt;/p&gt;
&lt;p&gt;zswap_stored_pages also becomes inconsistent in the same way.&lt;/p&gt;
&lt;p&gt;As suggested by Kanchana, increment zswap_stored_pages and charge zswap
entries within zswap_store_page() when it succeeds.  This way,
zswap_entry_free() will decrement the counter and uncharge the entries
when it failed to zswap the entire folio.&lt;/p&gt;
&lt;p&gt;While this could potentially be optimized by batching objcg charging and
incrementing the counter, let&amp;#39;s focus on fixing the…&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;mm/zswap: fix inconsistency when zswap_store_page() fails&lt;/p&gt;
&lt;p&gt;Commit b7c0ccdfbafd (&amp;#34;mm: zswap: support large folios in zswap_store()&amp;#34;)
skips charging any zswap entries when it failed to zswap the entire folio.&lt;/p&gt;
&lt;p&gt;However, when some base pages are zswapped but it failed to zswap the
entire folio, the zswap operation is rolled back.  When freeing zswap
entries for those pages, zswap_entry_free() uncharges the zswap entries
that were not previously charged, causing zswap charging to become
inconsistent.&lt;/p&gt;
&lt;p&gt;This inconsistency triggers two warnings with following steps:
  # On a machine with 64GiB of RAM and 36GiB of zswap
  $ stress-ng --bigheap 2 # wait until the OOM-killer kills stress-ng
  $ sudo reboot&lt;/p&gt;
&lt;p&gt;The two warnings are:
    in mm/memcontrol.c:163, function obj_cgroup_release():
      WARN_ON_ONCE(nr_bytes &amp;amp; (PAGE_SIZE - 1));&lt;/p&gt;
&lt;p&gt;in mm/page_counter.c:60, function page_counter_cancel():
      if (WARN_ONCE(new &amp;lt; 0, &amp;#34;page_counter underflow: %ld nr_pages=%lu\n&amp;#34;,
	  new, nr_pages))&lt;/p&gt;
&lt;p&gt;zswap_stored_pages also becomes inconsistent in the same way.&lt;/p&gt;
&lt;p&gt;As suggested by Kanchana, increment zswap_stored_pages and charge zswap
entries within zswap_store_page() when it succeeds.  This way,
zswap_entry_free() will decrement the counter and uncharge the entries
when it failed to zswap the entire folio.&lt;/p&gt;
&lt;p&gt;While this could potentially be optimized by batching objcg charging and
incrementing the counter, let&amp;#39;s focus on fixing the…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-21860</guid>
    </item>
  </channel>
</rss>
