<?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>Tue, 29 Sep 2026 07:31:55 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-42316 — mm/mglru: fix div-by-zero in vmpressure_calc_level()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-42316</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/mglru: fix div-by-zero in vmpressure_calc_level()&lt;/p&gt;
&lt;p&gt;evict_folios() uses a second pass to reclaim folios that have gone through
page writeback and become clean before it finishes the first pass, since
folio_rotate_reclaimable() cannot handle those folios due to the
isolation.&lt;/p&gt;
&lt;p&gt;The second pass tries to avoid potential double counting by deducting
scan_control-&amp;gt;nr_scanned.  However, this can result in underflow of
nr_scanned, under a condition where shrink_folio_list() does not increment
nr_scanned, i.e., when folio_trylock() fails.&lt;/p&gt;
&lt;p&gt;The underflow can cause the divisor, i.e., scale=scanned+reclaimed in
vmpressure_calc_level(), to become zero, resulting in the following crash:&lt;/p&gt;
&lt;p&gt;[exception RIP: vmpressure_work_fn+101]
  process_one_work at ffffffffa3313f2b&lt;/p&gt;
&lt;p&gt;Since scan_control-&amp;gt;nr_scanned has no established semantics, the potential
double counting has minimal risks.  Therefore, fix the problem by not
deducting scan_control-&amp;gt;nr_scanned in evict_folios().&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/mglru: fix div-by-zero in vmpressure_calc_level()&lt;/p&gt;
&lt;p&gt;evict_folios() uses a second pass to reclaim folios that have gone through
page writeback and become clean before it finishes the first pass, since
folio_rotate_reclaimable() cannot handle those folios due to the
isolation.&lt;/p&gt;
&lt;p&gt;The second pass tries to avoid potential double counting by deducting
scan_control-&amp;gt;nr_scanned.  However, this can result in underflow of
nr_scanned, under a condition where shrink_folio_list() does not increment
nr_scanned, i.e., when folio_trylock() fails.&lt;/p&gt;
&lt;p&gt;The underflow can cause the divisor, i.e., scale=scanned+reclaimed in
vmpressure_calc_level(), to become zero, resulting in the following crash:&lt;/p&gt;
&lt;p&gt;[exception RIP: vmpressure_work_fn+101]
  process_one_work at ffffffffa3313f2b&lt;/p&gt;
&lt;p&gt;Since scan_control-&amp;gt;nr_scanned has no established semantics, the potential
double counting has minimal risks.  Therefore, fix the problem by not
deducting scan_control-&amp;gt;nr_scanned in evict_folios().&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-42316</guid>
    </item>
  </channel>
</rss>
