Skip to contentSkip to conversation

CVE-2026-23442: ipv6: add NULL checks for idev in SRv6 paths

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 3

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

ipv6: add NULL checks for idev in SRv6 paths

__in6_dev_get() can return NULL when the device has no IPv6 configuration (e.g. MTU < IPV6_MIN_MTU or after NETDEV_UNREGISTER).

Add NULL checks for idev returned by __in6_dev_get() in both seg6_hmac_validate_skb() and ipv6_srh_rcv() to prevent potential NULL pointer dereferences.

The Linux kernel CVE team has assigned CVE-2026-23442 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.10 with commit 1ababeba4a21f3dba3da3523c670b207fb2feb62 and fixed in 6.19.10 with commit a25853c9feea7bbf31d157ff6e004d2d3b4f7f13
	Issue introduced in 4.10 with commit 1ababeba4a21f3dba3da3523c670b207fb2feb62 and fixed in 7.0-rc5 with commit 06413793526251870e20402c39930804f14d59c0

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-23442

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/exthdrs.c
	net/ipv6/seg6_hmac.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/a25853c9feea7bbf31d157ff6e004d2d3b4f7f13
	https://git.kernel.org/stable/c/06413793526251870e20402c39930804f14d59c0