Description
unarr through 1.1.1 contains an off-by-one heap-based buffer overflow in tar_get_name() in tar/parse-tar.c, reachable through the ar_entry_get_name() API. Attackers can supply a crafted TAR archive with a full ustar prefix and name to write a NUL byte past the allocation, corrupting heap memory and crashing the process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| selmf | unarr | ≤ 1.1.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | unarr | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | unarr | No fix yet | — |
| Ubuntu 22.04 LTS | unarr | No fix yet | — |
| Ubuntu 20.04 LTS | unarr | No fix yet | — |
References
- https://hackmd.io/@haind-pwn/unarr-tar-zip-oob technical-description
- https://github.com/selmf/unarr/blob/b211040df83dee513362cdeb9bd87afa26fd5e38/tar/parse-tar.c#L242-L254 technical-description
- https://github.com/selmf/unarr product
- VulnCheck Advisory: unarr through 1.1.1 Off-by-One Heap Buffer Overflow via tar_get_name third-party-advisory