CVE-2021-38185
Fixed in a distro release EPSS 4%CVSS 7.8
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.
Products: gnu cpio
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 8 | cpio | 2.12-11.el8 |
| Amazon Linux 2 | cpio | 2.12-11.amzn2 |
| Amazon Linux 2023 | cpio | 2.13-13.amzn2023.0.2 |
| Arch Linux | cpio | no fix |
| Debian 10 | cpio | 2.12+dfsg-9+deb10u1 |
| Debian 12 | cpio | 2.13+dfsg-5 |
| Debian 13 | cpio | 2.13+dfsg-5 |
| Debian 14 | cpio | 2.13+dfsg-5 |
| Red Hat Enterprise Linux 8 | cpio | 0:2.12-11.el8 |
| Red Hat Enterprise Linux 8 | cpio-debuginfo | 0:2.12-11.el8 |
| Red Hat Enterprise Linux 8 | cpio-debugsource | 0:2.12-11.el8 |
| Rocky Linux 8 | cpio | 0:2.12-11.el8 |
| SUSE Enterprise Storage 6 | cpio | 2.12-3.9.1 |
| SUSE HPE Helion OpenStack 8 | cpio | 2.11-36.12.1 |
| SUSE HPE Helion OpenStack 8 | cpio | 2.11-36.9.1 |
| SUSE HPE Helion OpenStack 8 | cpio | 2.11-36.15.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | cpio | 2.12-3.9.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | cpio | 2.12-3.9.1 |
| SUSE Linux Enterprise High Performance Computing 15-ESPOS | cpio | 2.12-3.9.1 |
| SUSE Linux Enterprise High Performance Computing 15-LTSS | cpio | 2.12-3.9.1 |
| SUSE Linux Enterprise Micro 5.0 | cpio | 2.12-3.9.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP2 | cpio | 2.12-3.9.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP3 | cpio | 2.12-3.9.1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | cpio | 2.9-75.81.8.1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | cpio | 2.9-75.81.14.1 |
| SUSE Linux Enterprise Server 11 SP4-LTSS | cpio | 2.9-75.81.14.1 |
| SUSE Linux Enterprise Server 11 SP4-LTSS | cpio | 2.9-75.81.8.1 |
| SUSE Linux Enterprise Server 12 SP2-BCL | cpio | 2.11-36.12.1 |
| SUSE Linux Enterprise Server 12 SP2-BCL | cpio | 2.11-36.15.1 |
| SUSE Linux Enterprise Server 12 SP2-BCL | cpio | 2.11-36.9.1 |
| SUSE Linux Enterprise Server 12 SP3-BCL | cpio | 2.11-36.12.1 |
| SUSE Linux Enterprise Server 12 SP3-BCL | cpio | 2.11-36.9.1 |
| SUSE Linux Enterprise Server 12 SP3-BCL | cpio | 2.11-36.15.1 |
| SUSE Linux Enterprise Server 12 SP3-LTSS | cpio | 2.11-36.12.1 |
| SUSE Linux Enterprise Server 12 SP3-LTSS | cpio | 2.11-36.9.1 |
| SUSE Linux Enterprise Server 12 SP3-LTSS | cpio | 2.11-36.15.1 |
| SUSE Linux Enterprise Server 12 SP4-LTSS | cpio | 2.11-36.9.1 |
| SUSE Linux Enterprise Server 12 SP4-LTSS | cpio | 2.11-36.12.1 |
| SUSE Linux Enterprise Server 12 SP4-LTSS | cpio | 2.11-36.15.1 |
| SUSE Linux Enterprise Server 12 SP5 | cpio | 2.11-36.12.1 |
| SUSE Linux Enterprise Server 12 SP5 | cpio | 2.11-36.9.1 |
| SUSE Linux Enterprise Server 12 SP5 | cpio | 2.11-36.15.1 |
| SUSE Linux Enterprise Server 15 SP1-BCL | cpio | 2.12-3.9.1 |
| SUSE Linux Enterprise Server 15 SP1-LTSS | cpio | 2.12-3.9.1 |
| SUSE Linux Enterprise Server 15-LTSS | cpio | 2.12-3.9.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | cpio | 2.11-36.12.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | cpio | 2.11-36.15.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | cpio | 2.11-36.9.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | cpio | 2.11-36.9.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | cpio | 2.11-36.15.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | cpio | 2.11-36.12.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | cpio | 2.11-36.15.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | cpio | 2.11-36.12.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | cpio | 2.11-36.9.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 | cpio | 2.12-3.9.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | cpio | 2.12-3.9.1 |
| SUSE Manager Proxy 4.0 | cpio | 2.12-3.9.1 |
| SUSE Manager Retail Branch Server 4.0 | cpio | 2.12-3.9.1 |
| SUSE Manager Server 4.0 | cpio | 2.12-3.9.1 |
| SUSE OpenStack Cloud 8 | cpio | 2.11-36.15.1 |
| SUSE OpenStack Cloud 8 | cpio | 2.11-36.9.1 |
| SUSE OpenStack Cloud 8 | cpio | 2.11-36.12.1 |
| SUSE OpenStack Cloud 9 | cpio | 2.11-36.9.1 |
| SUSE OpenStack Cloud 9 | cpio | 2.11-36.15.1 |
| SUSE OpenStack Cloud 9 | cpio | 2.11-36.12.1 |
| SUSE OpenStack Cloud Crowbar 8 | cpio | 2.11-36.9.1 |
| SUSE OpenStack Cloud Crowbar 8 | cpio | 2.11-36.12.1 |
| SUSE OpenStack Cloud Crowbar 8 | cpio | 2.11-36.15.1 |
| SUSE OpenStack Cloud Crowbar 9 | cpio | 2.11-36.12.1 |
| SUSE OpenStack Cloud Crowbar 9 | cpio | 2.11-36.9.1 |
| SUSE OpenStack Cloud Crowbar 9 | cpio | 2.11-36.15.1 |
| Ubuntu 18.04 LTS | cpio | 2.12+dfsg-6ubuntu0.18.04.4 |
| Ubuntu 20.04 LTS | cpio | 2.13+dfsg-2ubuntu0.3 |
| Ubuntu 22.04 LTS | cpio | 2.13+dfsg-4ubuntu4 |
| Ubuntu Pro 14.04 LTS | cpio | 2.11+dfsg-1ubuntu1.2+esm2 |
| Ubuntu Pro 16.04 LTS | cpio | 2.11+dfsg-5ubuntu1.1+esm1 |
| openSUSE Tumbleweed | cpio | 2.13-3.3 |