net: arp: terminate device name before lookup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 36fbf1e52bd3ff8a5cb604955eedfc9350c2e6cc · < ba664d83638640cf454b65167339cbf20dfd6f10| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: arp: terminate device name before lookup
The ARP ioctl copies a user-provided struct arpreq into a stack object. Its arp_dev field may contain IFNAMSIZ bytes without a NUL terminator.
Such input is passed to dev_get_by_name_rcu() or __dev_get_by_name(), where strcmp() can read past the end of the stack object when a matching alternative interface name exists.
Terminate the field before the lookup to prevent the out-of-bounds read.
From the CVE record · Linux
The Linux kernel ARP ioctl can pass a device name without a NUL terminator to an interface lookup. A local caller supplying such a name can trigger a stack out-of-bounds read when a matching alternative interface name exists.
Teams running the Linux kernel should check their deployments; affected versions were not specified.