CVE-2025-46836
Medium · 6.6CVSS
6.6
EPSS
0.2%
Published
May 14, 2025
CISA due date
—
Cloudanix analysis
A flaw in basic Linux network tools can let local users crash programs or run unwanted code, so organizations should update the affected software right away to keep systems stable.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Other
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- Low
What it actually does
get_name() in interface.c reads interface names from /proc/net/dev into a fixed 16-byte stack buffer without length validation, enabling out-of-bounds writes that can corrupt adjacent stack data and result in crashes or arbitrary code execution.
Why it matters to the business
Local users on affected systems can trigger crashes of network utilities or potentially execute code, leading to service disruption and the need for urgent patching of net-tools packages across Linux deployments.
How an attack unfolds
An attacker with local access invokes a network utility such as ifconfig that calls get_name(); the function reads an oversized interface label from /proc/net/dev, overflows the stack buffer, and either crashes the process or achieves code execution within the utility's context without gaining elevated privileges.
How to fix it
Upgrade net-tools to version 2.20 or later. For the listed linux-aws-5.15 package on Ubuntu 20.04 LTS, apply the fixed version 5.15.0-1072.78~20.04.1 via package manager and restart affected services.
How to confirm the fix worked
Confirm the installed net-tools version is at least 2.20, verify the patch is present in interface.c by checking that get_name() performs bounds-checked copying, and test that oversized interface names in /proc/net/dev no longer cause overflows.
Typical attack path
- Obtain local shell access on a system using net-tools <= 2.10
- Trigger ifconfig or similar utility that parses /proc/net/dev
- Supply or observe an interface label exceeding 15 bytes
- Overflow the fixed buffer in get_name() to corrupt stack memory
- Cause denial of service via crash or attempt code execution
How to detect it
Search system and application logs for segmentation faults or crashes involving ifconfig, netstat, or other net-tools binaries; inspect /proc/net/dev contents for unusually long interface names; review process core dumps for stack buffer overflows originating from interface.c.
What your security team should do
- Immediately update net-tools packages to the fixed versions on all affected systems
- Prioritize patching internet-facing or multi-user Linux hosts due to local exploitability
- Monitor for crashes of ifconfig and related utilities in system logs
- Restrict local user accounts where feasible until patches are deployed
The record
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
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | net-tools | 0 | No fix |
| Debian:12 | net-tools | 0 | 2.10-0.1+deb12u1 |
| Debian:13 | net-tools | 0 | 2.10-1.2 |
| Mageia:9 | net-tools | 0 | 2.10-1.1.mga9 |
| SUSE:Linux Enterprise Micro 5.1 | net-tools | 0 | 2.0+git20170221.479bb4a-150000.5.13.1 |
| SUSE:Linux Enterprise Micro 5.2 | net-tools | 0 | 2.0+git20170221.479bb4a-150000.5.13.1 |
| SUSE:Linux Enterprise Micro 5.3 | net-tools | 0 | 2.0+git20170221.479bb4a-150000.5.13.1 |
| SUSE:Linux Enterprise Micro 5.4 | net-tools | 0 | 2.0+git20170221.479bb4a-150000.5.13.1 |
| SUSE:Linux Enterprise Micro 5.5 | net-tools | 0 | 2.0+git20170221.479bb4a-150000.5.13.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | net-tools | 0 | 2.0+git20170221.479bb4a-150000.5.13.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP7 | net-tools | 0 | 2.0+git20170221.479bb4a-150000.5.13.1 |
| SUSE:Linux Enterprise Module for Legacy 15 SP6 | net-tools | 0 | 2.0+git20170221.479bb4a-150000.5.13.1 |
| SUSE:Linux Enterprise Module for Legacy 15 SP7 | net-tools | 0 | 2.0+git20170221.479bb4a-150000.5.13.1 |
| SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | net-tools | 0 | 1.60-765.15.1 |
| openSUSE:Leap 15.6 | net-tools | 0 | 2.0+git20170221.479bb4a-150000.5.13.1 |
| openSUSE:Leap 16.0 | net-tools | 0 | 2.10-160000.3.1 |
| openSUSE:Tumbleweed | net-tools | 0 | 2.10-4.1 |
Related vulnerabilities
- CVE-2024-58251 In netstat in BusyBox through 1.37.0, local users can launch of network application with… Also affects net-tools
- CVE-2026-63339 IXP Manager is a full-stack web application for managing Internet Exchange Points. CWE-20
- CVE-2026-62958 libriscv is a RISC-V sandbox and emulator. CWE-20
- CVE-2026-119342 Stirling-PDF is a locally hosted web application that facilitates various operations on… CWE-20
- CVE-2026-119339 Tesseract is an open source OCR engine. CWE-20
- CVE-2026-62335 OpenVM is a performant and modular zkVM framework built for customization and… CWE-20
- CVE-2026-62337 SNARK Verifier is a generic (S)NARK verifier. CWE-20
- CVE-2026-62333 OpenVM is a performant and modular zkVM framework built for customization and… CWE-20