ALAS-2025-1955


Amazon Linux 1 Security Advisory: ALAS-2025-1955
Advisory Release Date: 2025-01-16 06:35 Pacific
Advisory Updated Date: 2025-01-16 18:42 Pacific
Severity: Important

Issue Overview:

A flaw was found in the rsync daemon 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. (CVE-2024-12085)

A flaw was found in rsync. It could allow a server to enumerate the contents of an arbitrary file from the client's machine. This issue occurs when files are being copied from a client to a server. During this process, the rsync server will send checksums of local data to the client to compare with in order to determine what data needs to be sent to the server. By sending specially constructed checksum values for arbitrary files, an attacker may be able to reconstruct the data of those files byte-by-byte based on the responses from the client. (CVE-2024-12086)

A path traversal vulnerability exists in rsync. It stems from behavior enabled by the `--inc-recursive` option, a default-enabled option for many client options and can be enabled by the server even if not explicitly enabled by the client. When using the `--inc-recursive` option, a lack of proper symlink verification coupled with deduplication checks occurring on a per-file-list basis could allow a server to write files outside of the client's intended destination directory. A malicious server could write malicious files to arbitrary locations named after valid directories/paths on the client. (CVE-2024-12087)

A flaw was found in rsync. When using the `--safe-links` option, rsync fails to properly verify if a symbolic link destination contains another symbolic link within it. This results in a path traversal vulnerability, which may lead to arbitrary file write outside the desired directory. (CVE-2024-12088)

A flaw was found in rsync. This vulnerability arises from a race condition during rsync's handling of symbolic links. Rsync's default behavior when encountering symbolic links is to skip them. If an attacker replaced a regular file with a symbolic link at the right time, it was possible to bypass the default behavior and traverse symbolic links. Depending on the privileges of the rsync process, an attacker could leak sensitive information, potentially leading to privilege escalation. (CVE-2024-12747)


Affected Packages:

rsync


Issue Correction:
Run yum update rsync to update your system.

New Packages:
i686:
    rsync-3.0.6-12.17.amzn1.i686
    rsync-debuginfo-3.0.6-12.17.amzn1.i686

src:
    rsync-3.0.6-12.17.amzn1.src

x86_64:
    rsync-debuginfo-3.0.6-12.17.amzn1.x86_64
    rsync-3.0.6-12.17.amzn1.x86_64