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 6C1333E6DE0 for ; Tue, 6 Oct 2026 10:30:37 +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=1791282638; cv=none; b=NS/z488OvlX8JK5FEZNGyUuB9ukDd/TkfqFgLw16FF9aOunN7ReirW9SYxLFn5wZPPtW17s+Z9mVi6PLTAtCkYXOnI+BKSJOJzF+H2HiLdah+l3NVOLGNf3ob/mic+1v/pKcpX3riKQ6g2vLbhSSOyLFC43BD+Lm/IsvWA/FhV4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282638; c=relaxed/simple; bh=CtnvWylcSbmVJ9Yg2gLf/uo5ADvFtUGGZusu7WcdbYI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dJ/ky8bbRxn5N8zZvpVhbbyaI8HaY2p4v1zRHCHTXjqUiUYqiRJdvMgTWSfAR6WbbmsMLZ8qUgWss9gMJL9AgKq2O1jbGUjFAWFCHEt+cmy4Sm65PhTrLkXTuMt/67HGXrgUWvz3lQuvEEalp/bPFMFwQRtRVSgrrbrRz7WYQuQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cTaz3hwn; 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="cTaz3hwn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CB8A1F000FF; Tue, 6 Oct 2026 10:30:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282637; bh=hOLOYbQhjdF/iNTC+JIiPnawuMQRm2P0pn9X6jx0UK8=; h=From:To:Cc:Subject:Date:Reply-To; b=cTaz3hwnJX5puFH22aER7ulrsrQNY1SRFTz7SjJNBm5sTokIRXcg6GXpNcLpl+CAJ pQo/Y1z2e9PYeE3lfDWHEJHKvSm29gPOf2KjFuTscdQ2mdtzFr5ba1ecLZU4QtV5yD ibd3iTYreVmNhr6l6+O27sweWg8XzoiD9rbBHqHU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98364: xfrm: hold net_device reference under RCU in bundle creation Date: Tue, 6 Oct 2026 10:47:45 +0200 Message-ID: <2026100622-CVE-2026-98364-bc9d@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=2658; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gXBYmhbhRMO43IRIYmXyY8EqFAtvEfL4evfmkuZ+phA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtiqtKEhi2nnJVLbh94f8N4y7gifp/no8QyZ6xhFxy xBep5CvHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRHdsZFqxz+5FxringsTGf wvIc2U0Mp3w+f2CYZ8SQx80rn50wJdPqiMGs5vhN2trGAA== 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: hold net_device reference under RCU in bundle creation xfrm_bundle_create() and xfrm_create_dummy_bundle() read dst->dev into a local pointer without taking a device reference, then pass it to xfrm_fill_dst(). A concurrent RTM_DELLINK replaces dst->dev via dst_dev_put() and frees the old net_device, causing a use-after-free when xfrm6_fill_dst() later dereferences the stale dev pointer. BUG: KASAN: slab-use-after-free in xfrm6_fill_dst+0x82c/0x860 (net/ipv6/xfrm6_policy.c:86 netdev_hold()) Read of size 8 at addr ffff8880142fe588 by task exploit/153 Call Trace: xfrm6_fill_dst+0x82c/0x860 xfrm_resolve_and_create_bundle+0x21d4/0x2bd0 xfrm_lookup_with_ifid+0x485/0x1640 ip6_dst_lookup_flow+0x19b/0x1e0 udpv6_sendmsg+0x1443/0x2dd0 Fix this by reading dst->dev via dst_dev_rcu() and keeping the RCU read-side critical section active until xfrm_fill_dst() has taken the required device references. The Linux kernel CVE team has assigned CVE-2026-98364 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.25 with commit 25ee3286dcbc830a833354bb1d15567956844813 and fixed in 7.2.8 with commit 8d85d6bc9c46dc41cb2be0eac53f8ab068c3a807 Issue introduced in 2.6.25 with commit 25ee3286dcbc830a833354bb1d15567956844813 and fixed in 7.3-rc4 with commit 9fa903b24b1f46b4ff5443bcd4aca23e5c57f9c1 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-98364 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_policy.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/8d85d6bc9c46dc41cb2be0eac53f8ab068c3a807 https://git.kernel.org/stable/c/9fa903b24b1f46b4ff5443bcd4aca23e5c57f9c1