Thomas Perale ae1d606f48 package/gpsd: add patches for CVE-2025-67268 & CVE-2025-67269
The `0002-gpsd-packet.c-Fix-integer-underflow-is-malicious-Nav.patch`
patch remove a hunk added in [1], not present in version 3.25. present
in 2025.02.x.

Fixes the following vulnerabilities:

- CVE-2025-67268:
    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.

For more information, see:
  - dc966aa74c
  - https://www.cve.org/CVERecord?id=CVE-2025-67268

- CVE-2025-67269:
    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.

For more information, see:
  - ffa1d6f40b
  - https://www.cve.org/CVERecord?id=CVE-2025-67269

[1] 247a89136c

(cherry picked from commit d41ed2ea54)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
2026-03-27 10:57:05 +01:00
2025-01-15 21:30:31 +01:00
2026-03-17 20:42:57 +01:00
2026-03-17 20:48:33 +01:00
2026-01-15 09:36:08 +01:00

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at https://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on OFTC IRC.

If you would like to contribute patches, please read
https://buildroot.org/manual.html#submitting-patches
Description
No description provided
Readme 206 MiB
Languages
Makefile 62.5%
Python 19%
C 8.5%
Shell 6.1%
PHP 1.4%
Other 2.1%