Vulnerability · Published May 14, 2025 · Assigned by GitHub_M
CVE-2025-46836net-tools Stack-based Buffer Overflow vulnerability
Medium 6.6
In plain English
A medium-severity improper input validation in net-tools from ecki. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
net-tools is a collection of programs that form the base set of the NET-3 networking distribution for the Linux operating system. Inn versions up to and including 2.10, the Linux network utilities (like ifconfig) from the net-tools package do not properly validate the structure of /proc files when showing interfaces. `get_name()` in `interface.c` copies interface labels from `/proc/net/dev` into a fixed 16-byte stack buffer without bounds checking, leading to possible arbitrary code execution or crash. The known attack path does not require privilege but also does not provide privilege escalation in this scenario. A patch is available and expected to be part of version 2.20.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | net-tools | 2.10-0.1+deb12u1 | DSA-5923-1 |
| Debian:12 | net-tools | 2.10-0.1+deb12u1 | DEBIAN-CVE-2025-46836 |
| Debian:13 | net-tools | 2.10-1.2 | DEBIAN-CVE-2025-46836 |
| Debian:14 | net-tools | 2.10-1.2 | DEBIAN-CVE-2025-46836 |
| Ubuntu:22.04:LTS | net-tools | 1.60+git20181103.0eebece-1ubuntu5.1 | USN-7537-1 |
| Ubuntu:22.04:LTS | net-tools | 1.60+git20181103.0eebece-1ubuntu5.4 | UBUNTU-CVE-2025-46836 |
| Ubuntu:24.04:LTS | net-tools | 2.10-0.1ubuntu4.4 | UBUNTU-CVE-2025-46836 |
| Ubuntu:24.04:LTS | net-tools | 2.10-0.1ubuntu4.1 | USN-7537-1 |
| Ubuntu:25.10 | net-tools | 2.10-1.3ubuntu1 | UBUNTU-CVE-2025-46836 |
Affected products (as reported)
Weakness: CWE-20, CWE-121 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
References
- https://github.com/ecki/net-tools/security/advisories/GHSA-pfwf-h6m3-63wf x_refsource_CONFIRM
- https://github.com/ecki/net-tools/commit/7a8f42fb20013a1493d8cae1c43436f85e656f2d x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/05/msg00053.html
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html
- https://cert-portal.siemens.com/productcert/html/ssa-577017.html