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 AA1653B3886 for ; Tue, 6 Oct 2026 10:30:52 +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=1791282654; cv=none; b=Oo4bjC4VDz9Ke2PlvaIc40Ev9SaUDsVA79GKflKPkxMiJFMJyf4Thg2uuEDCv3D5lvPJgcaKNT2zRX45yWgFYpzZiHOQwLUHNF+SPmYK465lXCztEnDHTvhBpW2eXJAYbrpinAvU/QS/y/7oFxKm0WiN5SAwUEd+5HHz2h2WVxw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282654; c=relaxed/simple; bh=OM8UVEv+gC3yxpPD3bzga62UH5IecIhC8cJWXDjmXqw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jAuDCDiQxKS6hYkXk4ov65RCgGIj/8/1UlI9PlIg24JC9QmD/SOu6+vdODH+8i949ofdP5VBZVbrTLSTVf2Q2QYyRMu/qQIjZX2eyWFSSrvPwkK/7F0mxmPckvsWIe67FHlYcY2w73LoWFaMeLgyrMvxwX6nABE5/DeolsIrdSA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nZCOXMmZ; 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="nZCOXMmZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E18E31F000FF; Tue, 6 Oct 2026 10:30:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282652; bh=ZB2pZ8zJgXJr9DV75ab7kwmKR0DMtvIrK22ksnRzFeY=; h=From:To:Cc:Subject:Date:Reply-To; b=nZCOXMmZTENVV1k+b/age2gMj4LVkePPmeLrZSW6X0+5Z/lD8seyM97Y7lKzle0nz ModprgyuAkoHnNddZDkOLp58DhcH0rIZ4J7Vd+9En8/6rTyzQeEM9S1hjfV/R6VOP5 EepuJleD+MJNRRAW1AUHU0Vw9LM3EfXcgIH2BnUg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98369: xfrm: add missing rcu_read_lock(), skb_dst_force() and dev_hold() for xfrm_trans_reinject() Date: Tue, 6 Oct 2026 10:47:50 +0200 Message-ID: <2026100623-CVE-2026-98369-2a56@gregkh> X-Mailer: git-send-email 2.56.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=5094; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7547bwgQIOjRnOt+q0MOdS4uF/P+LUY0HfoTHm4oBZg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtiqrJDdf6JrusOC+4AqHQrP/dVdCHZ993xv90FNz2 1mWlm7hjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIxSeG+e5nGaOOJX1isMpy kN097+kirYjqJwwLVmybmDFZQlL5o7imnaWS+c91xfP/AwA= 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: xfrm: add missing rcu_read_lock(), skb_dst_force() and dev_hold() for xfrm_trans_reinject() syzbot reported a suspicious RCU usage warning in ip6_pkt_drop(): WARNING: suspicious RCU usage in ip6_pkt_drop include/net/addrconf.h:389 suspicious rcu_dereference_check() usage! Call Trace: __in6_dev_get_safely include/net/addrconf.h:389 [inline] ip6_pkt_drop+0x596/0x610 net/ipv6/route.c:4620 ip6_pkt_discard+0x1c/0x30 net/ipv6/route.c:4651 xfrm_trans_reinject+0x324/0x630 net/xfrm/xfrm_input.c:806 process_one_work kernel/workqueue.c:3322 [inline] process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3405 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3486 When commit 4f4920669d21 ("xfrm: Reinject transport-mode packets through workqueue") converted xfrm_trans_reinject from a tasklet to a workqueue, the reinjection loop ceased running in softirq context. Workqueue workers run in process context where local_bh_disable() does not enter an RCU read-side critical section under CONFIG_PREEMPT_RCU. Because finish callbacks (such as ip6_rcv_finish) expect to run under an RCU read lock (performing route lookups, l3mdev lookups, and accessing RCU-protected data structures), invoking them in workqueue context without rcu_read_lock() triggers RCU lockdep warnings. Furthermore, packets queued to the workqueue via xfrm_trans_queue_net() may carry non-refcounted (noref) dst entries (e.g. from ip_route_input_noref). Additionally, on netdevice unregistration, dst_dev_put() replaces dst->dev with blackhole_netdev, so dst entries do not keep skb->dev alive while queued in the workqueue. Fix these issues by: 1. Calling skb_dst_force(skb) in xfrm_trans_queue_net() while still in the caller's RCU section to ensure dst is reference-counted before queuing. 2. Holding a reference on skb->dev via dev_hold()/dev_put() across workqueue deferral so skb->dev remains valid during finish() callback processing. 3. Acquiring rcu_read_lock() around the finish callback invocation loop in xfrm_trans_reinject(). The Linux kernel CVE team has assigned CVE-2026-98369 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.75 with commit 7d98b26684cb2390729525b341ea099f0badbe18 and fixed in 5.15.222 with commit 41e47f1664be86c91326f0afe0504a1162d00907 Issue introduced in 6.1 with commit 4f4920669d21e1060b7243e5118dc3b71ced1276 and fixed in 6.1.189 with commit 6601d91a85761f33351c71e04ec0bbd294ca07ce Issue introduced in 6.1 with commit 4f4920669d21e1060b7243e5118dc3b71ced1276 and fixed in 6.6.158 with commit 0cda8273265d30cac6423834fd7d4acb75f04fdb Issue introduced in 6.1 with commit 4f4920669d21e1060b7243e5118dc3b71ced1276 and fixed in 6.12.112 with commit 68a317b4aec8ca1868a39d69e40f9e29baa4f40a Issue introduced in 6.1 with commit 4f4920669d21e1060b7243e5118dc3b71ced1276 and fixed in 6.18.54 with commit 6eb3b071be8e260543c604550c54dac66e6b174b Issue introduced in 6.1 with commit 4f4920669d21e1060b7243e5118dc3b71ced1276 and fixed in 7.2.8 with commit 664fc0941df7c1918b2cd4de6ee00469ba77d8e4 Issue introduced in 6.1 with commit 4f4920669d21e1060b7243e5118dc3b71ced1276 and fixed in 7.3-rc4 with commit d2f5082f9e84653fa1a9e8aebaaff23e688f5e19 Issue introduced in 5.19.17 with commit f520075da484306bbb8425afd2c42404ba74816f Issue introduced in 6.0.3 with commit 130d9e5017ade1b81d16783563edb38c12a2eab7 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-98369 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/xfrm/xfrm_input.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/41e47f1664be86c91326f0afe0504a1162d00907 https://git.kernel.org/stable/c/6601d91a85761f33351c71e04ec0bbd294ca07ce https://git.kernel.org/stable/c/0cda8273265d30cac6423834fd7d4acb75f04fdb https://git.kernel.org/stable/c/68a317b4aec8ca1868a39d69e40f9e29baa4f40a https://git.kernel.org/stable/c/6eb3b071be8e260543c604550c54dac66e6b174b https://git.kernel.org/stable/c/664fc0941df7c1918b2cd4de6ee00469ba77d8e4 https://git.kernel.org/stable/c/d2f5082f9e84653fa1a9e8aebaaff23e688f5e19