Skip to contentSkip to conversation

CVE-2026-43040: net: ipv6: ndisc: fix ndisc_ra_useropt to initialize nduseropt_padX fields to zero to prevent an info-leak

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1

lore
Share & tools
lore
#0 lore raw

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

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

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

net: ipv6: ndisc: fix ndisc_ra_useropt to initialize nduseropt_padX fields to zero to prevent an info-leak

When processing Router Advertisements with user options the kernel builds an RTM_NEWNDUSEROPT netlink message. The nduseroptmsg struct has three padding fields that are never zeroed and can leak kernel data

The fix is simple, just zeroes the padding fields.

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

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

	Issue introduced in 2.6.24 with commit 31910575a9de61e78065e93846e8e7a4894a18bf and fixed in 5.10.253 with commit 1da9023f6b071a38e5430ffbce4b70b2b1ac4f9c
	Issue introduced in 2.6.24 with commit 31910575a9de61e78065e93846e8e7a4894a18bf and fixed in 5.15.203 with commit 2fe4d0ba690a69ad6ae9f7ab9bdc96e02610b648
	Issue introduced in 2.6.24 with commit 31910575a9de61e78065e93846e8e7a4894a18bf and fixed in 6.1.168 with commit 11d7fe97421cfc81549940c20ed5ac9472d6db05
	Issue introduced in 2.6.24 with commit 31910575a9de61e78065e93846e8e7a4894a18bf and fixed in 6.6.134 with commit 7f56d87e527bb5a13c3e8b0d5840cb6332822f6d
	Issue introduced in 2.6.24 with commit 31910575a9de61e78065e93846e8e7a4894a18bf and fixed in 6.12.81 with commit 4f810c686fde509d1cdaa706322d9d2531f8f1a4
	Issue introduced in 2.6.24 with commit 31910575a9de61e78065e93846e8e7a4894a18bf and fixed in 6.18.22 with commit b485eef3d97b7aae55ce669b6de555ec81f3d21c
	Issue introduced in 2.6.24 with commit 31910575a9de61e78065e93846e8e7a4894a18bf and fixed in 6.19.12 with commit ef3645606e4a635d5062a492f22b7f490852ee67
	Issue introduced in 2.6.24 with commit 31910575a9de61e78065e93846e8e7a4894a18bf and fixed in 7.0 with commit ae05340ccaa9d347fe85415609e075545bec589f

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

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/1da9023f6b071a38e5430ffbce4b70b2b1ac4f9c
	https://git.kernel.org/stable/c/2fe4d0ba690a69ad6ae9f7ab9bdc96e02610b648
	https://git.kernel.org/stable/c/11d7fe97421cfc81549940c20ed5ac9472d6db05
	https://git.kernel.org/stable/c/7f56d87e527bb5a13c3e8b0d5840cb6332822f6d
	https://git.kernel.org/stable/c/4f810c686fde509d1cdaa706322d9d2531f8f1a4
	https://git.kernel.org/stable/c/b485eef3d97b7aae55ce669b6de555ec81f3d21c
	https://git.kernel.org/stable/c/ef3645606e4a635d5062a492f22b7f490852ee67
	https://git.kernel.org/stable/c/ae05340ccaa9d347fe85415609e075545bec589f