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 5A0553F23AF for ; Sat, 15 Aug 2026 12:33: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=1786797191; cv=none; b=a6Dd1TpG6uLfjRqHf+tX2TpBV4VPhFTkLTtrzTEsByzM3blelRyh3jAko9MqfRxt5fjtQk0gMjVtkL54z9PwLUBXp3Pbq5209mtGZrKyKediFrCeb43DtQPqLuixQaussMu8qwe+X+lJPAw7MYuqCcdANvGWIc+koUTpr4WKk/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786797191; c=relaxed/simple; bh=Ulv0WFIXD/VYd4hvQJB8TNxeQXs4BgjXspzmkZf4mNM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PzGb6tA03Y8fGSgN4MIGF3yDaUrOtBQBoH0nSmHRbEwZxirDYFhdoM7qTTDcz1sY/KjpukXy/JW4HVRu02GZasTEvPiZMYGAadZYgLJpdmyVx0as7JwyKCle+aHCka3rJpBECd/KyDcM/cDFQPOpBVcu0dpkFV3U6v9gNOz2bog= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aI35Ynwb; 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="aI35Ynwb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B39B91F000E9; Sat, 15 Aug 2026 12:33:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786797190; bh=bm38bx8hEW2UIHyMIiQEfKRoupsLrA2mfvDg22v8xX0=; h=From:To:Cc:Subject:Date:Reply-To; b=aI35YnwbcWqCe+IyTYemUXYf+N9u05li03igvZEVsqDz06qg6AYI1RdXeujYRMU1P hWmnlbpZJzw19+HUYuWPQ9wc/L0zjsbA6QoZfNBcK2+/CPp9Sj5dgviFqVE9Fsm+m0 AmrLNbo+lYjZwEWWDxP8D/PhpcosELn5/N+2cTqs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74562: nexthop: take nh->lock for f6i_list walks in replace check and notify Date: Sat, 15 Aug 2026 21:27:23 +0900 Message-ID: <2026081552-CVE-2026-74562-990d@gregkh> X-Mailer: git-send-email 2.55.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=2970; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Tb7EP+LS0kPPIMQBAUyjTeemT6q44NgjgElLp8Uf83U=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNURfmyx+aPu2GcH1BdKx3+HSWr793a3sJtv8tt5B86 ms/Q7ajI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYif55hNusfKWatR90Vl37u v1vSI3gn6oHQbYZ5BrO0LjRMl+DpPiZwPObrZZ3rn1tDAA== 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: nexthop: take nh->lock for f6i_list walks in replace check and notify fib6_check_nh_list() and __nexthop_replace_notify() walk nh->f6i_list during an RTNL-serialized nexthop replace without holding nh->lock. IPv6 RTM_NEWROUTE/RTM_DELROUTE run without RTNL and mutate that list under nh->lock (fib6_add_rt2node_nh(), fib6_purge_rt()), so both walks race a concurrent route delete that unlinks and frees a fib6_info: BUG: KASAN: slab-use-after-free in rt6_fill_node.isra.0 (net/ipv6/route.c:5799) Read of size 4 at addr ffff888014607e64 by task exploit/143 rt6_fill_node.isra.0 (net/ipv6/route.c:5799) fib6_rt_update (net/ipv6/route.c:6412) __nexthop_replace_notify (net/ipv4/nexthop.c:2542) rtm_new_nexthop (net/ipv4/nexthop.c:2554) rtnetlink_rcv_msg (net/core/rtnetlink.c:7076) BUG: KASAN: slab-use-after-free in fib6_check_nh_list (net/ipv4/nexthop.c:1605) Read of size 8 at addr ffff888014a7d068 by task exploit/142 fib6_check_nh_list (net/ipv4/nexthop.c:1605) rtm_new_nexthop (net/ipv4/nexthop.c:2575) rtnetlink_rcv_msg (net/core/rtnetlink.c:7076) Both walks only read the entries and take no tb6_lock, so protect them with nh->lock; fib6_rt_update() uses gfp_any(), which returns GFP_ATOMIC under the lock. The Linux kernel CVE team has assigned CVE-2026-74562 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 081efd18326e353c6fbfdeff903a83edde953f72 and fixed in 7.1.8 with commit bb2b072c619c1f741a6234257050f72005dc63ef Issue introduced in 6.16 with commit 081efd18326e353c6fbfdeff903a83edde953f72 and fixed in 7.2-rc6 with commit 072cd1f21819dedd2252e704d255de3b0cfc61a7 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-74562 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/nexthop.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/bb2b072c619c1f741a6234257050f72005dc63ef https://git.kernel.org/stable/c/072cd1f21819dedd2252e704d255de3b0cfc61a7