Skip to content

CVE-2025-67269 gpsd: gpsd: Denial of Service due to malformed NAVCOM packet parsing

HighCVSS 7.5 EPSS 0.56%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebianRed Hat

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.

Upgrade path

10 packages: 10 fixed.

PackageAffectedFixed inStatus
debian/gpsd(Debian 12) < 3.22-4.1+deb12u1; = 3.22-4.1 3.22-4.1+deb12u1 Fixed
debian/gpsd(Debian 13) < 3.25-5+deb13u1; = 3.25-5 3.25-5+deb13u1 Fixed
debian/gpsd(Debian 14) < 3.27.5-0.1; = 3.25-5; = 3.26.1-1; = 3.27-1 +1 more 3.27.5-0.1 Fixed
gpsd project gpsd < 3.27.1 3.27.1 Fixed
redhat enterprise linux < 1:3.26.1-1.el9_7.1; < 1:3.26.1-1.el10_1.1 1:3.26.1-1.el9_7.1, 1:3.26.1-1.el10_1.1 Fixed
redhat/gpsd(Red Hat enterprise_linux 10.1) < 1:3.26.1-1.el10_1.1 1:3.26.1-1.el10_1.1 Fixed
redhat/gpsd-minimal(Red Hat enterprise_linux 9) < 1:3.26.1-1.el9_7.1 1:3.26.1-1.el9_7.1 Fixed
ubuntu/gpsd(Ubuntu 22.04) < 3.22-4ubuntu2.1 3.22-4ubuntu2.1 Fixed
ubuntu/gpsd(Ubuntu 24.04) < 3.25-3ubuntu3.2 3.25-3ubuntu3.2 Fixed
ubuntu/gpsd(Ubuntu 26.04) < 3.27-1.1ubuntu1 3.27-1.1ubuntu1 Fixed

Affected products

ProductAffected versionsFixed in
debian/gpsd(Debian:12) < 3.22-4.1+deb12u1 3.22-4.1+deb12u1
debian/gpsd(Debian:12) = 3.22-4.1 No fix listed
debian/gpsd(Debian:13) < 3.25-5+deb13u1 3.25-5+deb13u1
debian/gpsd(Debian:13) = 3.25-5 No fix listed
debian/gpsd(Debian:14) < 3.27.5-0.1 3.27.5-0.1
debian/gpsd(Debian:14) = 3.25-5 No fix listed
debian/gpsd(Debian:14) = 3.26.1-1 No fix listed
debian/gpsd(Debian:14) = 3.27-1 No fix listed
debian/gpsd(Debian:14) = 3.27-1.1 No fix listed
redhat enterprise linux < 1:3.26.1-1.el10_1.1 1:3.26.1-1.el10_1.1
redhat enterprise linux < 1:3.26.1-1.el9_7.1 1:3.26.1-1.el9_7.1
ubuntu/gpsd(Ubuntu:22.04) < 3.22-4ubuntu2.1 3.22-4ubuntu2.1
redhat/gpsd(Red Hat:enterprise_linux:10.1) < 1:3.26.1-1.el10_1.1 1:3.26.1-1.el10_1.1
redhat/gpsd-minimal(Red Hat:enterprise_linux:9) < 1:3.26.1-1.el9_7.1 1:3.26.1-1.el9_7.1
ubuntu/gpsd(Ubuntu:24.04) < 3.25-3ubuntu3.2 3.25-3ubuntu3.2
ubuntu/gpsd(Ubuntu:26.04) < 3.27-1.1ubuntu1 3.27-1.1ubuntu1
gpsd project gpsd < 3.27.1 3.27.1

References