CVE-2024-12085: Rsync: info leak via uninitialized stack contents
A flaw was found in rsync which could be triggered when rsync compares file checksums. This flaw allows an attacker to manipulate the checksum length (s2length) to cause a comparison between a checksum and uninitialized memory and leak one byte of uninitialized stack data at a time.
Other sources
Rsync: info leak via uninitialized stack contents
— Microsoft
The attacker can exploit this vulnerability to leak uninitialized stack data byte by byte, potentially exposing memory locations of critical data.It uses a buffer (sum2) on the stack to store part of the checksum but does not initialize this buffer. An attacker can manipulate the checksum length (s2length) to cause a comparison between a checksum and uninitialized memory. This allows an attacker to leak one byte of uninitialized stack data at a time. Over multiple requests, the attacker can leak up to MAXDIGESTLEN - 8 bytes of sensitive data, which could help defeat Address Space Layout Randomization (ASLR).
— Red Hat
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/rsyncto a version that resolves this vulnerability.Fixed in 3.2.3-4+deb11u3Fixed in 3.2.7-1+deb12u2Fixed in 3.3.0+ds1-4
Event History
Peer vulnerabilities
Found alongside the following vulnerabilities.
Frequently Asked Questions
What is the severity of CVE-2024-12085?
CVE-2024-12085 is considered a moderate severity vulnerability that can lead to the disclosure of sensitive information.
How do I fix CVE-2024-12085?
To fix CVE-2024-12085, you should upgrade to a patched version of rsync, specifically 3.2.3-4+deb11u3, 3.2.7-1+deb12u2, or 3.3.0+ds1-4.
What software is affected by CVE-2024-12085?
CVE-2024-12085 affects specific versions of the rsync package, including versions up to 3.2.3-4+deb11u1 and 3.2.7-1.
What type of vulnerability is CVE-2024-12085?
CVE-2024-12085 is a memory corruption vulnerability that can leak one byte of uninitialized stack data.
Is there any workaround for CVE-2024-12085?
There are no known effective workarounds for CVE-2024-12085, making upgrading to a fixed version essential.