CVE-2026-138163
Description
Gammu before 1.45.2 contains a heap-based buffer overflow in ReadWAPSettingsEntry() that allows attackers to corrupt heap memory via crafted backup files with excess WAP or MMS settings entries. Attackers can supply a backup with more than four TitleNN keys in a [WAPSettings] or [MMSSettings] section, loaded via convertbackup, restore, or GSM_ReadBackupFile, causing crashes or potential code execution.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-138163 NameCVE-2026-138163 DescriptionGammu before 1.45.2 contains a heap-based buffer overflow in ReadWAPSettingsEntry() that allows attackers to corrupt heap memory via crafted backup files with excess WAP or MMS settings entries. Attackers can supply a backup with more than four TitleNN keys in a [WAPSettings] or [MMSSettings] section, loaded via convertbackup, restore, or…
CVE-2026-138163
| Name | CVE-2026-138163 |
| Description | Gammu before 1.45.2 contains a heap-based buffer overflow in ReadWAPSettingsEntry() that allows attackers to corrupt heap memory via crafted backup files with excess WAP or MMS settings entries. Attackers can supply a backup with more than four TitleNN keys in a [WAPSettings] or [MMSSettings] section, loaded via convertbackup, restore, or GSM_ReadBackupFile, causing crashes or potential code execution. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| gammu (PTS) | bookworm | 1.42.0-8 | vulnerable |
| trixie | 1.42.0-10 | vulnerable | |
| forky | 1.45.0-2 | vulnerable | |
| sid | 1.45.2-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| gammu | source | (unstable) | 1.45.2-1 |
Notes
https://github.com/gammu/gammu/security/advisories/GHSA-vppj-6q2c-vq79
Fixed by: https://github.com/gammu/gammu/commit/e0bf2fa08a78afebd493f7f00ea12ef9276ff52e (1.45.2)
Apply commands
https://github.com/gammu/gammu/security/advisories/GHSA-vppj-6q2c-vq79Fixed by: https://github.com/gammu/gammu/commit/e0bf2fa08a78afebd493f7f00ea12ef9276ff52e (1.45.2)
OS impact
Debian Mixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | gammu |
Affected | — |
| sid | gammu |
Fixed | 1.45.2-1 |
| forky | gammu |
Affected | — |
| bookworm | gammu |
Affected | — |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| gammu | gammu | {"endExcluding":"1.45.2"} | 1.45.2 |
References
- https://github.com/gammu/gammu
- https://github.com/gammu/gammu/blob/1.45.1/libgammu/service/backup/backtext.c#L2814-L2896
- https://github.com/gammu/gammu/commit/e0bf2fa08a78afebd493f7f00ea12ef9276ff52e
- https://github.com/gammu/gammu/releases/tag/1.45.2
- https://github.com/gammu/gammu/security/advisories/GHSA-vppj-6q2c-vq79
- https://www.vulncheck.com/advisories/gammu-before-1.45.2-heap-buffer-overflow-via-readwapsettingsentry
- https://security-tracker.debian.org/tracker/CVE-2026-138163
CWEs
CWE-122
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.