CVE-2026-138162: Gammu before 1.45.2 Stack-Based Buffer Overflow via ALCATEL_EncodeString()
Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ALCATELEncodeString() that allows attackers to overwrite stack memory via oversized encoded phonebook text. Attackers can supply a crafted backup restored with gammu restore or addnew to an attached Alcatel phone, using GSM extension characters to crash Gammu or potentially execute code.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems running Gammu versions before 1.45.2 are exposed when using gammu restore or addnew with an attached Alcatel phone and processing oversized encoded phonebook text.
What does exploitation require?
An attacker needs to supply a crafted backup or phonebook text containing oversized data and GSM extension characters. Exploitation occurs when that content is restored or added through the affected Gammu operations.
What should be done if the affected workflow is in use?
Upgrade Gammu to version 1.45.2. Until it is upgraded, do not restore untrusted backups or use untrusted phonebook text with gammu restore or addnew on attached Alcatel phones.
How can I determine whether my environment may be affected?
Check whether Gammu is older than 1.45.2 and whether it is used to restore backups or add phonebook entries to Alcatel phones. A crash during processing of crafted oversized encoded phonebook text may indicate attempted exploitation.