Ubuntu Security Notice
USN-8168-2
rustc, rustc-1.76, rustc-1.77, rustc-1.78, rustc-1.79, rustc-1.80 vulnerability
Details
USN-8168-1 fixed a vulnerability in Rust. This update provides the corresponding update to Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS.
Original advisory details:
It was discovered that tar-rs embedded in rustc incorrectly handled symlinks when unpacking a tar archive. If a user or automated system were tricked into processing a specially crafted tar archive, a remote attacker could use this issue to modify permissions of arbitrary directories outside the extraction root, and possibly escalate privileges.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | rustc | All versions before 1.31.0+dfsg1+llvm-2ubuntu1~14.04.1ubuntu1 (fixed in 1.31.0+dfsg1+llvm-2ubuntu1~14.04.1ubuntu1) |
| Ubuntu:Pro:16.04:LTS | rustc | All versions before 1.47.0+dfsg1+llvm-1ubuntu1~16.04.1ubuntu2 (fixed in 1.47.0+dfsg1+llvm-1ubuntu1~16.04.1ubuntu2) |
| Ubuntu:Pro:18.04:LTS | rustc | All versions before 1.65.0+dfsg0ubuntu1~llvm2-0ubuntu0.18.04.1 (fixed in 1.65.0+dfsg0ubuntu1~llvm2-0ubuntu0.18.04.1) |
| Ubuntu:Pro:20.04:LTS | rustc | All versions before 1.75.0+dfsg0ubuntu1~bpo0-0ubuntu0.20.04.1 (fixed in 1.75.0+dfsg0ubuntu1~bpo0-0ubuntu0.20.04.1) |
| Ubuntu:Pro:20.04:LTS | rustc-1.76 | All versions before 1.76.0+dfsg0ubuntu1~bpo0-0ubuntu0.20.04.1 (fixed in 1.76.0+dfsg0ubuntu1~bpo0-0ubuntu0.20.04.1) |
| Ubuntu:Pro:20.04:LTS | rustc-1.77 | All versions before 1.77.2+dfsg1ubuntu1~bpo0-0ubuntu0.20.04.1 (fixed in 1.77.2+dfsg1ubuntu1~bpo0-0ubuntu0.20.04.1) |
| Ubuntu:Pro:20.04:LTS | rustc-1.78 | All versions before 1.78.0+dfsg1ubuntu1~bpo0-0ubuntu0.20.04.1 (fixed in 1.78.0+dfsg1ubuntu1~bpo0-0ubuntu0.20.04.1) |
| Ubuntu:Pro:20.04:LTS | rustc-1.79 | All versions before 1.79.0+dfsg1ubuntu1~bpo0-0ubuntu0.20.04.3 (fixed in 1.79.0+dfsg1ubuntu1~bpo0-0ubuntu0.20.04.3) |
| Ubuntu:Pro:20.04:LTS | rustc-1.80 | All versions before 1.80.1+dfsg0ubuntu1~bpo0-0ubuntu0.20.04.1 (fixed in 1.80.1+dfsg0ubuntu1~bpo0-0ubuntu0.20.04.1) |