CVE-2023-2794
High · 8.1CVSS
8.1
EPSS
1.3%
Published
Apr 10, 2024
CISA due date
—
Cloudanix analysis
A bug in Linux telephony software can let attackers take over devices by sending a specially crafted text message.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- High
- Impact
- Full Compromise
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack-based buffer overflow in decode_deliver() caused by unbounded memcpy of attacker-controlled SMS data, enabling memory corruption that can lead to code execution or denial of service.
Why it matters to the business
Systems running ofono for telephony on Linux face risk of remote compromise or service disruption through malicious SMS or base station interaction, potentially affecting mobile connectivity services and downstream dependent packages.
How an attack unfolds
An attacker delivers a specially crafted SMS or emulates a malicious base station that reaches ofono; the decode_deliver() path lacks the length check present in decode_submit(), overflowing the stack buffer and allowing control-flow hijacking.
How to fix it
Upgrade ofono to the fixed commit 07e13a47f99856004c1c3dc7d53b99f48bf626bd or later; rebuild and redeploy packages that depend on the updated library.
How to confirm the fix worked
Confirm the running ofono binary or source contains commit 07e13a47f99856004c1c3dc7d53b99f48bf626bd; test with crafted SMS payloads that previously triggered the overflow to verify absence of crash or corruption.
Typical attack path
- Attacker obtains access via compromised modem, rogue base station, or direct SMS delivery
- Malformed SMS PDU is received and passed to ofono's SMS decoder
- decode_deliver() performs unbounded memcpy into stack buffer
- Stack overflow corrupts return address or adjacent data
- Attacker gains arbitrary code execution or crashes the process
How to detect it
Review system and application logs for ofono crashes or stack overflow indicators around SMS processing; correlate with unusual base station or modem activity.
- decode_deliver
- ofono.*SMS.*crash
- memcpy.*deliver
What your security team should do
- Apply the fixed commit immediately on all systems using ofono
- Monitor for abnormal ofono process crashes or restarts
- Restrict exposure of telephony interfaces where feasible until patched
The record
A flaw was found in ofono, an Open Source Telephony on Linux. A stack overflow bug is triggered within the decode_deliver() function during the SMS decoding. It is assumed that the attack scenario is accessible from a compromised modem, a malicious base station, or just SMS. There is a bound check for this memcpy length in decode_submit(), but it was forgotten in decode_deliver().
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | ofono | 0 | No fix |
| Debian:12 | ofono | 0 | No fix |
| Debian:13 | ofono | 0 | 1.31-4 |
| Debian:14 | ofono | 0 | 1.31-4 |
| Mageia:9 | ofono | 0 | 2.1-1.1.mga9 |
| Ubuntu:20.04:LTS | ofono | 0 | No fix |
| Ubuntu:22.04:LTS | ofono | 0 | No fix |
| Ubuntu:22.04:LTS | ofono | 0 | 1.31-3ubuntu1.1 |
| Ubuntu:24.04:LTS | ofono | 0 | No fix |
| Ubuntu:24.04:LTS | ofono | 0 | 1.31-3ubuntu3.24.04.1 |
| Ubuntu:24.10 | ofono | 0 | No fix |
| Ubuntu:24.10 | ofono | 0 | 1.31-3ubuntu3.24.10.1 |
| Ubuntu:25.04 | ofono | 0 | No fix |
| Ubuntu:25.10 | ofono | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ofono | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ofono | 0 | 1.17.bzr6912+16.04.20160314.3-0ubuntu1+esm1 |
| Ubuntu:Pro:18.04:LTS | ofono | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | ofono | 0 | 1.21-1ubuntu1+esm1 |
| Ubuntu:Pro:20.04:LTS | ofono | 0 | 1.31-2ubuntu1+esm1 |
| openSUSE:Leap 16.0 | ofono | 0 | 2.19-bp160.1.1 |
| openSUSE:Tumbleweed | ofono | 0 | 2.19-3.1 |
Related vulnerabilities
- CVE-2023-4233 A flaw was found in ofono, an Open Source Telephony on Linux. Also affects ofono
- CVE-2023-4234 A flaw was found in ofono, an Open Source Telephony on Linux. Also affects ofono
- CVE-2023-4235 A flaw was found in ofono, an Open Source Telephony on Linux. Also affects ofono
- CVE-2023-4232 A flaw was found in ofono, an Open Source Telephony on Linux. Also affects ofono
- CVE-2026-112108 A vulnerability was determined in ztxz16 fastllm up to 0.1.8.2. CWE-119
- CVE-2026-112073 A vulnerability was identified in Tencent ncnn up to 44b02dabdcf97499281a4692ebd65bad73dc… CWE-119
- CVE-2026-90831 A vulnerability was detected in GNU Binutils 2.47. CWE-119
- CVE-2026-90804 A vulnerability was detected in GNU Binutils 2.47. CWE-119