Skip to content

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

LowCVSS 2.0
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
crates.io mnl(crates.io) < 0.3.1; <= 0.3.0; >= 0.0.0-0, < 0.3.1 0.3.1 Fixed

Affected products

ProductAffected versionsFixed in
crates.io mnl(crates.io) < 0.3.1 0.3.1
crates.io mnl(crates.io) >= 0.0.0-0, < 0.3.1 0.3.1
crates.io mnl(crates.io) <= 0.3.0 No fix listed

References