CVE-2018-6552Apport treats the container PID as the global PID when /proc/<global_pid>/ is missing
Apport does not properly handle crashes originating from a PID namespace allowing local users to create certain files as root which an attacker could leverage to perform a denial of service via resource exhaustion, possibly gain root privileges, or escape from containers. The is_same_ns() function returns True when /proc/<global pid>/ does not exist in order to indicate that the crash should be handled in the global namespace rather than inside of a container. However, the portion of the data/apport code that decides whether or not to forward a crash to a container does not always replace sys.argv[1] with the value stored in the host_pid variable when /proc/<global pid>/ does not exist which results in the container pid being used in the global namespace. This flaw affects versions 2.20.8-0ubuntu4 through 2.20.9-0ubuntu7, 2.20.7-0ubuntu3.7, 2.20.7-0ubuntu3.8, 2.20.1-0ubuntu2.15 through 2.20.1-0ubuntu2.17, and 2.14.1-0ubuntu3.28.
What to do
Fixed builds are available from Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | apport | Fixed | 2.20.9-0ubuntu7.1 | UBUNTU-CVE-2018-6552 |
| Ubuntu 16.04 | apport | Fixed | 2.20.1-0ubuntu2.18 | UBUNTU-CVE-2018-6552 |
| Ubuntu 14.04 | apport | Fixed | 2.14.1-0ubuntu3.29 | UBUNTU-CVE-2018-6552 |
What the vendor says
As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apport: affected: 2.20.8-0ubuntu4 to before unspecified, unspecified to before 2.20.9-0ubuntu7.1; fixed in
2.20.9-0ubuntu7.1 - Apport: affected: 2.20.1-0ubuntu2.15 to before unspecified, unspecified to before 2.20.1-0ubuntu2.18; fixed in
2.20.1-0ubuntu2.18 - Apport: affected: 2.20.7-0ubuntu3.7 to before unspecified, unspecified to before 2.20.7-0ubuntu3.9; fixed in
2.20.7-0ubuntu3.9 - Apport: affected: 2.14.1-0ubuntu3.28
Vendor advisories:
- https://usn.ubuntu.com/usn/usn-3664-1 (vendor-advisory)
- https://usn.ubuntu.com/3664-2/ (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.