Use-after-free in Gwenhywfar BER-TLV parsing
Key facts
- Attack vector
- Physical
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-416 and the CVSS impact.
Summary
Gwenhywfar 5.14.2 contains a heap use-after-free flaw in GWEN_TLV_Buffer_To_DB() in src/parser/tlv.c. The function frees a nested record's GWEN_DB node when parsing its contents fails, then keeps processing and adds the freed node to the parent instead of returning. An attacker can supply a constructed BER-TLV record with unparseable contents, such as via a malicious chip card read by libchipcard, to corrupt heap memory (CWE-416).
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
Description from the CNA
Gwenhywfar 5.14.2 contains a heap use-after-free vulnerability in GWEN_TLV_Buffer_To_DB() in src/parser/tlv.c, which frees a nested record's GWEN_DB node when parsing of its contents fails but continues processing and adds the freed node to the parent instead of returning. Attackers can supply a constructed BER-TLV record with unparseable contents, such as via a malicious chip card read by libchipcard, to corrupt heap memory.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Martin Preuss | Gwenhywfar | 5.14.2 to before 5.14.3 | 5.14.3 | Patch available | CNA |
- Gwenhywfar VendorMartin Preuss Affected 5.14.2 to before 5.14.3 Fixed in 5.14.3 Patch available CNA
Remediation
Update Gwenhywfar to version 5.14.3, which fixes the flaw in affected versions from 5.14.2 before 5.14.3.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
- Fix · CNA Gwenhywfar (Martin Preuss) Fixed in 5.14.3
Timeline
- 2026-11-10 Threatist record created from CVE-2026-126049
- 2026-11-10 Alias added: GHSA-q838-74px-f7cc
- 2026-11-13 CISA SSVC decision points changed
References
Patch 2
More Martin Preuss vulnerabilities
- TI-2026-87883 Stack buffer overflow in Gwenhywfar TLV decoding can crash applications CVSS 4.0MEDIUM 5.1
Sources
- CVE-2026-126049 · CVE Program
- CVE-2026-126049 · NVD
- FIRST EPSS
- GHSA-q838-74px-f7cc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences