Distro News

Ubuntu releases security updates for multiple rsync vulnerabilities

Key Takeaway

A massive collection of vulnerabilities in rsync, including path traversals, race conditions, and command injections, has been patched in Ubuntu.

Summary

Ubuntu has issued a security notice addressing a wide array of vulnerabilities discovered in the rsync file-transfer utility. These flaws range from critical command and argument injections to various path traversal and race condition exploits that could allow attackers to bypass directory restrictions or execute arbitrary code.

The affected systems include Ubuntu 22.04 LTS, 24.04 LTS, 26.04 LTS, and 26.10. While many vulnerabilities affect the general rsync package, specific high-severity issues such as command injection and improper path handling for delete operations are noted to specifically impact the 22.04 and 24.04 LTS releases.

Technical breakdown of rsync vulnerabilities

  • Injection and Execution: Multiple vulnerabilities allow for command and argument injection, potentially enabling arbitrary command execution, alongside a newline injection flaw in the name-converter uid/gid mapping interface.
  • Path Traversal and Confinement: Several flaws allow attackers to bypass module roots or destination directory trees via symlinks, relative mode exploits, or the use of '/./' boundary markers, leading to unauthorized file reads or writes.
  • Race Conditions: Numerous time-of-check to time-of-use (TOCTOU) and symlink race conditions exist in the rrsync restricted shell, destination directory handling, and source tree traversal.
  • Privilege and Access Control: Vulnerabilities include IP address spoofing in PROXY protocol header handling for the rsync daemon, privilege confusion in uid/gid mapping, and symlink race conditions in ACL/extended attribute handling that could lead to local privilege escalation.
  • Denial of Service: A logic error in the --max-alloc parameter handling can allow an attacker to trigger unbounded memory allocations by setting the value to zero.

Why it matters

Because rsync is a fundamental tool for remote file synchronization and backups, these vulnerabilities pose a significant risk to system administrators and automated deployment pipelines. Users running rsync daemons or relying on restricted shells (rrsync) must prioritize these updates to prevent unauthorized data access or remote code execution.

What to do

  • Update rsync on Ubuntu 22.04 LTS, 24.04 LTS, 26.04 LTS, and 26.10 releases to address these security vulnerabilities.

Original reference: ubuntu.com →