# CVE-2026-53184: udp: clear skb->dev before running a sockmap verdict

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-06-25T08:38:58.189Z
- Modified: 2026-10-19T20:19:06.890Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

udp: clear skb->dev before running a sockmap verdict

On the UDP receive path skb->dev is repurposed as dev_scratch (the
truesize/state cache set by udp_set_dev_scratch()), through the
union { struct net_device *dev; unsigned long dev_scratch; } in sk_buff.

When a UDP socket is in a sockmap, sk_data_ready is
sk_psock_verdict_data_ready(), which calls udp_read_skb() -> recv_actor()
(sk_psock_verdict_recv) to run the attached SK_SKB verdict program in softirq.
If that program calls a socket-lookup helper (bpf_sk_lookup_tcp/udp,
bpf_skc_lookup_tcp), bpf_skc_lookup() does:

	if (skb->dev)
		caller_net = dev_net(skb->dev);

skb->dev still holds the dev_scratch value (a non-NULL integer), so dev_net()
dereferences it as a struct net_device * and the kernel takes a general
protection fault on a non-canonical address in softirq:

  Oops: general protection fault, probably for non-canonical address 0x1010000800004a0
  CPU: 1 UID: 0 PID: 1406 Comm: syz.2.19 Not tainted 7.1.0-rc6 #1 PREEMPT(full)
  RIP: 0010:bpf_skc_lookup net/core/filter.c:7033 [inline]
  RIP: 0010:bpf_sk_lookup+0x45/0x160 net/core/filter.c:7047
  Call Trace:
   <IRQ>
   bpf_prog_4675cb904b7071f8+0x12e/0x14e
   bpf_prog_run_pin_on_cpu+0xc6/0x1f0
   sk_psock_verdict_recv+0x1ba/0x350
   udp_read_skb+0x31a/0x370
   sk_psock_verdict_data_ready+0x2e3/0x600
   __udp_enqueue_schedule_skb+0x4c8/0x650
   udpv6_queue_rcv_one_skb+0x3ec/0x740
   udp6_unicast_rcv_skb+0x11d/0x140
   ip6_protocol_deliver_rcu+0x61e/0x950
   ip6_input_finish+0xa9/0x150
   NF_HOOK+0x286/0x2f0
   ip6_input+0x117/0x220
   NF_HOOK+0x286/0x2f0
   __netif_receive_skb+0x85/0x200
   process_backlog+0x374/0x9a0
   __napi_poll+0x4f/0x1c0
   net_rx_action+0x3b0/0x770
   handle_softirqs+0x15a/0x460
   do_softirq+0x57/0x80
   </IRQ>

The rmem charge that dev_scratch accounted for is released by skb_recv_udp() on
dequeue, just above, so the scratch is dead by the time recv_actor() runs. Clear
skb->dev so bpf_skc_lookup() falls back to sock_net(skb->sk), which
skb_set_owner_sk_safe() set just above.

(As written by CVE List.)

## Affected

- Linux Linux: from 965b57b469a589d64d81b1688b38dcb537011bb0 before 263779a6beff03b8b06f6d25566cb0f45af361f2; from 965b57b469a589d64d81b1688b38dcb537011bb0 before 1b585673a2249f13678e7ac443ac683ba767e0b6; from 965b57b469a589d64d81b1688b38dcb537011bb0 before 90d35188aaa92b8f8b23f66335e0e91bf60103a3; from 965b57b469a589d64d81b1688b38dcb537011bb0 before 6822eed69572000a181fa4e31fceacc60918c471; from 965b57b469a589d64d81b1688b38dcb537011bb0 before 7d6d92d000ebe3a845a17c165c1d3a70c5d84fe1; from 965b57b469a589d64d81b1688b38dcb537011bb0 before 3c94f241f776562c489876ff506f366224565c21; 6.0 (not affected: before 6.0; from 6.1.176 up to 6.1.*; from 6.6.143 up to 6.6.*; from 6.12.94 up to 6.12.*; from 6.18.36 up to 6.18.*; from 7.0.13 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.0 before 6.1.176; from 6.2 before 6.6.143; from 6.7 before 6.12.94; from 6.13 before 6.18.36; from 6.19 before 7.0.13; 7.1

## References

- <https://git.kernel.org/stable/c/263779a6beff03b8b06f6d25566cb0f45af361f2> (patch)
- <https://git.kernel.org/stable/c/1b585673a2249f13678e7ac443ac683ba767e0b6> (patch)
- <https://git.kernel.org/stable/c/90d35188aaa92b8f8b23f66335e0e91bf60103a3> (patch)
- <https://git.kernel.org/stable/c/6822eed69572000a181fa4e31fceacc60918c471> (patch)
- <https://git.kernel.org/stable/c/7d6d92d000ebe3a845a17c165c1d3a70c5d84fe1> (patch)
- <https://git.kernel.org/stable/c/3c94f241f776562c489876ff506f366224565c21> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Sources

- CVE List: [CVE-2026-53184](https://www.cve.org/CVERecord?id=CVE-2026-53184), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-53184](https://nvd.nist.gov/vuln/detail/CVE-2026-53184), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-53184 · Whole record: https://cve.day/CVE-2026-53184.json · Rebuilt by cve.day 2026-11-25T22:59:25.875Z
