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 C3E9E37F30C for ; Sun, 18 Oct 2026 15:32:24 +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=1792337546; cv=none; b=hxgqJ6159DELq8Zg2GfUh1YuEwHZlbuQ6LoHoBLPJLNLknPQmPM7sFP4SBKp6k3Mm0OhCMNUo21Qnfu8vL7dKVNeZA7K1+WSL6ET5iWlv69rqTQu9s/CAVaEr9Gc4fEM8/n65WI+IULPCjRLYRnOE88qFsmTzVR4QSQLc9sbXeU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337546; c=relaxed/simple; bh=QNV38u5l7PFG3NkPF/q2Ixc7I/yM6tw7Gzd9rzS+bRk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XiIlhsScOC3ED00DTJmANbh4iTasyt1juIc8J04YZBUkoFLzIlaOwNjsHh7m909uNH0ryRIl9cM9O1iGzER3j7CMl9eFJ5wsMi/gdXCfDPpBRBEcrOtb83P3Hail6REHzVvLsbsxccm5p4hcV8waq+vYNTbwxw2761Zu0QIponk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=m2upPJYp; 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="m2upPJYp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6FA91F000C4; Sun, 18 Oct 2026 15:32:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337544; bh=0pOXlLON21v1ByNSlEqbKvSuIqy4ph6v3vfEYg1is3E=; h=From:To:Cc:Subject:Date:Reply-To; b=m2upPJYp9nhqeSYdBdyEMPQ64GB1jICFYtICSHse07EoPWjCtVPStDzFNOq59tMFM Uxcm/iLnstCyzY3XmaRluBQXxhHb9z2oD9Eu5Y3toI3sKpWjTY5GHqBiyNr+4a7Dfh qpjlHhPD/UoD3LDI9bCkudosyT21+z2hMD8qr0w4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98598: ipv6: Prevent rt6_insert_exception() for dying fib6_info. Date: Sun, 18 Oct 2026 17:17:42 +0200 Message-ID: <2026101837-CVE-2026-98598-b5db@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=3461; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QAvjILylbPEDk0a/DYCtB+0uRdxiyvyKD/4dIHx0gcQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHs0UU37yTDnj9wm/UllO4dp58+e+bTrpIXBYQEnu5 0v26I6PHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR3PMMC07/S3S3PpEk3fij 6HjXW7elJlmMUgwL5r7QNf14Levu511CvCZ5u96/absqAgA= 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: Prevent rt6_insert_exception() for dying fib6_info. Before the cited commit, fib6_nh_flush_exceptions() always set from->exception_bucket_flushed = 1 under rt6_exception_lock to prevent rt6_insert_exception() from inserting a new exception for a dying fib6_info. The flag was replaced with the FIB6_EXCEPTION_BUCKET_FLUSHED bit stored in nh->rt6i_exception_bucket. The problem is that now the bit is only set when the bucket is not NULL and fib6_nh_flush_exceptions() is called from fib6_nh_release() after fib6_ref has already reached zero. If rt6_insert_exception() is called while the target fib6_info is being removed via fib6_purge_rt(), a new exception could be created successfully because rt6_flush_exceptions() no longer sets the bit. This creates a reference cycle between the fib6_info and the exception route, leaking the fib6_info, its nexthop device, and all per-CPU routes in fib6_nh->rt6i_pcpu, which stalls netdev unregistration. [ 34.680602] unregister_netdevice: waiting for gre6 to become free. Usage count = 68 [ 44.920675] unregister_netdevice: waiting for gre6 to become free. Usage count = 68 [ 55.176582] unregister_netdevice: waiting for gre6 to become free. Usage count = 68 Let's call fib6_drop_pcpu_from() before rt6_flush_exceptions(), to set fib6_destroying before rt6_exception_lock, and check f6i->fib6_destroying in rt6_insert_exception(). Note that FIB6_EXCEPTION_BUCKET_FLUSHED logic is dead and we can clean it up in net-next. The Linux kernel CVE team has assigned CVE-2026-98598 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit cc5c073a693fa6ed7a207b0436114f68cce72434 and fixed in 6.18.55 with commit 649ffc76ed5483b2caf35ed90d3787538efc4e53 Issue introduced in 5.3 with commit cc5c073a693fa6ed7a207b0436114f68cce72434 and fixed in 7.2.9 with commit e03e77071e75ce726d877f0a4349a28b6e1f487a Issue introduced in 5.3 with commit cc5c073a693fa6ed7a207b0436114f68cce72434 and fixed in 7.3-rc5 with commit 0346ec2f080b40d95ed05b853bb9226289e75212 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-98598 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/ip6_fib.c 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/649ffc76ed5483b2caf35ed90d3787538efc4e53 https://git.kernel.org/stable/c/e03e77071e75ce726d877f0a4349a28b6e1f487a https://git.kernel.org/stable/c/0346ec2f080b40d95ed05b853bb9226289e75212