Skip to content

CVE-2025-67268 gpsd: gpsd: Arbitrary code execution via heap-based out-of-bounds write in NMEA2000 packet handling

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

Description

gpsd before commit dc966aa contains a heap-based out-of-bounds write vulnerability in the drivers/driver_nmea2000.c file. The hnd_129540 function, which handles NMEA2000 PGN 129540 (GNSS Satellites in View) packets, fails to validate the user-supplied satellite count against the size of the skyview array (184 elements). This allows an attacker to write beyond the bounds of the array by providing a satellite count up to 255, leading to memory corruption, Denial of Service (DoS), and potentially arbitrary code execution.

Upgrade path

12 packages: 12 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 enterprise linux eus < 1:3.25-17.el10_0.1 1:3.25-17.el10_0.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(Red Hat enterprise_linux_eus 10.0) < 1:3.25-17.el10_0.1 1:3.25-17.el10_0.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 eus < 1:3.25-17.el10_0.1 1:3.25-17.el10_0.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(Red Hat:enterprise_linux_eus:10.0) < 1:3.25-17.el10_0.1 1:3.25-17.el10_0.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