<?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>Wed, 30 Sep 2026 13:41:46 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-50004 — xfrm: policy: fix metadata dst-&gt;dev xmit null pointer dereference</title>
      <link>https://db.gcve.eu/vuln/cve-2022-50004</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;xfrm: policy: fix metadata dst-&amp;gt;dev xmit null pointer dereference&lt;/p&gt;
&lt;p&gt;When we try to transmit an skb with metadata_dst attached (i.e. dst-&amp;gt;dev
== NULL) through xfrm interface we can hit a null pointer dereference[1]
in xfrmi_xmit2() -&amp;gt; xfrm_lookup_with_ifid() due to the check for a
loopback skb device when there&amp;#39;s no policy which dereferences dst-&amp;gt;dev
unconditionally. Not having dst-&amp;gt;dev can be interepreted as it not being
a loopback device, so just add a check for a null dst_orig-&amp;gt;dev.&lt;/p&gt;
&lt;p&gt;With this fix xfrm interface&amp;#39;s Tx error counters go up as usual.&lt;/p&gt;
&lt;p&gt;[1] net-next calltrace captured via netconsole:
  BUG: kernel NULL pointer dereference, address: 00000000000000c0
  #PF: supervisor read access in kernel mode
  #PF: error_code(0x0000) - not-present page
  PGD 0 P4D 0
  Oops: 0000 [#1] PREEMPT SMP
  CPU: 1 PID: 7231 Comm: ping Kdump: loaded Not tainted 5.19.0+ #24
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.0-1.fc36 04/01/2014
  RIP: 0010:xfrm_lookup_with_ifid+0x5eb/0xa60
  Code: 8d 74 24 38 e8 26 a4 37 00 48 89 c1 e9 12 fc ff ff 49 63 ed 41 83 fd be 0f 85 be 01 00 00 41 be ff ff ff ff 45 31 ed 48 8b 03 &amp;lt;f6&amp;gt; 80 c0 00 00 00 08 75 0f 41 80 bc 24 19 0d 00 00 01 0f 84 1e 02
  RSP: 0018:ffffb0db82c679f0 EFLAGS: 00010246
  RAX: 0000000000000000 RBX: ffffd0db7fcad430 RCX: ffffb0db82c67a10
  RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffb0db82c67a80
  RBP: ffffb0db82c67a80 R08: ffffb0db82c67a1…&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;xfrm: policy: fix metadata dst-&amp;gt;dev xmit null pointer dereference&lt;/p&gt;
&lt;p&gt;When we try to transmit an skb with metadata_dst attached (i.e. dst-&amp;gt;dev
== NULL) through xfrm interface we can hit a null pointer dereference[1]
in xfrmi_xmit2() -&amp;gt; xfrm_lookup_with_ifid() due to the check for a
loopback skb device when there&amp;#39;s no policy which dereferences dst-&amp;gt;dev
unconditionally. Not having dst-&amp;gt;dev can be interepreted as it not being
a loopback device, so just add a check for a null dst_orig-&amp;gt;dev.&lt;/p&gt;
&lt;p&gt;With this fix xfrm interface&amp;#39;s Tx error counters go up as usual.&lt;/p&gt;
&lt;p&gt;[1] net-next calltrace captured via netconsole:
  BUG: kernel NULL pointer dereference, address: 00000000000000c0
  #PF: supervisor read access in kernel mode
  #PF: error_code(0x0000) - not-present page
  PGD 0 P4D 0
  Oops: 0000 [#1] PREEMPT SMP
  CPU: 1 PID: 7231 Comm: ping Kdump: loaded Not tainted 5.19.0+ #24
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.0-1.fc36 04/01/2014
  RIP: 0010:xfrm_lookup_with_ifid+0x5eb/0xa60
  Code: 8d 74 24 38 e8 26 a4 37 00 48 89 c1 e9 12 fc ff ff 49 63 ed 41 83 fd be 0f 85 be 01 00 00 41 be ff ff ff ff 45 31 ed 48 8b 03 &amp;lt;f6&amp;gt; 80 c0 00 00 00 08 75 0f 41 80 bc 24 19 0d 00 00 01 0f 84 1e 02
  RSP: 0018:ffffb0db82c679f0 EFLAGS: 00010246
  RAX: 0000000000000000 RBX: ffffd0db7fcad430 RCX: ffffb0db82c67a10
  RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffb0db82c67a80
  RBP: ffffb0db82c67a80 R08: ffffb0db82c67a1…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2022-50004</guid>
    </item>
  </channel>
</rss>
