Read the docs
TI-2024-38985 Aliases GHSA-74r5-g7vc-j2v2

zerovec-derive incorrectly uses `#[repr(packed)]`

Priority LOW 38CWE-120Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

The affected versions make unsafe memory accesses under the assumption that `#[repr(packed)]` has a guaranteed field order. The Rust specification does not guarantee this, and https://github.com/rust-lang/rust/pull/125360 (1.80.0-beta) starts reordering fields of `#[repr(packed)]` structs, leading to illegal memory accesses. The patched versions `0.9.7` and `0.10.3` use `#[repr(C, packed)]`, which guarantees field order.

Why it matters now

Fix Fixed zerovec-derive (crates.io): 0.10.3, 0.9.7

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—zerovec-derive (crates.io)0.10.0 to before 0.10.30.10.3Patch availableGHSA-74r5-g7vc-j2v2
—zerovec-derive (crates.io)before 0.9.70.9.7Patch availableGHSA-74r5-g7vc-j2v2
  • zerovec-derive (crates.io) Vendor— Affected 0.10.0 to before 0.10.3 Fixed in 0.10.3 Patch available GHSA-74r5-g7vc-j2v2
  • zerovec-derive (crates.io) Vendor— Affected before 0.9.7 Fixed in 0.9.7 Patch available GHSA-74r5-g7vc-j2v2

Remediation

  • Fix · GHSA-74r5-g7vc-j2v2 zerovec-derive (crates.io) Fixed in 0.10.3 Advisory →
  • Fix · GHSA-74r5-g7vc-j2v2 zerovec-derive (crates.io) Fixed in 0.9.7 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-74r5-g7vc-j2v2

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences