CVE-2025-46836

net-tools Stack-based Buffer Overflow vulnerability

State
Published
Severity
6.6 Medium
Published
May 14, 2025
Updated
Oct 15, 2026
Reserved
Apr 30, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.6 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:HGitHub_M

Weaknesses

  • CWE-20 Improper Input Validation
  • CWE-121 Stack-based Buffer Overflow

Affected Products

ProductVersions
net-toolsecki
  • <= 2.10Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.