GHSA-585q-cm62-757j: Mnl :cb_run` Vulnerability

LOW
CWE-125
Published
Advisory Summary

GHSA-585q-cm62-757j is a LOW :cb_run` vulnerability (CWE-125: Out-of-bounds Read) affecting Mnl libraries in the crates.io ecosystem. The issue involves :cb_run`. Remediation is available by upgrading affected packages to version 0.3.1.

GHSA-585q-cm62-757j at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-585q-cm62-757j
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-125: Out-of-bounds Read
Affected Product Mnl
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-585q-cm62-757j

To remediate this vulnerability, upgrade all affected Mnl dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mnl fixed: 0.3.1
Upgrade mnl to 0.3.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for mnl

How to Check if You Are Affected

To determine whether your application is affected by GHSA-585q-cm62-757j, inspect your project dependencies for Mnl:

inspect dependencies for mnl

Analyze the terminal output to locate any version of Mnl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Mnl, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

GHSA-585q-cm62-757j Affected Mnl Versions

1 component(s)
Fixed Versions:
0.3.1
Product / Package Ecosystem Affected Versions Fixed Version
mnl
crates.io
< 0.3.1
0.3.1

References

Frequently Asked Questions

What is GHSA-585q-cm62-757j?
GHSA-585q-cm62-757j is a security vulnerability in Mnl involving :cb_run` under CWE-125: Out-of-bounds Read.
Which Mnl versions are affected?
Affected versions include releases prior to 0.3.1 across affected packages: mnl.
What version fixes GHSA-585q-cm62-757j?
Upgrading to 0.3.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mnl affected?
Yes, mnl is affected in releases prior to 0.3.1. Upgrade your dependency to 0.3.1 or later.
What CWE is associated with GHSA-585q-cm62-757j?
GHSA-585q-cm62-757j is classified under CWE-125: Out-of-bounds Read (The product reads data past the end, or before the beginning, of the intended buffer.).
How can I check crates.io dependencies for GHSA-585q-cm62-757j?
Run the dependency tree command: 'inspect dependencies for mnl'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-585q-cm62-757j",
  "modified" : "2026-02-10T16:05:51Z",
  "published" : "2026-01-09T19:53:23Z",
  "aliases" : [ ],
  "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.\n\nPassing 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.\n\nThis vulnerability allows an attacker to cause a Denial of Service (segmentation fault) or potentially read unmapped memory by providing a malformed Netlink message.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "mnl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.3.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mullvad/mnl-rs/issues/15"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mullvad/mnl-rs/pull/21"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mullvad/mnl-rs/commit/61929d11c13b6cc4f864840a586fd48c6fd20ad9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mullvad/mnl-rs"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2025-0142.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-125" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-09T19:53:23Z",
    "nvd_published_at" : null
  }
}