<?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://cve.radiocsirt.org</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>Fri, 09 Oct 2026 19:08:42 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-49142 — net: preserve skb_end_offset() in skb_unclone_keeptruesize()</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2022-49142</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;net: preserve skb_end_offset() in skb_unclone_keeptruesize()&lt;/p&gt;
&lt;p&gt;syzbot found another way to trigger the infamous WARN_ON_ONCE(delta &amp;lt; len)
in skb_try_coalesce() [1]&lt;/p&gt;
&lt;p&gt;I was able to root cause the issue to kfence.&lt;/p&gt;
&lt;p&gt;When kfence is in action, the following assertion is no longer true:&lt;/p&gt;
&lt;p&gt;int size = xxxx;
void *ptr1 = kmalloc(size, gfp);
void *ptr2 = kmalloc(size, gfp);&lt;/p&gt;
&lt;p&gt;if (ptr1 &amp;amp;&amp;amp; ptr2)
	ASSERT(ksize(ptr1) == ksize(ptr2));&lt;/p&gt;
&lt;p&gt;We attempted to fix these issues in the blamed commits, but forgot
that TCP was possibly shifting data after skb_unclone_keeptruesize()
has been used, notably from tcp_retrans_try_collapse().&lt;/p&gt;
&lt;p&gt;So we not only need to keep same skb-&amp;gt;truesize value,
we also need to make sure TCP wont fill new tailroom
that pskb_expand_head() was able to get from a
addr = kmalloc(...) followed by ksize(addr)&lt;/p&gt;
&lt;p&gt;Split skb_unclone_keeptruesize() into two parts:&lt;/p&gt;
&lt;p&gt;1) Inline skb_unclone_keeptruesize() for the common case,
   when skb is not cloned.&lt;/p&gt;
&lt;p&gt;2) Out of line __skb_unclone_keeptruesize() for the &amp;#39;slow path&amp;#39;.&lt;/p&gt;
&lt;p&gt;WARNING: CPU: 1 PID: 6490 at net/core/skbuff.c:5295 skb_try_coalesce+0x1235/0x1560 net/core/skbuff.c:5295
Modules linked in:
CPU: 1 PID: 6490 Comm: syz-executor161 Not tainted 5.17.0-rc4-syzkaller-00229-g4f12b742eb2b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:skb_try_coalesce+0x1235/0x1560 net/core/skbuff.c:5295
Code: bf 01 00 00 00 0f b7 c0 89 c6 89 44…&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;net: preserve skb_end_offset() in skb_unclone_keeptruesize()&lt;/p&gt;
&lt;p&gt;syzbot found another way to trigger the infamous WARN_ON_ONCE(delta &amp;lt; len)
in skb_try_coalesce() [1]&lt;/p&gt;
&lt;p&gt;I was able to root cause the issue to kfence.&lt;/p&gt;
&lt;p&gt;When kfence is in action, the following assertion is no longer true:&lt;/p&gt;
&lt;p&gt;int size = xxxx;
void *ptr1 = kmalloc(size, gfp);
void *ptr2 = kmalloc(size, gfp);&lt;/p&gt;
&lt;p&gt;if (ptr1 &amp;amp;&amp;amp; ptr2)
	ASSERT(ksize(ptr1) == ksize(ptr2));&lt;/p&gt;
&lt;p&gt;We attempted to fix these issues in the blamed commits, but forgot
that TCP was possibly shifting data after skb_unclone_keeptruesize()
has been used, notably from tcp_retrans_try_collapse().&lt;/p&gt;
&lt;p&gt;So we not only need to keep same skb-&amp;gt;truesize value,
we also need to make sure TCP wont fill new tailroom
that pskb_expand_head() was able to get from a
addr = kmalloc(...) followed by ksize(addr)&lt;/p&gt;
&lt;p&gt;Split skb_unclone_keeptruesize() into two parts:&lt;/p&gt;
&lt;p&gt;1) Inline skb_unclone_keeptruesize() for the common case,
   when skb is not cloned.&lt;/p&gt;
&lt;p&gt;2) Out of line __skb_unclone_keeptruesize() for the &amp;#39;slow path&amp;#39;.&lt;/p&gt;
&lt;p&gt;WARNING: CPU: 1 PID: 6490 at net/core/skbuff.c:5295 skb_try_coalesce+0x1235/0x1560 net/core/skbuff.c:5295
Modules linked in:
CPU: 1 PID: 6490 Comm: syz-executor161 Not tainted 5.17.0-rc4-syzkaller-00229-g4f12b742eb2b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:skb_try_coalesce+0x1235/0x1560 net/core/skbuff.c:5295
Code: bf 01 00 00 00 0f b7 c0 89 c6 89 44…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2022-49142</guid>
    </item>
  </channel>
</rss>
