<?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>Mon, 28 Sep 2026 20:53:38 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-49700 — mm/slub: add missing TID updates on slab deactivation</title>
      <link>https://db.gcve.eu/vuln/cve-2022-49700</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/slub: add missing TID updates on slab deactivation&lt;/p&gt;
&lt;p&gt;The fastpath in slab_alloc_node() assumes that c-&amp;gt;slab is stable as long as
the TID stays the same. However, two places in __slab_alloc() currently
don&amp;#39;t update the TID when deactivating the CPU slab.&lt;/p&gt;
&lt;p&gt;If multiple operations race the right way, this could lead to an object
getting lost; or, in an even more unlikely situation, it could even lead to
an object being freed onto the wrong slab&amp;#39;s freelist, messing up the
`inuse` counter and eventually causing a page to be freed to the page
allocator while it still contains slab objects.&lt;/p&gt;
&lt;p&gt;(I haven&amp;#39;t actually tested these cases though, this is just based on
looking at the code. Writing testcases for this stuff seems like it&amp;#39;d be
a pain...)&lt;/p&gt;
&lt;p&gt;The race leading to state inconsistency is (all operations on the same CPU
and kmem_cache):&lt;/p&gt;
&lt;p&gt;- task A: begin do_slab_free():
    - read TID
    - read pcpu freelist (==NULL)
    - check `slab == c-&amp;gt;slab` (true)
 - [PREEMPT A-&amp;gt;B]
 - task B: begin slab_alloc_node():
    - fastpath fails (`c-&amp;gt;freelist` is NULL)
    - enter __slab_alloc()
    - slub_get_cpu_ptr() (disables preemption)
    - enter ___slab_alloc()
    - take local_lock_irqsave()
    - read c-&amp;gt;freelist as NULL
    - get_freelist() returns NULL
    - write `c-&amp;gt;slab = NULL`
    - drop local_unlock_irqrestore()
    - goto new_slab
    - slub_percpu_partial() is NULL
    - get_partial() returns NULL
    - slub_put_cpu…&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/slub: add missing TID updates on slab deactivation&lt;/p&gt;
&lt;p&gt;The fastpath in slab_alloc_node() assumes that c-&amp;gt;slab is stable as long as
the TID stays the same. However, two places in __slab_alloc() currently
don&amp;#39;t update the TID when deactivating the CPU slab.&lt;/p&gt;
&lt;p&gt;If multiple operations race the right way, this could lead to an object
getting lost; or, in an even more unlikely situation, it could even lead to
an object being freed onto the wrong slab&amp;#39;s freelist, messing up the
`inuse` counter and eventually causing a page to be freed to the page
allocator while it still contains slab objects.&lt;/p&gt;
&lt;p&gt;(I haven&amp;#39;t actually tested these cases though, this is just based on
looking at the code. Writing testcases for this stuff seems like it&amp;#39;d be
a pain...)&lt;/p&gt;
&lt;p&gt;The race leading to state inconsistency is (all operations on the same CPU
and kmem_cache):&lt;/p&gt;
&lt;p&gt;- task A: begin do_slab_free():
    - read TID
    - read pcpu freelist (==NULL)
    - check `slab == c-&amp;gt;slab` (true)
 - [PREEMPT A-&amp;gt;B]
 - task B: begin slab_alloc_node():
    - fastpath fails (`c-&amp;gt;freelist` is NULL)
    - enter __slab_alloc()
    - slub_get_cpu_ptr() (disables preemption)
    - enter ___slab_alloc()
    - take local_lock_irqsave()
    - read c-&amp;gt;freelist as NULL
    - get_freelist() returns NULL
    - write `c-&amp;gt;slab = NULL`
    - drop local_unlock_irqrestore()
    - goto new_slab
    - slub_percpu_partial() is NULL
    - get_partial() returns NULL
    - slub_put_cpu…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2022-49700</guid>
    </item>
  </channel>
</rss>
