Advisory

RUSTSEC-2020-0167

Also known as: GHSA-cf4g-fcf8-3cr9

Summary

pnet_packet buffer overrun in set_payload setters

Details

As indicated by this issue, a buffer overrun is possible in the set_payload setter of the various mutable "Packet" struct setters. The offending set_payload functions were defined within the struct impl blocks in earlier versions of the package, and later by the packet macro.

Fixed in the packet macro by this PR.

Severity

Medium Basis: CVSS v3 score 6, vector CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H

Dates

Published
2020-06-19 12:00 UTC
Modified
2023-11-08 04:18 UTC

Affected packages and fixes

pnet_packet

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.27.2 (semver)

Fixed versions

0.27.2

Fix

  • Fixed version 0.27.2
    cargo update -p pnet_packet --precise 0.27.2

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: RustSec Advisory Database · CC0-1.0

Sources & licences