CVE-2026-98495: net: arp: terminate device name before lookup
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-98495 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.5 with commit 36fbf1e52bd3ff8a5cb604955eedfc9350c2e6cc and fixed in 5.10.271 with commit ae6d704dbf9542b0a0830ec91a2db4f30307e7d8 Issue introduced in 5.5 with commit 36fbf1e52bd3ff8a5cb604955eedfc9350c2e6cc and fixed in 5.15.222 with commit 47107491b48ceef0a2faa7a010cfa961f211ef9f Issue introduced in 5.5 with commit 36fbf1e52bd3ff8a5cb604955eedfc9350c2e6cc and fixed in 6.1.189 with commit 7389757d88f54237951d7497d9c4dae7cc6d64be Issue introduced in 5.5 with commit 36fbf1e52bd3ff8a5cb604955eedfc9350c2e6cc and fixed in 6.6.158 with commit 1b08c5c3ac27c9ff91c5309f4a32b4e91ce2263b Issue introduced in 5.5 with commit 36fbf1e52bd3ff8a5cb604955eedfc9350c2e6cc and fixed in 6.12.112 with commit 414bbad9928598904313299ac9e037a73f520be1 Issue introduced in 5.5 with commit 36fbf1e52bd3ff8a5cb604955eedfc9350c2e6cc and fixed in 6.18.55 with commit ba664d83638640cf454b65167339cbf20dfd6f10 Issue introduced in 5.5 with commit 36fbf1e52bd3ff8a5cb604955eedfc9350c2e6cc and fixed in 7.2.9 with commit 35e716a70733472ede300540082d64c33bf3b4c9 Issue introduced in 5.5 with commit 36fbf1e52bd3ff8a5cb604955eedfc9350c2e6cc and fixed in 7.3-rc5 with commit d8b6529e80bcb4fb8177121404cbb3377acaebd2
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-98495
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/arp.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/ae6d704dbf9542b0a0830ec91a2db4f30307e7d8 https://git.kernel.org/stable/c/47107491b48ceef0a2faa7a010cfa961f211ef9f https://git.kernel.org/stable/c/7389757d88f54237951d7497d9c4dae7cc6d64be https://git.kernel.org/stable/c/1b08c5c3ac27c9ff91c5309f4a32b4e91ce2263b https://git.kernel.org/stable/c/414bbad9928598904313299ac9e037a73f520be1 https://git.kernel.org/stable/c/ba664d83638640cf454b65167339cbf20dfd6f10 https://git.kernel.org/stable/c/35e716a70733472ede300540082d64c33bf3b4c9 https://git.kernel.org/stable/c/d8b6529e80bcb4fb8177121404cbb3377acaebd2