Your submission was sent successfully! Close

Thank you for contacting us. A member of our team will be in touch shortly. Close

You have successfully unsubscribed! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates about Ubuntu and upcoming events where you can meet our team.Close

CVE-2021-38185

Publication date 8 August 2021

Last updated 24 July 2024


Ubuntu priority

Cvss 3 Severity Score

7.8 · High

Score breakdown

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.

Read the notes from the security team

Status

Package Ubuntu Release Status
cpio 23.04 lunar
Fixed 2.13+dfsg-4ubuntu4
22.10 kinetic
Fixed 2.13+dfsg-4ubuntu4
22.04 LTS jammy
Fixed 2.13+dfsg-4ubuntu4
21.10 impish
Fixed 2.13+dfsg-4ubuntu4
21.04 hirsute
Fixed 2.13+dfsg-4ubuntu0.3
20.04 LTS focal
Fixed 2.13+dfsg-2ubuntu0.3
18.04 LTS bionic
Fixed 2.12+dfsg-6ubuntu0.18.04.4
16.04 LTS xenial
14.04 LTS trusty

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro

Notes


mdeslaur

second commit fixes a regression. There seems to still be a regression even with the second commit as it is causing the kernel to FTBFS. Also see debian bugs for regressions. the third commit likely fixes the kernel regressions

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
cpio

Severity score breakdown

Parameter Value
Base score 7.8 · High
Attack vector Local
Attack complexity Low
Privileges required None
User interaction Required
Scope Unchanged
Confidentiality High
Integrity impact High
Availability impact High
Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References

Related Ubuntu Security Notices (USN)

    • USN-5064-1
    • GNU cpio vulnerability
    • 8 September 2021
    • USN-5064-2
    • GNU cpio vulnerability
    • 27 January 2022

Other references