# GHSA-585q-cm62-757j: mnl has segmentation fault and invalid memory read in `mnl::cb_run`

- Severity: Low (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-10-18T12:00:00.000Z
- Modified: 2026-02-10T16:30:09.738Z
- Also known as: RUSTSEC-2025-0142
- Weaknesses: CWE-125

## Description

The function `mnl::cb_run` is marked as safe but exhibits unsound behavior when processing malformed Netlink message buffers.

Passing a crafted byte slice to `mnl::cb_run` can trigger memory violations. The function does not sufficiently validate the input buffer structure before processing, leading to out-of-bounds reads.

This vulnerability allows an attacker to cause a Denial of Service (segmentation fault) or potentially read unmapped memory by providing a malformed Netlink message.

(As written by GitHub Advisory Database.)

## Affected

- mnl (crates.io): before 0.3.1; from 0.0.0-0 before 0.3.1

## References

- <https://github.com/mullvad/mnl-rs/issues/15> (report, web)
- <https://github.com/mullvad/mnl-rs/pull/21> (web)
- <https://github.com/mullvad/mnl-rs/commit/61929d11c13b6cc4f864840a586fd48c6fd20ad9> (web)
- <https://github.com/mullvad/mnl-rs> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0142.html> (advisory, web)
- <https://crates.io/crates/mnl> (package)

## Sources

- GitHub Advisory Database: [GHSA-585q-cm62-757j](https://github.com/advisories/GHSA-585q-cm62-757j), CC-BY-4.0, modified 2026-02-10
- RustSec Advisory Database: [RUSTSEC-2025-0142](https://rustsec.org/advisories/RUSTSEC-2025-0142.html), CC0-1.0, modified 2026-02-10

---

Page: https://cve.day/GHSA-585q-cm62-757j · Whole record: https://cve.day/GHSA-585q-cm62-757j.json · Rebuilt by cve.day 2026-11-25T22:56:43.289Z
