<?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>Tue, 03 Nov 2026 02:30:22 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-98588 — bpf, sockmap: Reject max_entries &gt; INT_MAX in sock_map_alloc</title>
      <link>https://db.gcve.eu/vuln/cve-2026-98588</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;bpf, sockmap: Reject max_entries &amp;gt; INT_MAX in sock_map_alloc&lt;/p&gt;
&lt;p&gt;sock_map_alloc() only rejects max_entries == 0 and otherwise allows any
u32 value.  sock_map_free() then walks the sks[] array with a signed int
iterator:&lt;/p&gt;
&lt;p&gt;int i;
	for (i = 0; i &amp;lt; stab-&amp;gt;map.max_entries; i++)
		struct sock **psk = &amp;amp;stab-&amp;gt;sks[i];&lt;/p&gt;
&lt;p&gt;When a SOCKMAP is created with max_entries = 0xffffffff (UINT_MAX), the
allocation of 32 GiB can succeed on large-memory hosts.  During free the
counter reaches 0x80000000, wraps to INT_MIN, is sign-extended by movslq
and turned into a ~16 GiB negative offset from stab-&amp;gt;sks, pointing far
below the allocation.&lt;/p&gt;
&lt;p&gt;The faulting access is an xchg() write in sock_map_free().  Without
KASAN, the same out-of-bounds write can fault on an unmapped vmalloc page
or corrupt an unrelated allocation if that vmalloc address is populated.
On a KASAN kernel with CONFIG_KASAN_VMALLOC=y, the shadow check for that
address hits an unmapped shadow page and oopses first:&lt;/p&gt;
&lt;p&gt;BUG: unable to handle page fault for address: fffff521b59c5a00
  RIP: 0010:kasan_check_range+0x107/0x190
  Call Trace:
   sock_map_free+0x93/0x190
   map_create+0x68d/0xb30
   __sys_bpf+0x21e/0x2e70&lt;/p&gt;
&lt;p&gt;Vmcore confirmed stab-&amp;gt;map.max_entries == 0xffffffff, stab-&amp;gt;sks ==
0xffffc911ace2d000, and the faulting address sks + (s64)INT_MIN * 8
exactly at 0xffffc90dace2d000.  The same buggy path is reached on the
normal close()/bpf_map_free_deferred() path whenever such…&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;bpf, sockmap: Reject max_entries &amp;gt; INT_MAX in sock_map_alloc&lt;/p&gt;
&lt;p&gt;sock_map_alloc() only rejects max_entries == 0 and otherwise allows any
u32 value.  sock_map_free() then walks the sks[] array with a signed int
iterator:&lt;/p&gt;
&lt;p&gt;int i;
	for (i = 0; i &amp;lt; stab-&amp;gt;map.max_entries; i++)
		struct sock **psk = &amp;amp;stab-&amp;gt;sks[i];&lt;/p&gt;
&lt;p&gt;When a SOCKMAP is created with max_entries = 0xffffffff (UINT_MAX), the
allocation of 32 GiB can succeed on large-memory hosts.  During free the
counter reaches 0x80000000, wraps to INT_MIN, is sign-extended by movslq
and turned into a ~16 GiB negative offset from stab-&amp;gt;sks, pointing far
below the allocation.&lt;/p&gt;
&lt;p&gt;The faulting access is an xchg() write in sock_map_free().  Without
KASAN, the same out-of-bounds write can fault on an unmapped vmalloc page
or corrupt an unrelated allocation if that vmalloc address is populated.
On a KASAN kernel with CONFIG_KASAN_VMALLOC=y, the shadow check for that
address hits an unmapped shadow page and oopses first:&lt;/p&gt;
&lt;p&gt;BUG: unable to handle page fault for address: fffff521b59c5a00
  RIP: 0010:kasan_check_range+0x107/0x190
  Call Trace:
   sock_map_free+0x93/0x190
   map_create+0x68d/0xb30
   __sys_bpf+0x21e/0x2e70&lt;/p&gt;
&lt;p&gt;Vmcore confirmed stab-&amp;gt;map.max_entries == 0xffffffff, stab-&amp;gt;sks ==
0xffffc911ace2d000, and the faulting address sks + (s64)INT_MIN * 8
exactly at 0xffffc90dace2d000.  The same buggy path is reached on the
normal close()/bpf_map_free_deferred() path whenever such…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-98588</guid>
    </item>
  </channel>
</rss>
