Name | CVE-2021-38185 |
Description | GNU cpio through 2.13 allows attackers to execute arbitrary code via a crafted pattern file, because of a dstring.c ds_fgetstr integer overflow that triggers an out-of-bounds heap write. NOTE: it is unclear whether there are common cases where the pattern file, associated with the -E option, is untrusted data. |
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-3445-1, ELA-863-1 |
Debian Bugs | 992045 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
cpio (PTS) | jessie, jessie (lts) | 2.11+dfsg-4.1+deb8u4 | fixed |
stretch (lts), stretch | 2.11+dfsg-6+deb9u1 | fixed | |
buster (security), buster, buster (lts) | 2.12+dfsg-9+deb10u1 | fixed | |
bullseye | 2.13+dfsg-7.1~deb11u1 | fixed | |
bookworm | 2.13+dfsg-7.1 | fixed | |
sid, trixie | 2.15+dfsg-2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
cpio | source | jessie | 2.11+dfsg-4.1+deb8u4 | ELA-863-1 | ||
cpio | source | stretch | 2.11+dfsg-6+deb9u1 | ELA-863-1 | ||
cpio | source | buster | 2.12+dfsg-9+deb10u1 | DLA-3445-1 | ||
cpio | source | bullseye | 2.13+dfsg-7.1~deb11u1 | |||
cpio | source | (unstable) | 2.13+dfsg-5 | 992045 |
[stretch] - cpio <no-dsa> (Minor issue)
https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dd96882877721703e19272fe25034560b794061b
https://github.com/fangqyi/cpiopwn
https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00000.html
https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00002.html
Regression: https://bugs.debian.org/992098
Regression fixed by: https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dfc801c44a93bed7b3951905b188823d6a0432c8
Regression #2: https://bugs.debian.org/992192
Regression #2 fixed by: https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=236684f6deb3178043fe72a8e2faca538fa2aae1