/
DirectorySecurity Advisories
Sign In
Security Advisories

CGA-4qj3-h8f9-qm65

Published

Last updated

https://images.chainguard.dev/security/CGA-4qj3-h8f9-qm65
Package

ztunnel-1.24

Latest Update
Fixed
Fixed Version

1.24.1-r2

Aliases
  • GHSA-gw5w-5j7f-jmjj

Summary

Unsound usages of std::slice::from_raw_parts

Description

The library breaks the safety assumptions when using unsafe API std::slice::from_raw_parts. First, when using the API in iterator implementation (TempFdArrayIterator.next), generic type could be any type, which would create and pass a misaligned pointer to the unsafe API. Second, when validating the address, the code passed the type c_void, which could also be any type, leading to potential uninitialized memory exposure.

Two unsound usages here highlight the necessity for developers to perform type checks before doing type conversion with unsafe API.

The panic caused by the misalignment causes several downstream applications (e.g., greptimedb) to crash when using pprof::report::ReportBuilder::build.

This was patched in 0.14.0.

The developer also suggested moving to pprof2.

References

  • https://github.com/advisories/GHSA-gw5w-5j7f-jmjj

Updates


Safe Source for Open Sourceâ„¢
Media KitContact Us
© 2024 Chainguard. All Rights Reserved.
Private PolicyTerms of Use

Product

Chainguard Images