CVE-2022-1242
NoneCVSS
—
EPSS
0.2%
Published
Jun 3, 2024
CISA due date
—
Cloudanix analysis
A bug in the crash reporting tool could let someone trick the system into giving them full administrator control through a fake connection.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Application
- Class
- Privilege Escalation
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
The vulnerability allows Apport to be tricked into connecting to arbitrary sockets while running as the root user, enabling potential privilege escalation.
Why it matters to the business
Attackers could gain root-level access on affected Linux systems, risking full compromise, though low EPSS and lack of KEV listing or ransomware use indicate limited immediate threat; libde265 packages on Alpine Linux v3.16-v3.19 are listed as impacted with fixes available.
How an attack unfolds
An attacker crafts conditions to trigger Apport's crash reporting, causing it to initiate a root-privileged connection to an arbitrary attacker-controlled socket instead of its intended destination.
How to fix it
Upgrade libde265 to version 1.0.15-r0 on Alpine Linux v3.16, v3.17, v3.18, and v3.19; apply equivalent patches for Apport where available and restart affected services.
How to confirm the fix worked
Confirm package versions match or exceed the fixed releases listed for each Alpine branch and test Apport behavior to ensure it only connects to expected sockets.
Typical attack path
- Identify a system running vulnerable Apport
- Cause a monitored process to crash in a controlled manner
- Manipulate socket or environment settings to redirect the connection
- Apport establishes root connection to attacker endpoint
- Abuse the privileged channel for further actions
How to detect it
Review Apport and system logs for unexpected socket connections initiated by root processes, focusing on crash report triggers and network activity around apport.
What your security team should do
- Prioritize patching libde265 and Apport to fixed versions
- Audit systems for any custom Apport configurations
- Enable monitoring for unexpected root socket activity
The record
Apport can be tricked into connecting to arbitrary sockets as the root user
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | apport | 0 | 2.20.9-0ubuntu7.28 |
| Ubuntu:20.04:LTS | apport | 0 | 2.20.11-0ubuntu27.24 |
| Ubuntu:22.04:LTS | apport | 0 | 2.20.11-0ubuntu82.1 |
| Ubuntu:Pro:14.04:LTS | apport | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | apport | 0 | 2.20.1-0ubuntu2.30+esm4 |
Related vulnerabilities
- CVE-2022-28657 Apport does not disable python crash handler before entering chroot Also affects apport
- CVE-2022-28656 is_closing_session() allows users to consume RAM in the Apport process Also affects apport
- CVE-2022-28658 Apport argument parsing mishandles filename splitting on older kernels resulting in… Also affects apport
- CVE-2022-28652 ~/.config/apport/settings parsing is vulnerable to "billion laughs" attack Also affects apport
- CVE-2022-28655 is_closing_session() allows users to create arbitrary tcp dbus connections Also affects apport
- CVE-2022-28654 is_closing_session() allows users to fill up apport.log Also affects apport
- CVE-2021-3899 There is a race condition in the 'replaced executable' detection that, with the correct… Also affects apport
- CVE-2021-3709 Function check_attachment_for_errors() in file data/general-hooks/ubuntu.py could be… Also affects apport