Skip to contentSkip to conversation

CVE-2026-31738: vxlan: validate ND option lengths in vxlan_na_create

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:

vxlan: validate ND option lengths in vxlan_na_create

vxlan_na_create() walks ND options according to option-provided lengths. A malformed option can make the parser advance beyond the computed option span or use a too-short source LLADDR option payload.

Validate option lengths against the remaining NS option area before advancing, and only read source LLADDR when the option is large enough for an Ethernet address.

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

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

	Issue introduced in 3.14 with commit 4b29dba9c085a4fb79058fb1c45a2f6257ca3dfa and fixed in 5.10.253 with commit 901c1dd3bab2955d7e664f914c374c8c3ac2b958
	Issue introduced in 3.14 with commit 4b29dba9c085a4fb79058fb1c45a2f6257ca3dfa and fixed in 5.15.203 with commit e476745917a1e288eb15e7ff49d286a86a4861d3
	Issue introduced in 3.14 with commit 4b29dba9c085a4fb79058fb1c45a2f6257ca3dfa and fixed in 6.1.168 with commit 2029712fb2c87e9a8c75094906f2ee29bf08c500
	Issue introduced in 3.14 with commit 4b29dba9c085a4fb79058fb1c45a2f6257ca3dfa and fixed in 6.6.134 with commit 602596c69a70e50d9ab8c6ae0290a01f88229dd7
	Issue introduced in 3.14 with commit 4b29dba9c085a4fb79058fb1c45a2f6257ca3dfa and fixed in 6.12.81 with commit de20d2e3b9179d132f5f5b44e490d7c916c6321b
	Issue introduced in 3.14 with commit 4b29dba9c085a4fb79058fb1c45a2f6257ca3dfa and fixed in 6.18.22 with commit eddfce70a6f3107d1679b0c2fcbeb96b593bd679
	Issue introduced in 3.14 with commit 4b29dba9c085a4fb79058fb1c45a2f6257ca3dfa and fixed in 6.19.12 with commit b69c4236255bd8de16cd876e58c6f0867d1d78b1
	Issue introduced in 3.14 with commit 4b29dba9c085a4fb79058fb1c45a2f6257ca3dfa and fixed in 7.0 with commit afa9a05e6c4971bd5586f1b304e14d61fb3d9385
	Issue introduced in 3.12.18 with commit d8be18c52dbc94989f6d74637b731af39cd3d902
	Issue introduced in 3.13.10 with commit 3927dace523706cc00f808520eaf2125dd7c07b5

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

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:
drivers/net/vxlan/vxlan_core.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/901c1dd3bab2955d7e664f914c374c8c3ac2b958
	https://git.kernel.org/stable/c/e476745917a1e288eb15e7ff49d286a86a4861d3
	https://git.kernel.org/stable/c/2029712fb2c87e9a8c75094906f2ee29bf08c500
	https://git.kernel.org/stable/c/602596c69a70e50d9ab8c6ae0290a01f88229dd7
	https://git.kernel.org/stable/c/de20d2e3b9179d132f5f5b44e490d7c916c6321b
	https://git.kernel.org/stable/c/eddfce70a6f3107d1679b0c2fcbeb96b593bd679
	https://git.kernel.org/stable/c/b69c4236255bd8de16cd876e58c6f0867d1d78b1
	https://git.kernel.org/stable/c/afa9a05e6c4971bd5586f1b304e14d61fb3d9385