Skip to contentSkip to conversation

CVE-2026-98493: net: ipconfig: bound DHCP option construction

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

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: ipconfig: bound DHCP option construction

ic_dhcp_init_options() appends the hostname (option 12), vendor-class (option 60) and client-ID (option 61) options into the fixed 312-byte bootp_pkt.exten[] buffer. Only the client-ID branch checked the remaining space; the hostname and vendor-class writes were unbounded.

A 64-byte hostname together with the maximum 252-byte dhcpclass= identifier needs 18 + (2 + 64) + (2 + 252) = 338 of the 312 available bytes even before the terminating END marker, so the vendor-class memcpy runs past the end of exten[]. With CONFIG_FORTIFY_SOURCE this is reported as a field-spanning write and, when the kernel is booted with panic_on_warn=1, aborts boot with a panic.

Route the optional options through a common helper that makes sure the option, its 2-byte header and the END marker all fit and drops an option that would not. Configurations with short options keep sending exactly the same bytes as before.

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

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

	Issue introduced in 2.6.36 with commit 130c0f47fdf9c533deb1136cad5136f6cb7020f0 and fixed in 6.12.112 with commit abcba6f080c63e403037ecdffde43170d242376a
	Issue introduced in 2.6.36 with commit 130c0f47fdf9c533deb1136cad5136f6cb7020f0 and fixed in 6.18.55 with commit 24e79508b237dd2a69bc6fb6ac5cf7f126178307
	Issue introduced in 2.6.36 with commit 130c0f47fdf9c533deb1136cad5136f6cb7020f0 and fixed in 7.2.9 with commit cbaad2922bd5d4d303055ae9afecc8999e6b40c9
	Issue introduced in 2.6.36 with commit 130c0f47fdf9c533deb1136cad5136f6cb7020f0 and fixed in 7.3-rc5 with commit e47a1958e12abc3a17b5231a4f21c8f1bf662e08

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

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/ipv4/ipconfig.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/abcba6f080c63e403037ecdffde43170d242376a
	https://git.kernel.org/stable/c/24e79508b237dd2a69bc6fb6ac5cf7f126178307
	https://git.kernel.org/stable/c/cbaad2922bd5d4d303055ae9afecc8999e6b40c9
	https://git.kernel.org/stable/c/e47a1958e12abc3a17b5231a4f21c8f1bf662e08