Name | CVE-2016-5418 |
Description | The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries of non-zero data size, which might allow remote attackers to write to arbitrary files via a crafted archive file. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-657-1, DSA-3677-1 |
Debian Bugs | 837714 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
libarchive (PTS) | jessie, jessie (lts) | 3.1.2-11+deb8u11 | fixed |
stretch (security) | 3.2.2-2+deb9u3 | fixed | |
stretch (lts), stretch | 3.2.2-2+deb9u4 | fixed | |
buster (security), buster, buster (lts) | 3.3.3-4+deb10u3 | fixed | |
bullseye | 3.4.3-2+deb11u1 | fixed | |
bookworm (security), bookworm | 3.6.2-1+deb12u1 | fixed | |
trixie | 3.7.4-1 | fixed | |
sid | 3.7.4-1.1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
libarchive | source | wheezy | 3.0.4-3+wheezy4 | DLA-657-1 | ||
libarchive | source | jessie | 3.1.2-11+deb8u3 | DSA-3677-1 | ||
libarchive | source | (unstable) | 3.2.1-4 | 837714 |
Centos patch: https://git.centos.org/blob/rpms!libarchive.git/9952851f8b327a8c93d26a5873c190c1fb09ae6c/SOURCES!libarchive-3.1.2-CVE-2016-5418.patch;jsessionid=1dexz8h9qdewibih5aonbu3
Centos additional patch: https://git.centos.org/blob/rpms!libarchive.git/9952851f8b327a8c93d26a5873c190c1fb09ae6c/SOURCES!libarchive-3.1.2-CVE-2016-5418-variation.patch;jsessionid=1dexz8h9qdewibih5aonbu3
Fixed by (for #744): https://github.com/libarchive/libarchive/commit/1fa9c7bf90f0862036a99896b0501c381584451a
Fixed by (for #745 and #746): https://github.com/libarchive/libarchive/commit/dfd6b54ce33960e420fb206d8872fb759b577ad9
https://bugzilla.redhat.com/show_bug.cgi?id=1362601, relates to upstream bugs #744, #745 and #746
https://github.com/libarchive/libarchive/issues/743 (umbrella report)
https://github.com/libarchive/libarchive/issues/744
https://github.com/libarchive/libarchive/issues/745
https://github.com/libarchive/libarchive/issues/746
Testcase: https://github.com/libarchive/libarchive/commit/063ea3ea3fcb569a380b2ebe9c9ddd8bd6ce0d49
Fix for testcase: https://github.com/libarchive/libarchive/commit/50952acd22df3326c49771f5e5ba48630899468c