Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-21852

MEDIUM 5.5EPSS 14%

net: Add rx_skb of kfree_skb to raw_tp_null_args[].

Mitigation

  • Upgrade Linux to 5da7e15fb5a12e78de974d8908f348e279922ce9 or later.

Who should check

  • Anyone running Linux >= c53795d48ee8f385c6a9e394651e7ee914baaeba, < f579afacd0a66971fc8481f30d2d377e230a8342; >= c53795d48ee8f385c6a9e394651e7ee914baaeba, < 4dba79c1e7aad6620bbb707b6c4459380fd90860; >= c53795d48ee8f385c6a9e394651e7ee914baaeba, < 5da7e15fb5a12e78de974d8908f348e279922ce9
  • Anyone running Linux 6.11

Vulnerability facts

Affected
Linux >= c53795d48ee8f385c6a9e394651e7ee914baaeba, < f579afacd0a66971fc8481f30d2d377e230a8342; >= c53795d48ee8f385c6a9e394651e7ee914baaeba, < 4dba79c1e7aad6620bbb707b6c4459380fd90860; >= c53795d48ee8f385c6a9e394651e7ee914baaeba, < 5da7e15fb5a12e78de974d8908f348e279922ce9; Linux 6.11
Fixed in
Linux 4dba79c1e7aad6620bbb707b6c4459380fd90860, Linux 5da7e15fb5a12e78de974d8908f348e279922ce9
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
CWE
CWE-476
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: net: Add rx_skb of kfree_skb to raw_tp_null_args[]. 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. Commit c53795d48ee8 ("net: add rx_sk to trace_kfree_skb") added rx_sk to trace_kfree_skb, but rx_sk is optional and could be NULL. Let's add kfree_skb to raw_tp_null_args[] to let the BPF verifier validate such a prog and prevent the issue. Now we fail to load such a prog: libbpf: prog 'drop': -- 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 'kfree_skb' arg3 has btf_id 5253 type STRUCT 'sock' 1: R1=ctx() R3_w=trusted_ptr_or_null_sock(id=1) ; bpf_printk("sk: %d, %d\n", sk, sk->__sk_common.skc_family); @ kfree_skb_sk_null.bpf.c:24 1: (69) r4 = *(u16 *)(r3 +16) R3 invalid mem access 'trusted_ptr_or_null_' processed 2 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- Note this fix requires commit 838a10bd2ebf ("bpf: Augment raw_tp arguments with PTR_MAYBE_NULL"). [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: <TASK> ? __die+0x1f/0x60 ? page_fault_oops+0x148/0x420 ? search_bpf_extables+0x5b/0x70 ? fixup_exception+0x27/0x2c0 ? exc_page_fault+0x75/0x170 ? asm_exc_page_fault+0x22/0x30 ? bpf_prog_5e21a6db8fcff1aa_drop+0x10/0x2d bpf_trace_run4+0x68/0xd0 ? unix_stream_connect+0x1f4/0x6f0 sk_skb_reason_drop+0x90/0x120 unix_stream_connect+0x1f4/0x6f0 __sys_connect+0x7f/0xb0 __x64_sys_connect+0x14/0x20 do_syscall_64+0x47/0xc30 entry_SYSCALL_64_after_hwframe+0x4b/0x53

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= c53795d48ee8f385c6a9e394651e7ee914baaeba, < f579afacd0a66971fc8481f30d2d377e230a8342; >= c53795d48ee8f385c6a9e394651e7ee914baaeba, < 4dba79c1e7aad6620bbb707b6c4459380fd90860; >= c53795d48ee8f385c6a9e394651e7ee914baaeba, < 5da7e15fb5a12e78de974d8908f348e279922ce9—cvelist
Linux6.11—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-21852. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21852.md
Affected: Linux >= c53795d48ee8f385c6a9e394651e7ee914baaeba, < f579afacd0a66971fc8481f30d2d377e230a8342; >= c53795d48ee8f385c6a9e394651e7ee914baaeba, < 4dba79c1e7aad6620bbb707b6c4459380fd90860; >= c53795d48ee8f385c6a9e394651e7ee914baaeba, < 5da7e15fb5a12e78de974d8908f348e279922ce9; Linux 6.11
Fixed in: Linux 4dba79c1e7aad6620bbb707b6c4459380fd90860, Linux 5da7e15fb5a12e78de974d8908f348e279922ce9

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-21852 being exploited?

There is no confirmed exploitation: CVE-2025-21852 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-21852?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-21852?

Linux >= c53795d48ee8f385c6a9e394651e7ee914baaeba, < f579afacd0a66971fc8481f30d2d377e230a8342; >= c53795d48ee8f385c6a9e394651e7ee914baaeba, < 4dba79c1e7aad6620bbb707b6c4459380fd90860; >= c53795d48ee8f385c6a9e394651e7ee914baaeba, < 5da7e15fb5a12e78de974d8908f348e279922ce9; Linux 6.11.

Is there a fix for CVE-2025-21852?

Yes. Fixed in Linux 4dba79c1e7aad6620bbb707b6c4459380fd90860, Linux 5da7e15fb5a12e78de974d8908f348e279922ce9. Upgrade Linux to 5da7e15fb5a12e78de974d8908f348e279922ce9 or later.

How do I check if I'm affected by CVE-2025-21852?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors