<?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 06:55:28 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-21852 — net: Add rx_skb of kfree_skb to raw_tp_null_args[].</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-21852</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: Add rx_skb of kfree_skb to raw_tp_null_args[].&lt;/p&gt;
&lt;p&gt;Yan Zhai reported a BPF prog could trigger a null-ptr-deref [0]
in trace_kfree_skb if the prog does not check if rx_sk is NULL.&lt;/p&gt;
&lt;p&gt;Commit c53795d48ee8 (&amp;#34;net: add rx_sk to trace_kfree_skb&amp;#34;) added
rx_sk to trace_kfree_skb, but rx_sk is optional and could be NULL.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s add kfree_skb to raw_tp_null_args[] to let the BPF verifier
validate such a prog and prevent the issue.&lt;/p&gt;
&lt;p&gt;Now we fail to load such a prog:&lt;/p&gt;
&lt;p&gt;libbpf: prog &amp;#39;drop&amp;#39;: -- BEGIN PROG LOAD LOG --
  0: R1=ctx() R10=fp0
  ; int BPF_PROG(drop, struct sk_buff *skb, void *location, @ kfree_skb_sk_null.bpf.c:21
  0: (79) r3 = *(u64 *)(r1 +24)
  func &amp;#39;kfree_skb&amp;#39; arg3 has btf_id 5253 type STRUCT &amp;#39;sock&amp;#39;
  1: R1=ctx() R3_w=trusted_ptr_or_null_sock(id=1)
  ; bpf_printk(&amp;#34;sk: %d, %d\n&amp;#34;, sk, sk-&amp;gt;__sk_common.skc_family); @ kfree_skb_sk_null.bpf.c:24
  1: (69) r4 = *(u16 *)(r3 +16)
  R3 invalid mem access &amp;#39;trusted_ptr_or_null_&amp;#39;
  processed 2 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
  -- END PROG LOAD LOG --&lt;/p&gt;
&lt;p&gt;Note this fix requires commit 838a10bd2ebf (&amp;#34;bpf: Augment raw_tp
arguments with PTR_MAYBE_NULL&amp;#34;).&lt;/p&gt;
&lt;p&gt;[0]:
BUG: kernel NULL pointer dereference, address: 0000000000000010
 PF: supervisor read access in kernel mode
 PF: error_code(0x0000) - not-present page
PGD 0 P4D 0
PREEMPT SMP
RIP: 0010:bpf_prog_5e21a6db8fcff1aa_drop+0x10/0x2d
Call Trace:
 &amp;lt;TASK&amp;gt;
 ? __die+0x1f/0x60
 ? p…&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: Add rx_skb of kfree_skb to raw_tp_null_args[].&lt;/p&gt;
&lt;p&gt;Yan Zhai reported a BPF prog could trigger a null-ptr-deref [0]
in trace_kfree_skb if the prog does not check if rx_sk is NULL.&lt;/p&gt;
&lt;p&gt;Commit c53795d48ee8 (&amp;#34;net: add rx_sk to trace_kfree_skb&amp;#34;) added
rx_sk to trace_kfree_skb, but rx_sk is optional and could be NULL.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s add kfree_skb to raw_tp_null_args[] to let the BPF verifier
validate such a prog and prevent the issue.&lt;/p&gt;
&lt;p&gt;Now we fail to load such a prog:&lt;/p&gt;
&lt;p&gt;libbpf: prog &amp;#39;drop&amp;#39;: -- BEGIN PROG LOAD LOG --
  0: R1=ctx() R10=fp0
  ; int BPF_PROG(drop, struct sk_buff *skb, void *location, @ kfree_skb_sk_null.bpf.c:21
  0: (79) r3 = *(u64 *)(r1 +24)
  func &amp;#39;kfree_skb&amp;#39; arg3 has btf_id 5253 type STRUCT &amp;#39;sock&amp;#39;
  1: R1=ctx() R3_w=trusted_ptr_or_null_sock(id=1)
  ; bpf_printk(&amp;#34;sk: %d, %d\n&amp;#34;, sk, sk-&amp;gt;__sk_common.skc_family); @ kfree_skb_sk_null.bpf.c:24
  1: (69) r4 = *(u16 *)(r3 +16)
  R3 invalid mem access &amp;#39;trusted_ptr_or_null_&amp;#39;
  processed 2 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
  -- END PROG LOAD LOG --&lt;/p&gt;
&lt;p&gt;Note this fix requires commit 838a10bd2ebf (&amp;#34;bpf: Augment raw_tp
arguments with PTR_MAYBE_NULL&amp;#34;).&lt;/p&gt;
&lt;p&gt;[0]:
BUG: kernel NULL pointer dereference, address: 0000000000000010
 PF: supervisor read access in kernel mode
 PF: error_code(0x0000) - not-present page
PGD 0 P4D 0
PREEMPT SMP
RIP: 0010:bpf_prog_5e21a6db8fcff1aa_drop+0x10/0x2d
Call Trace:
 &amp;lt;TASK&amp;gt;
 ? __die+0x1f/0x60
 ? p…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-21852</guid>
    </item>
  </channel>
</rss>
