CVE-2026-138164: Gammu before 1.45.2 Stack-Based Buffer Overflow via SaveBackupText()
Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in SaveBackupText() in backtext.c that allows attackers to corrupt stack memory by supplying long text fields. Attackers can craft a backup with long calendar or note fields that, when converted with gammu convertbackup, writes hex digits past the 10,000-byte stack buffer.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems using Gammu versions before 1.45.2 are exposed when they use the gammu convertbackup command to convert an attacker-supplied or otherwise untrusted backup containing long calendar or note text fields.
What does an attacker need to exploit it?
An attacker needs to supply a crafted backup with sufficiently long text fields and have a user process it with gammu convertbackup. The published vector requires local access and user interaction.
Is the issue present in the default conversion workflow?
The vulnerable code path is reached during backup conversion through gammu convertbackup. The available information does not establish whether ordinary default configurations process untrusted backups automatically.
What should be done if upgrading cannot happen immediately?
Do not run gammu convertbackup on untrusted backups, especially files containing long calendar or note fields. Restrict conversion to backups from trusted sources until Gammu can be updated to 1.45.2 or later.