CVE-2026-138161: Gammu before 1.45.2 Buffer Overflow via LoadBackup() MD5 Checksum
Gammu before 1.45.2 contains a buffer overflow vulnerability in LoadBackup() that allows attackers to corrupt memory by supplying an overlong MD5 value in a crafted backup file. Attackers can overwrite adjacent phonebook and calendar entry pointers via strcpy() into MD5Original when files are loaded with convertbackup or restore, causing crashes or potential code execution.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems running Gammu versions before 1.45.2 are affected when they load backup files through convertbackup or restore. The vulnerable code path is associated with processing backup-file MD5 values.
What does an attacker need to exploit it?
An attacker needs to supply a crafted backup file containing an overlong MD5 value and have that file loaded using convertbackup or restore. User interaction is required to load the malicious file.
What is the impact of a successful exploit?
The crafted MD5 value can overflow the MD5Original buffer through strcpy() and overwrite adjacent phonebook and calendar entry pointers. This can cause crashes and may allow code execution.
What should be done if patching cannot happen immediately?
Do not load untrusted backup files with convertbackup or restore. Restrict backup-file sources to files that have been validated or obtained from trusted locations until Gammu can be updated to 1.45.2 or later.