CVE-2024-12085 Rsync: info leak via uninitialized stack contents

High 7.5 Published Updated

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:8All versions3.1.3-20.el8_10
rsync-daemon AlmaLinux:8All versions3.1.3-20.el8_10
rsync AlmaLinux:9All versions3.2.3-20.el9_5.1
rsync-daemon AlmaLinux:9All versions3.2.3-20.el9_5.1
rsync Red Hat:enterprise_linux:8::baseosAll versions0:3.1.3-20.el8_10
rsync-daemon Red Hat:enterprise_linux:8::baseosAll versions0:3.1.3-20.el8_10
rsync-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:3.1.3-20.el8_10
rsync-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:3.1.3-20.el8_10
rsync-daemon Red Hat:enterprise_linux:9::appstreamAll versions0:3.2.3-20.el9_5.1
rsync Red Hat:enterprise_linux:9::baseosAll versions0:3.2.3-20.el9_5.1
rsync-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:3.2.3-20.el9_5.1
rsync-debugsource Red Hat:enterprise_linux:9::baseosAll versions0:3.2.3-20.el9_5.1
rsync Red Hat:rhel_aus:8.2::baseosAll versions0:3.1.3-7.el8_2.3
rsync-daemon Red Hat:rhel_aus:8.2::baseosAll versions0:3.1.3-7.el8_2.3
rsync-debuginfo Red Hat:rhel_aus:8.2::baseosAll versions0:3.1.3-7.el8_2.3
rsync-debugsource Red Hat:rhel_aus:8.2::baseosAll versions0:3.1.3-7.el8_2.3
rsync Red Hat:rhel_aus:8.4::baseosAll versions0:3.1.3-12.el8_4.3
rsync-daemon Red Hat:rhel_aus:8.4::baseosAll versions0:3.1.3-12.el8_4.3
rsync-debuginfo Red Hat:rhel_aus:8.4::baseosAll versions0:3.1.3-12.el8_4.3
rsync-debugsource Red Hat:rhel_aus:8.4::baseosAll versions0:3.1.3-12.el8_4.3
rsync Red Hat:rhel_aus:8.6::baseosAll versions0:3.1.3-14.el8_6.6
rsync-daemon Red Hat:rhel_aus:8.6::baseosAll versions0:3.1.3-14.el8_6.6
rsync-debuginfo Red Hat:rhel_aus:8.6::baseosAll versions0:3.1.3-14.el8_6.6
rsync-debugsource Red Hat:rhel_aus:8.6::baseosAll versions0:3.1.3-14.el8_6.6
rsync Red Hat:rhel_e4s:8.4::baseosAll versions0:3.1.3-12.el8_4.3
rsync-daemon Red Hat:rhel_e4s:8.4::baseosAll versions0:3.1.3-12.el8_4.3
rsync-debuginfo Red Hat:rhel_e4s:8.4::baseosAll versions0:3.1.3-12.el8_4.3
rsync-debugsource Red Hat:rhel_e4s:8.4::baseosAll versions0:3.1.3-12.el8_4.3
rsync Red Hat:rhel_e4s:8.6::baseosAll versions0:3.1.3-14.el8_6.6
rsync-daemon Red Hat:rhel_e4s:8.6::baseosAll versions0:3.1.3-14.el8_6.6
rsync-debuginfo Red Hat:rhel_e4s:8.6::baseosAll versions0:3.1.3-14.el8_6.6
rsync-debugsource Red Hat:rhel_e4s:8.6::baseosAll versions0:3.1.3-14.el8_6.6
rsync-daemon Red Hat:rhel_e4s:9.0::appstreamAll versions0:3.2.3-9.el9_0.3
rsync Red Hat:rhel_e4s:9.0::baseosAll versions0:3.2.3-9.el9_0.3
rsync-debuginfo Red Hat:rhel_e4s:9.0::baseosAll versions0:3.2.3-9.el9_0.3
rsync-debugsource Red Hat:rhel_e4s:9.0::baseosAll versions0:3.2.3-9.el9_0.3
rsync Red Hat:rhel_els:6All versions0:3.0.6-12.el6_10.1
rsync-debuginfo Red Hat:rhel_els:6All versions0:3.0.6-12.el6_10.1
rsync Red Hat:rhel_els:7All versions0:3.1.2-12.el7_9.1
rsync-debuginfo Red Hat:rhel_els:7All versions0: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.

All Gentoo Linux vulnerabilities

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.

Is CVE-2024-12085 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free