# CVE-2025-46836: net-tools Stack-based Buffer Overflow vulnerability

> Attackers can trigger a stack-based buffer overflow in net-tools via malformed /proc files, potentially leading to arbitrary code execution or crashes.

- **Severity:** Medium 6.6 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 14 May 2025
- **Updated:** 15 Oct 2026
- **Also known as:** AZL-61883, AZL-61888, DEBIAN-CVE-2025-46836, DLA-4202-1, DSA-5923-1, GHSA-pfwf-h6m3-63wf, MGASA-2025-0259, SUSE-SU-2025:02974-1, SUSE-SU-2025:03245-1, SUSE-SU-2025:03260-1, SUSE-SU-2025:20566-1, SUSE-SU-2025:20747-1, SUSE-SU-2025:20825-1, SUSE-SU-2026:20940-1, SUSE-SU-2026:20948-1, UBUNTU-CVE-2025-46836, USN-7537-1, openSUSE-SU-2025:15428-1, openSUSE-SU-2026:20437-1

## What is CVE-2025-46836?

CVE-2025-46836 is a medium-severity memory corruption vulnerability in ecki net-tools, published on 14 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.

### 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.

Weakness: CWE-20 (Improper Input Validation), CWE-121 (Stack-based Buffer Overflow)

## Which versions are affected by CVE-2025-46836?


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `net-tools` | SUSE:Linux Enterprise Micro 5.1 | All versions | 2.0+git20170221.479bb4a-150000.5.13.1 |
| `net-tools` | SUSE:Linux Enterprise Micro 5.2 | All versions | 2.0+git20170221.479bb4a-150000.5.13.1 |
| `net-tools` | SUSE:Linux Enterprise Micro 5.3 | All versions | 2.0+git20170221.479bb4a-150000.5.13.1 |
| `net-tools` | SUSE:Linux Enterprise Micro 5.4 | All versions | 2.0+git20170221.479bb4a-150000.5.13.1 |
| `net-tools` | SUSE:Linux Enterprise Micro 5.5 | All versions | 2.0+git20170221.479bb4a-150000.5.13.1 |
| `net-tools` | SUSE:Linux Enterprise Module for Basesystem 15 SP6 | All versions | 2.0+git20170221.479bb4a-150000.5.13.1 |
| `net-tools` | SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 2.0+git20170221.479bb4a-150000.5.13.1 |
| `net-tools` | SUSE:Linux Enterprise Module for Legacy 15 SP6 | All versions | 2.0+git20170221.479bb4a-150000.5.13.1 |
| `net-tools` | SUSE:Linux Enterprise Module for Legacy 15 SP7 | All versions | 2.0+git20170221.479bb4a-150000.5.13.1 |
| `net-tools` | SUSE:Linux Enterprise Server 16.0 | All versions | 2.10-160000.3.1 |
| `net-tools` | SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 1.60-765.12.1 |
| `net-tools` | SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 1.60-765.15.1 |
| `net-tools` | SUSE:Linux Enterprise Server for SAP applications 16.0 | All versions | 2.10-160000.3.1 |
| `net-tools` | SUSE:Linux Micro 6.0 | All versions | 2.10-3.1 |
| `net-tools` | SUSE:Linux Micro 6.0 | All versions | 2.10-4.1 |
| `net-tools` | SUSE:Linux Micro 6.1 | All versions | 2.10-slfo.1.1_2.1 |
| `net-tools` | SUSE:Linux Micro 6.2 | All versions | 2.10-160000.3.1 |
| `net-tools` | openSUSE:Leap 15.6 | All versions | 2.0+git20170221.479bb4a-150000.5.13.1 |
| `net-tools` | openSUSE:Leap 16.0 | All versions | 2.10-160000.3.1 |
| `net-tools` | openSUSE:Tumbleweed | All versions | 2.10-4.1 |

## How do I fix CVE-2025-46836?

Apply the vendor's patch.

## Is CVE-2025-46836 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-46836 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-46836 and fix it if it is affected.

What it is: CVE-2025-46836 is a medium-severity memory corruption vulnerability in ecki net-tools, published on 14 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-46836 exists.

Affected product: ecki net-tools. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-46836/ (Markdown: https://insights.sbomify.com/CVE-2025-46836/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-46836
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-46836
- OSV: https://osv.dev/vulnerability/CVE-2025-46836

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-46836/
Summaries are generated and may contain mistakes; the official description above is the record.
