Skip to contentSkip to conversation

CVE-2026-52985: netdevsim: zero initialize struct iphdr in dummy sk_buff

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

lore
Share & tools
lore
#0 lore raw

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

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

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

netdevsim: zero initialize struct iphdr in dummy sk_buff

Syzbot reports a KMSAN uninit-value originating from nsim_dev_trap_skb_build, with the allocation also being performed in the same function.

Fix this by calling skb_put_zero instead of skb_put to guarantee zero initialization of the whole IP header.

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

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

	Issue introduced in 5.4 with commit da58f90f11f597520f226caff1d3cfc115abedc9 and fixed in 5.10.258 with commit 175556c049eaec14efde8c6475e763b7579b9de7
	Issue introduced in 5.4 with commit da58f90f11f597520f226caff1d3cfc115abedc9 and fixed in 5.15.209 with commit 6e2cfd0904976e701d7a76b86b694e72af230ab0
	Issue introduced in 5.4 with commit da58f90f11f597520f226caff1d3cfc115abedc9 and fixed in 6.1.175 with commit 1b7b6ae0e93b8d512e208b1378d74af052e4f4e7
	Issue introduced in 5.4 with commit da58f90f11f597520f226caff1d3cfc115abedc9 and fixed in 6.6.141 with commit 818f7673ed7f4a29d4b9cee8184c47d6e57162b4
	Issue introduced in 5.4 with commit da58f90f11f597520f226caff1d3cfc115abedc9 and fixed in 6.12.91 with commit 978ca6ff789f1f19c03288ac20cc1f4774e88490
	Issue introduced in 5.4 with commit da58f90f11f597520f226caff1d3cfc115abedc9 and fixed in 6.18.33 with commit 750d0091bebf44975421268d37484ef87060d263
	Issue introduced in 5.4 with commit da58f90f11f597520f226caff1d3cfc115abedc9 and fixed in 7.0.10 with commit bc6002865e8c4fcf9e94975f7cf023448d8764e2
	Issue introduced in 5.4 with commit da58f90f11f597520f226caff1d3cfc115abedc9 and fixed in 7.1 with commit 35eaa6d8d6c2ee65e96f507add856e0eacf24591

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

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/netdevsim/dev.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/175556c049eaec14efde8c6475e763b7579b9de7
	https://git.kernel.org/stable/c/6e2cfd0904976e701d7a76b86b694e72af230ab0
	https://git.kernel.org/stable/c/1b7b6ae0e93b8d512e208b1378d74af052e4f4e7
	https://git.kernel.org/stable/c/818f7673ed7f4a29d4b9cee8184c47d6e57162b4
	https://git.kernel.org/stable/c/978ca6ff789f1f19c03288ac20cc1f4774e88490
	https://git.kernel.org/stable/c/750d0091bebf44975421268d37484ef87060d263
	https://git.kernel.org/stable/c/bc6002865e8c4fcf9e94975f7cf023448d8764e2
	https://git.kernel.org/stable/c/35eaa6d8d6c2ee65e96f507add856e0eacf24591