Cyber Resilience

CVE-2025-67269

Memory Safety in Gpsd Project Gpsd ≤ 3.27.1

Public PoCMemory Safety
Published
02 January 2026
Modified
15 July 2026
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score 0.0049 40th percentile
Risk Priority 58 floored blend · peak EPSS

Summary

CVE-2025-67269 is a high-severity Wrap or Wraparound (CWE-191) vulnerability in Gpsd Project Gpsd. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 40th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-8 (Security and Privacy Engineering Principles) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

An integer underflow vulnerability, tracked as CVE-2025-67269, affects the `nextstate()` function in `gpsd/packet.c` within gpsd versions prior to commit `ffa1d6f40bca0b035fc7f5e563160ebb67199da7`. The issue arises during parsing of a NAVCOM packet, where the payload length is computed as `lexer->length = (size_t)c - 4` without verifying if the input byte `c` is less than 4. This triggers an unsigned integer underflow, assigning `lexer->length` a value near `SIZE_MAX`, and carries a CVSS v3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), mapped to CWE-191 (Integer Underflow).

Attackers can exploit this remotely over the network without authentication or user interaction by sending a specially crafted NAVCOM packet to a gpsd instance. Upon processing, the parser enters a loop attempting to consume an enormous number of bytes, resulting in 100% CPU utilization and a denial-of-service condition that renders the service unresponsive.

Mitigation involves updating gpsd to a version incorporating commit `ffa1d6f40bca0b035fc7f5e563160ebb67199da7` or later, available via the project's GitLab repository. Additional details are documented in the associated GitHub advisory at https://github.com/Jaenact/gspd_cve/blob/main/CVE-2025-67269/README.md.

EU & UK References

Vulnerability Data

An integer underflow vulnerability exists in the `nextstate()` function in `gpsd/packet.c` of gpsd versions prior to commit `ffa1d6f40bca0b035fc7f5e563160ebb67199da7`. When parsing a NAVCOM packet, the payload length is calculated using `lexer->length = (size_t)c - 4` without checking if the input byte…

more

`c` is less than 4. This results in an unsigned integer underflow, setting `lexer->length` to a very large value (near `SIZE_MAX`). The parser then enters a loop attempting to consume this massive number of bytes, causing 100% CPU utilization and a Denial of Service (DoS) condition.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-43628Same product: Gpsd Project Gpsd
CVE-2025-67268Same product: Gpsd Project Gpsd
CVE-2026-58459Same product: Gpsd Project Gpsd
CVE-2024-23313Shared CWE-191
CVE-2025-47128Shared CWE-191
CVE-2025-64076Shared CWE-191
CVE-2025-43546Shared CWE-191
CVE-2024-53954Shared CWE-191
CVE-2024-43867Shared CWE-191
CVE-2025-3947Shared CWE-191

Affected Assets

gpsd project
gpsd
≤ 3.27.1

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and static/dynamic analysis directly find integer underflow defects before code is released.

Security engineering principles require use of safe arithmetic constructs or language features that structurally eliminate integer underflow during subtraction.

Input validation can reject or sanitize values that would cause a subtraction to underflow the representable range.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 full match
prevents

Secure SDLC practices directly prevent integer underflow defects via input validation, bounds checking, and static analysis.

ID.RA-01 partial match
prevents

Vulnerability scanning and code analysis can surface underflow flaws after they are introduced.

PR.PS-02 partial match
prevents

Routine patching can remediate known underflow bugs once they are discovered in deployed software.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing in development catches integer underflow defects before release.

prevents

Secure development lifecycle mandates input validation and arithmetic checks that prevent integer underflow.

prevents

Application security requirements include bounds checking and safe arithmetic to avoid underflow conditions.

prevents

Secure architecture principles require defensive coding patterns that mitigate integer wraparound risks.

prevents

Secure coding standards directly prescribe safe integer handling and overflow/underflow prevention.

References