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 7EE7F427FAB for ; Mon, 27 Jul 2026 20:11:32 +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=1785183093; cv=none; b=gzF117jw8yUEwmMveHVuTfciAx4jyR8dYGMU7GX6OtYqy4hUxk1M65Mi0IzJVsgJ7lwGG+oz+SDumx+QeEyIfRmbo6uJEowQ13e6k3VyO1LyTylCxL/pGT30oxWD2TY8Dy/NKYqYIGOyyTy09qY3xrAbHvxJk9Hjmv57Mjsg258= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785183093; c=relaxed/simple; bh=9CRWPM4bnbnYAhnxZewlDepje5GggauQzkKXLrTNt5s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mHqcvHaN52fAELmDoeHU/PtjMN7vGuKMdWPDN7fki97TsWZAokmgzMuLO9R+JmxMg7U+Ljz0z2Wz+sKEOIZZmfaMS3+UV9raXmbohFf0w5kvtTlNkRIX3eDyiUPeQk9/gKl5lDqrvRFFgC49w28osfVdXc//Cvvlw+CKqK6uSe4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uePMGSMG; 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="uePMGSMG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA1221F000E9; Mon, 27 Jul 2026 20:11:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785183092; bh=LAeDLOtSrO7BKPAv3f83cZ31dsXNxZDxBbp213unw0Y=; h=From:To:Cc:Subject:Date:Reply-To; b=uePMGSMGJecA6j1KfYTndzFznYI1nNDw3VSPRZeG0qg3OK6CWmE0qEblmunpPa1db 4WZeTaLFl2lih3ZtrEjty5zgyS/3VSFqHh4uLtyb9gtdmfbn0WYienRehXVyy5NoGD e8q/V0/2TLSJLoKYI8XZNHaCylymupXSncwkOb04= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64542: ipv6: ndisc: fix NULL deref in accept_untracked_na() Date: Mon, 27 Jul 2026 22:10:40 +0200 Message-ID: <2026072736-CVE-2026-64542-fe95@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=3472; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pd14N2nDmbNufki0yH/lF4Mx3yKwgHp5dUWk6zEsFbk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnpu208J1T9iL9pnX8nu4FV9FNc2UUGQetK1qffGHhr4 pYdkcvriGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIk8MmBYsGjx7gXLFR12xGcV v3jzNK0ztPT1BYb50TVzOeL3O1Q7vXj3dtPi5ugvfO0bAA== 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: ndisc: fix NULL deref in accept_untracked_na() accept_untracked_na() re-fetches the inet6_dev with __in6_dev_get(dev) and dereferences idev->cnf.accept_untracked_na without a NULL check, even though its only caller ndisc_recv_na() already fetched and NULL-checked idev for the same device. Both reads of dev->ip6_ptr run in the same RCU read-side critical section, but a concurrent addrconf_ifdown() can clear dev->ip6_ptr between them: lowering the MTU below IPV6_MIN_MTU calls addrconf_ifdown() without the synchronize_net() that orders the unregister path, so the re-fetch returns NULL and oopses: BUG: KASAN: null-ptr-deref in ndisc_recv_na (net/ipv6/ndisc.c:974) Read of size 4 at addr 0000000000000364 Call Trace: ndisc_recv_na (net/ipv6/ndisc.c:974) icmpv6_rcv (net/ipv6/icmp.c:1193) ip6_protocol_deliver_rcu (net/ipv6/ip6_input.c:479) ip6_input_finish (net/ipv6/ip6_input.c:534) ip6_input (net/ipv6/ip6_input.c:545) ip6_mc_input (net/ipv6/ip6_input.c:635) ipv6_rcv (net/ipv6/ip6_input.c:351) It is reachable by an unprivileged user via a network namespace. Pass the caller's already validated idev instead of re-fetching it; the idev stays alive for the whole RCU critical section, so it is safe even after dev->ip6_ptr has been cleared. The Linux kernel CVE team has assigned CVE-2026-64542 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit aaa5f515b16b6b3e137779ffb4c9558bb58c1e75 and fixed in 6.12.97 with commit 62c719203cb521b64fab74da94a81bdde5c18808 Issue introduced in 6.0 with commit aaa5f515b16b6b3e137779ffb4c9558bb58c1e75 and fixed in 6.18.40 with commit a6450f7cfae57b382cbaf66a577765c9a88b3c58 Issue introduced in 6.0 with commit aaa5f515b16b6b3e137779ffb4c9558bb58c1e75 and fixed in 7.1.5 with commit 63d1c23764de2309cedbb779c75188d257a09d9b Issue introduced in 6.0 with commit aaa5f515b16b6b3e137779ffb4c9558bb58c1e75 and fixed in 7.2-rc1 with commit d186e942365acece7c56d39da05dd63bf95b280a 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-64542 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/ndisc.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/62c719203cb521b64fab74da94a81bdde5c18808 https://git.kernel.org/stable/c/a6450f7cfae57b382cbaf66a577765c9a88b3c58 https://git.kernel.org/stable/c/63d1c23764de2309cedbb779c75188d257a09d9b https://git.kernel.org/stable/c/d186e942365acece7c56d39da05dd63bf95b280a