NetSight
medium5.5

CVE-2020-35916

Mutable reference with immutable provenance in image

Impact

A mutable reference to a struct was constructed by dereferencing a pointer obtained from slice::as_ptr. Instead, slice::as_mut_ptr should have been called on the mutable slice argument. The former performs an implicit reborrow as an immutable shared reference which does not allow writing through the derived pointer.

Affected packages

EcosystemPackageAffectedFixed in
rustimage< 0.23.120.23.12

Affected products

VendorProductAffected versions
Image-RsImage
before 0.23.12

Weakness classification

References