Advisory

GHSA-585q-cm62-757j

Also known as: RUSTSEC-2025-0142

Summary

mnl has segmentation fault and invalid memory read in mnl::cb_run

Details

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.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2026-01-09 19:53 UTC
Modified
2026-02-10 16:30 UTC

Affected packages and fixes

mnl

crates.io · All systems

Affected

  • introduced 0, fixed 0.3.1 (semver)

Fixed versions

0.3.1

Fix

  • Fixed version 0.3.1
    cargo update -p mnl --precise 0.3.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences