netdevsim: zero initialize struct iphdr in dummy sk_buff
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ da58f90f11f597520f226caff1d3cfc115abedc9 · < 750d0091bebf44975421268d37484ef87060d263| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's netdevsim dummy packet builder can leave an IP header uninitialized, producing a KMSAN uninitialized-value report. The input does not establish what an attacker could do or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with netdevsim should check their versions; affected versions were not provided.