Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E87F32B112 for ; Thu, 25 Jun 2026 08:45:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377111; cv=none; b=Ipgpw6mRK55Ap/07VVDaTMJaHe6sZ5n8FVK6L+ruvpKz6Z0ymobJ/YGyuPxfnPQGQPo0up3uhSZtrme1CuhZrKacqkcQtKlYrlaKUzwqz9YGvbbH76RtEkC2rWoCw3dnBOzda+y1wyr/KAIX9rsQ8i75AnGbnDyqzsm6EAOu2Hg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377111; c=relaxed/simple; bh=8JSAxB8e4XFLaE8/XnmdfzaBuUI4q8DqCOK2Vvc9nHg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qM773nPL6VUYDnmamJzcleUx0BC9fApyZu+OYSDqIZwLWtBaINKI4NeLE7GnpdX1hqgBgL5MK4yKoZe9l4gmUcVQdEy/tSrpIhnm9ZQm696DMtTSETspcZ0sTFQaP02bui34GqJnXUGv6Arxk9X9/56LJbzSJ5Kag2zLRLTf5Zw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rtgoeMla; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rtgoeMla" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73D3E1F000E9; Thu, 25 Jun 2026 08:45:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377110; bh=0S220RTjTgAGbXVvV5DE8+leqOl/SlpxUzYAcR4VdJI=; h=From:To:Cc:Subject:Date:Reply-To; b=rtgoeMlara87EdTEIf14F+/PDSdPl+reH8erg4OTFw5PXzQ4Yi+el1/oWWPj5ibpF 7ONjXzSWrgvjfET9xuv8sJvdHzxUAcA7t5KtQbA4jU9yBtIHRHu+z80jg1T2DwRVoh UcDXUHQsa3u/2OwzWvyqsQsLrZL2uaFTDeFTyg58= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53184: udp: clear skb->dev before running a sockmap verdict Date: Thu, 25 Jun 2026 09:40:32 +0100 Message-ID: <2026062556-CVE-2026-53184-a7a3@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4696; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7w7P+O3eBMqcSymqgn3TjuTHNWOLxGX83hkr54e+Yhc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2L2PyFvLfcX6/LIfBVr0q+WrVp/ZNt7YYJoiUV67ys 2h64ZrZEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABORa2aYX3M16LDt5SO/exbn rWw+L8vzhHfjaYYFk48tPzKx9RmPZYjDHtfKn7cn/bz2BwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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: 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 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. The Linux kernel CVE team has assigned CVE-2026-53184 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 965b57b469a589d64d81b1688b38dcb537011bb0 and fixed in 6.1.176 with commit 263779a6beff03b8b06f6d25566cb0f45af361f2 Issue introduced in 6.0 with commit 965b57b469a589d64d81b1688b38dcb537011bb0 and fixed in 6.6.143 with commit 1b585673a2249f13678e7ac443ac683ba767e0b6 Issue introduced in 6.0 with commit 965b57b469a589d64d81b1688b38dcb537011bb0 and fixed in 6.12.94 with commit 90d35188aaa92b8f8b23f66335e0e91bf60103a3 Issue introduced in 6.0 with commit 965b57b469a589d64d81b1688b38dcb537011bb0 and fixed in 6.18.36 with commit 6822eed69572000a181fa4e31fceacc60918c471 Issue introduced in 6.0 with commit 965b57b469a589d64d81b1688b38dcb537011bb0 and fixed in 7.0.13 with commit 7d6d92d000ebe3a845a17c165c1d3a70c5d84fe1 Issue introduced in 6.0 with commit 965b57b469a589d64d81b1688b38dcb537011bb0 and fixed in 7.1 with commit 3c94f241f776562c489876ff506f366224565c21 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-53184 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/ipv4/udp.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/263779a6beff03b8b06f6d25566cb0f45af361f2 https://git.kernel.org/stable/c/1b585673a2249f13678e7ac443ac683ba767e0b6 https://git.kernel.org/stable/c/90d35188aaa92b8f8b23f66335e0e91bf60103a3 https://git.kernel.org/stable/c/6822eed69572000a181fa4e31fceacc60918c471 https://git.kernel.org/stable/c/7d6d92d000ebe3a845a17c165c1d3a70c5d84fe1 https://git.kernel.org/stable/c/3c94f241f776562c489876ff506f366224565c21