CVE-2015-1324
High · 7.8CVSS
7.8
EPSS
0.4%
Published
Aug 25, 2017
CISA due date
—
Cloudanix analysis
A flaw in Ubuntu's crash reporting tool lets someone already logged into the computer secretly gain full control of the machine.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Privilege Escalation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Local privilege escalation through Apport's incorrect permission handling when generating core dumps for setuid binaries, enabling arbitrary file writes as root.
Why it matters to the business
Local attackers can obtain full administrative control over affected Ubuntu systems, resulting in complete machine compromise and potential lateral movement within environments using these distributions.
How an attack unfolds
An attacker with local access runs a setuid binary to trigger a crash, then leverages Apport's flawed core dump handling to write attacker-controlled content into sensitive system files such as cron jobs or authentication configurations, ultimately escalating to root.
How to fix it
Upgrade Apport to the patched package versions listed in the advisory: 2.17.2-0ubuntu1.1 (Ubuntu 15.04), 2.14.70ubuntu8.5 (Ubuntu 14.10), 2.14.1-0ubuntu3.11 (Ubuntu 14.04 LTS), or 2.0.1-0ubuntu17.9 (Ubuntu 12.04 LTS). Apply updates via apt and restart affected services.
How to confirm the fix worked
Verify the installed Apport package version matches or exceeds the fixed releases for the running Ubuntu release; confirm core dump permission restrictions prevent writes by unprivileged users to arbitrary paths.
Typical attack path
- Obtain local shell access on the target Ubuntu system
- Execute a setuid binary to induce a segmentation fault
- Manipulate environment or symlink to redirect core dump output
- Write malicious payload into a privileged file via the dump mechanism
- Trigger the payload to gain root shell or persistent access
How to detect it
Review Apport logs in /var/log/apport.log and system crash directories under /var/crash for unexpected file writes or ownership changes performed by the apport process; correlate with authentication or cron log modifications.
What your security team should do
- Apply the Apport package updates immediately on all affected Ubuntu systems
- Audit local user accounts and running setuid binaries for signs of prior abuse
- Enable additional logging for Apport and core dump activity in SIEM
- Consider disabling core dumps for setuid binaries via system configuration if patching is delayed
The record
Apport before 2.17.2-0ubuntu1.1 as packaged in Ubuntu 15.04, before 2.14.70ubuntu8.5 as packaged in Ubuntu 14.10, before 2.14.1-0ubuntu3.11 as packaged in Ubuntu 14.04 LTS, and before 2.0.1-0ubuntu17.9 as packaged in Ubuntu 12.04 LTS allow local users to write to arbitrary files and gain root privileges by leveraging incorrect handling of permissions when generating core dumps for setuid binaries.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:14.04:LTS | apport | 0 | 2.14.1-0ubuntu3.11 |
Related vulnerabilities
- CVE-2021-25682 It was discovered that the get_pid_info() function in data/apport did not properly parse… Also affects apport
- CVE-2020-11936 gdbus setgid privilege escalation Also affects apport
- CVE-2020-8831 Apport creates a world writable lock file with root ownership in the world writable… Also affects apport
- CVE-2019-11481 Kevin Backhouse discovered that apport would read a user-supplied configuration file with… Also affects apport
- CVE-2019-7307 Apport before versions 2.14.1-0ubuntu3.29+esm1, 2.20.1-0ubuntu2.19, 2.20.9-0ubuntu7.7… Also affects apport
- CVE-2015-1341 Any Python module in sys.path can be imported if the command line of the process… Also affects apport
- CVE-2018-6552 Apport does not properly handle crashes originating from a PID namespace allowing local… Also affects apport
- CVE-2017-14177 Apport through 2.20.7 does not properly handle core dumps from setuid binaries allowing… Also affects apport