Skip to content
Info disclosure Advisory Advanced CVE-2024-7540

(0Day) (Pwn2Own) oFono AT CMGL Command Uninitialized Variable Information Disclosure Vulnerability

The oFono software fails to properly initialise memory when parsing responses to AT+CMGL commands, which can lead to disclosure of sensitive information. An attacker who can already execute code on the modem could use this flaw, possibly in combination with other bugs, to run code as root.

Théo Gordyjan from Follow

Originally disclosed on Zero Day Initiative

This vulnerability allows local attackers to disclose sensitive information on affected installations of oFono. An attacker must first obtain the ability to execute code on the target modem in order to exploit this vulnerability.

Synacktiv (@Synacktiv), on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the code that parses AT+CMGL responses reads from a memory buffer without first initialising it, so leftover data from previous use is exposed.

Impact

An attacker with code execution on the modem could disclose sensitive information and, by chaining with other vulnerabilities, potentially execute arbitrary code as root.

What the attacker needed

Ability to execute code on the target modem

The fix

The issue was addressed in an upstream patch, as indicated by the vendor response update.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This is a bug in software that handles text commands sent to a mobile modem. When the modem replies to a particular command, the program reads some memory that was never properly set up, so it may leak private data. An attacker would need to already be able to run code on the modem to take advantage of this.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Théo Gordyjan from

View all

17 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.