CVE-2025-67269
JSON

7.5high

An integer underflow vulnerability exists in the nextstate() function in gpsd/packet.c of gpsd versions prior to commit ffa1d6f40bca0b035fc…

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.56% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

Description

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 `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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
gpsdNot specified
Not affected: from 1:3.26.1-1.el10_1.1 before *
CVE List
gpsd-minimalNot specified
Not affected: from 1:3.26.1-1.el9_7.1 before *
CVE List
gpsd_project gpsdbefore 3.27.1NVD

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
redhat-SADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-191

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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 `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.

NVD (es)

Existe una vulnerabilidad de desbordamiento negativo de enteros en la función “nextstate()” en “gpsd/packet.c” de versiones de gpsd anteriores al commit “ffa1d6f40bca0b035fc7f5e563160ebb67199da7”. Al analizar un paquete NAVCOM, la longitud de la carga útil se calcula usando “lexer -> length = (size_t)c - 4” sin verificar si el byte de entrada “c” es menor que 4. Esto resulta en un desbordamiento negativo de enteros sin signo, estableciendo “lexer -> length” a un valor muy grande (cercano a “SIZE_MAX”). El analizador entra entonces en un bucle intentando consumir este número masivo de bytes, causando una utilización del 100% de la CPU y una condición de denegación de servicio (DoS).

References

Sources

SourceRecordLicence
CVE ListCVE-2025-67269 changed 2026-07-15CVE Terms of Use
NVDCVE-2025-67269 changed 2026-11-04Public domain