CVE-2026-138162
Description
Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ALCATEL_EncodeString() 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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-138162 NameCVE-2026-138162 DescriptionGammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ALCATEL_EncodeString() 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…
CVE-2026-138162
| Name | CVE-2026-138162 |
| Description | Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ALCATEL_EncodeString() 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. |
| 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-3x76-xc9w-q78p
Fixed by: https://github.com/gammu/gammu/commit/a1c60cf0888052dd489d416a817b24d35dca2689 (1.45.2)
Apply commands
https://github.com/gammu/gammu/security/advisories/GHSA-3x76-xc9w-q78pFixed by: https://github.com/gammu/gammu/commit/a1c60cf0888052dd489d416a817b24d35dca2689 (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/phone/alcatel/alcatel.c#L876-L916
- https://github.com/gammu/gammu/commit/a1c60cf0888052dd489d416a817b24d35dca2689
- https://github.com/gammu/gammu/releases/tag/1.45.2
- https://github.com/gammu/gammu/security/advisories/GHSA-3x76-xc9w-q78p
- https://www.vulncheck.com/advisories/gammu-before-1.45.2-stack-based-buffer-overflow-via-alcatel-encodestring
- https://security-tracker.debian.org/tracker/CVE-2026-138162
CWEs
CWE-121
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.