GHSA-cf4g-fcf8-3cr9 `pnet_packet` buffer overrun in `set_payload` setters
MediumCVSS 6.0
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io pnet_packet(crates.io) | < 0.27.2; >= 0.0.0-0, < 0.27.2 | 0.27.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io pnet_packet(crates.io) | < 0.27.2 | 0.27.2 |
| crates.io pnet_packet(crates.io) | >= 0.0.0-0, < 0.27.2 | 0.27.2 |
References
- github.com issue-tracking
- rustsec.org vendor-advisory
- github.com
- github.com product
- crates.io product