Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4B6F43B635A for ; Wed, 25 Mar 2026 10:30:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434637; cv=none; b=UHVuLa4W9QveGci1lugsn5EV+TAk4/uwykQTTJmO0NQndQEJ8u2XtELC/ri5YVLcBFsj54V3XFlbkWOGCi6fSuA2NBU5mQidrUFnTRZ1ACoUaRrBwztwTDGVdA2lOYKaQYlTN2aXwluuay/Yulxn2izfjJd8KNpdFrBeof9ZI8M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434637; c=relaxed/simple; bh=SGHZnDxYqisD2HxB3oAtLaVuaKaU6QEAxvm9vSqtghI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iFJgVlHaVBH1g8E6cYrVBAjH1d4twEbGAfeqBaVsLbV9lU81Bf7rJ0Um2ECRx1EGvS7g2roYQrX4iZX9lDA0CD0JOOFXarJEHtKAx1X2q88PdKNszdT1O3G5nWZWryLB9cPLWH2C8MzEygXAfs65DOsAhBPuuOe6umr5Ix1I2GY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pyrUamIu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="pyrUamIu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7585EC4CEF7; Wed, 25 Mar 2026 10:30:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434636; bh=SGHZnDxYqisD2HxB3oAtLaVuaKaU6QEAxvm9vSqtghI=; h=From:To:Cc:Subject:Date:Reply-To:From; b=pyrUamIug2jWNxzzOflYKEi2hCPWlyVgd5WukvEXJtmF3teh2ZLscxgcyu6f/1tn4 OcHd62zEGstiAB0Dn3wCcYvqGOLhnZsI1CUYnyMShMkx/8zJrWfSdpYi8K2Fmey84U b5VOpvSV7UTOTeGVOVHSInRrglbzSUq7vWHGuFaw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23304: ipv6: fix NULL pointer deref in ip6_rt_get_dev_rcu() Date: Wed, 25 Mar 2026 11:26:48 +0100 Message-ID: <2026032527-CVE-2026-23304-485b@gregkh> X-Mailer: git-send-email 2.53.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=3585; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FalE5Dkwk1Gz8Jb0LakXqbniWW2XrMh5OlOyp5s7pu0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHdwTbtVyrel5Ud6XzoeYz3SmKmWJeXwWlLpvEtj+6w +bwefKmjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIPwWGBZMWfZpktN24bev0 I/PPbJHIXrm0/gTDgpYXzYZvH0+UNtkbYJnKbue53WV5IwA= 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: ipv6: fix NULL pointer deref in ip6_rt_get_dev_rcu() l3mdev_master_dev_rcu() can return NULL when the slave device is being un-slaved from a VRF. All other callers deal with this, but we lost the fallback to loopback in ip6_rt_pcpu_alloc() -> ip6_rt_get_dev_rcu() with commit 4832c30d5458 ("net: ipv6: put host and anycast routes on device with address"). KASAN: null-ptr-deref in range [0x0000000000000108-0x000000000000010f] RIP: 0010:ip6_rt_pcpu_alloc (net/ipv6/route.c:1418) Call Trace: ip6_pol_route (net/ipv6/route.c:2318) fib6_rule_lookup (net/ipv6/fib6_rules.c:115) ip6_route_output_flags (net/ipv6/route.c:2607) vrf_process_v6_outbound (drivers/net/vrf.c:437) I was tempted to rework the un-slaving code to clear the flag first and insert synchronize_rcu() before we remove the upper. But looks like the explicit fallback to loopback_dev is an established pattern. And I guess avoiding the synchronize_rcu() is nice, too. The Linux kernel CVE team has assigned CVE-2026-23304 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit 4832c30d5458387ff2533ff66fbde26ad8bb5a2d and fixed in 6.1.167 with commit 4a48fe59f29f673a3d042d679f26629a9c3e29d4 Issue introduced in 4.14 with commit 4832c30d5458387ff2533ff66fbde26ad8bb5a2d and fixed in 6.6.130 with commit 581800298313c9fd75e94985e6d37d21b7e35d34 Issue introduced in 4.14 with commit 4832c30d5458387ff2533ff66fbde26ad8bb5a2d and fixed in 6.12.77 with commit 3310fc11fc47387d1dd4759b0bc961643ea11c7f Issue introduced in 4.14 with commit 4832c30d5458387ff2533ff66fbde26ad8bb5a2d and fixed in 6.18.17 with commit 0b5a7826020706057cc5a9d9009e667027f221ee Issue introduced in 4.14 with commit 4832c30d5458387ff2533ff66fbde26ad8bb5a2d and fixed in 6.19.7 with commit ae88c8256547b63980770a9ea7be73a15900d27e Issue introduced in 4.14 with commit 4832c30d5458387ff2533ff66fbde26ad8bb5a2d and fixed in 7.0-rc3 with commit 2ffb4f5c2ccb2fa1c049dd11899aee7967deef5a 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-23304 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/ipv6/route.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/4a48fe59f29f673a3d042d679f26629a9c3e29d4 https://git.kernel.org/stable/c/581800298313c9fd75e94985e6d37d21b7e35d34 https://git.kernel.org/stable/c/3310fc11fc47387d1dd4759b0bc961643ea11c7f https://git.kernel.org/stable/c/0b5a7826020706057cc5a9d9009e667027f221ee https://git.kernel.org/stable/c/ae88c8256547b63980770a9ea7be73a15900d27e https://git.kernel.org/stable/c/2ffb4f5c2ccb2fa1c049dd11899aee7967deef5a