CVE-2024-12085 Rsync: info leak via uninitialized stack contents
An attacker can leak uninitialized stack data by manipulating checksum length during file comparison, potentially exposing sensitive memory contents.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-12085?
CVE-2024-12085 is a high-severity vulnerability in Gentoo Linux, published on 14 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-908
Which versions are affected by CVE-2024-12085?
It affects 22 products.
Linux distribution packages (40)
rsync AlmaLinux:8 | All versions | 3.1.3-20.el8_10 |
rsync-daemon AlmaLinux:8 | All versions | 3.1.3-20.el8_10 |
rsync AlmaLinux:9 | All versions | 3.2.3-20.el9_5.1 |
rsync-daemon AlmaLinux:9 | All versions | 3.2.3-20.el9_5.1 |
rsync Red Hat:enterprise_linux:8::baseos | All versions | 0:3.1.3-20.el8_10 |
rsync-daemon Red Hat:enterprise_linux:8::baseos | All versions | 0:3.1.3-20.el8_10 |
rsync-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:3.1.3-20.el8_10 |
rsync-debugsource Red Hat:enterprise_linux:8::baseos | All versions | 0:3.1.3-20.el8_10 |
rsync-daemon Red Hat:enterprise_linux:9::appstream | All versions | 0:3.2.3-20.el9_5.1 |
rsync Red Hat:enterprise_linux:9::baseos | All versions | 0:3.2.3-20.el9_5.1 |
rsync-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:3.2.3-20.el9_5.1 |
rsync-debugsource Red Hat:enterprise_linux:9::baseos | All versions | 0:3.2.3-20.el9_5.1 |
rsync Red Hat:rhel_aus:8.2::baseos | All versions | 0:3.1.3-7.el8_2.3 |
rsync-daemon Red Hat:rhel_aus:8.2::baseos | All versions | 0:3.1.3-7.el8_2.3 |
rsync-debuginfo Red Hat:rhel_aus:8.2::baseos | All versions | 0:3.1.3-7.el8_2.3 |
rsync-debugsource Red Hat:rhel_aus:8.2::baseos | All versions | 0:3.1.3-7.el8_2.3 |
rsync Red Hat:rhel_aus:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
rsync-daemon Red Hat:rhel_aus:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
rsync-debuginfo Red Hat:rhel_aus:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
rsync-debugsource Red Hat:rhel_aus:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
rsync Red Hat:rhel_aus:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
rsync-daemon Red Hat:rhel_aus:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
rsync-debuginfo Red Hat:rhel_aus:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
rsync-debugsource Red Hat:rhel_aus:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
rsync Red Hat:rhel_e4s:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
rsync-daemon Red Hat:rhel_e4s:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
rsync-debuginfo Red Hat:rhel_e4s:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
rsync-debugsource Red Hat:rhel_e4s:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
rsync Red Hat:rhel_e4s:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
rsync-daemon Red Hat:rhel_e4s:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
rsync-debuginfo Red Hat:rhel_e4s:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
rsync-debugsource Red Hat:rhel_e4s:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
rsync-daemon Red Hat:rhel_e4s:9.0::appstream | All versions | 0:3.2.3-9.el9_0.3 |
rsync Red Hat:rhel_e4s:9.0::baseos | All versions | 0:3.2.3-9.el9_0.3 |
rsync-debuginfo Red Hat:rhel_e4s:9.0::baseos | All versions | 0:3.2.3-9.el9_0.3 |
rsync-debugsource Red Hat:rhel_e4s:9.0::baseos | All versions | 0:3.2.3-9.el9_0.3 |
rsync Red Hat:rhel_els:6 | All versions | 0:3.0.6-12.el6_10.1 |
rsync-debuginfo Red Hat:rhel_els:6 | All versions | 0:3.0.6-12.el6_10.1 |
rsync Red Hat:rhel_els:7 | All versions | 0:3.1.2-12.el7_9.1 |
rsync-debuginfo Red Hat:rhel_els:7 | All versions | 0:3.1.2-12.el7_9.1 |
Products include Almalinux Almalinux, Archlinux Arch Linux, Gentoo Linux, Nixos Nixos, Redhat Enterprise Linux, Redhat Enterprise Linux Eus and 16 more.
How do I fix CVE-2024-12085?
Apply the vendor's patch.
Is CVE-2024-12085 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-12085 exists.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Gentoo Linux
- CVE-2024-12084 Rsync: heap buffer overflow in rsync due to improper checksum length handling
- CVE-2024-6387 Openssh: regresshion - race condition in ssh allows rce/dos
- CVE-2024-12087 Rsync: path traversal vulnerability in rsync
- CVE-2024-12088 Rsync: --safe-links option bypass leads to path traversal
- CVE-2024-12086 Rsync: rsync server leaks arbitrary client files
Sources
Also known as ALPINE-CVE-2024-12085, ALSA-2025:0324, ALSA-2025:0325, AZL-55649, AZL-55664, BELL-CVE-2024-12085 and 24 more.