Unaligned Reference Vulnerability in rust-sized-chunks Package

rust-sized-chunks Updated 02 Oct 2025

Summary

19/09/2020
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2020-25796: An issue was discovered in the sized-chunks crate through 0.6.2 for Rust. Affects rust-sized-chunks versions < 0.6.5-1. Fixed in 0.6.5-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The rust-sized-chunks package is a Rust crate designed to handle arrays of variable sizes efficiently. It provides functionality for managing memory and data alignment, which is crucial for performance in systems programming. However, the package has a vulnerability that affects its InlineArray implementation, leading to potential security risks.

Vulnerability Detail

An issue was discovered in the sized-chunks crate through version 0.6.2 for Rust. In the InlineArray implementation, an unaligned reference may be generated for a type that has a large alignment requirement. This can lead to undefined behavior, crashes, or security vulnerabilities, particularly in systems where memory alignment is critical.

How To Fix

Minimum fixed version

0.6.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade rust-sized-chunks

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can avoid using the InlineArray implementation until the package is updated. This may involve refactoring your code to use alternative data structures that do not rely on rust-sized-chunks.

Conclusion

The rust-sized-chunks package has a vulnerability that can lead to unaligned references, posing risks to applications relying on this crate. It is crucial to update to the patched version to mitigate these risks. Users can also utilize Vulert to monitor and check for vulnerabilities in their applications.

See every vulnerability recorded for rust-sized-chunks →

Share this vulnerability

FAQ

The vulnerability involves the generation of unaligned references in the InlineArray implementation, which can lead to undefined behavior.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The consequences may include crashes, undefined behavior, and security vulnerabilities, particularly in systems where memory alignment is crucial.

Yes, a patched version (0.6.5-1) is available. Updating to this version will resolve the vulnerability.

If you cannot update the package, consider refactoring your code to avoid using the InlineArray implementation as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for rust-sized-chunks.

How To Fix

Minimum fixed version

0.6.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade rust-sized-chunks

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback