]> git.ipfire.org Git - thirdparty/systemd.git/commit
hwdb: reject out-of-bounds fnmatch prefixes
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 21 May 2026 22:24:32 +0000 (23:24 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 22 May 2026 08:17:24 +0000 (09:17 +0100)
commitb45a897edc1a11b8cf2f876f00dbb73f82fe5b6a
tree9c089a56411f1a4252ef6e66f90fc0b736b59cfc
parentdced69aba52ed8b984c94ed255570e8856e1de7b
hwdb: reject out-of-bounds fnmatch prefixes

Ensure that fnmatch traversal doesn't go off the hwdb.bin in case of
a corrupted file

Originally reported on yeswehack.com as #YWH-PGM9780-70

For the unit test:
Co-developed-by: GitHub Copilot <github-copilot[bot]@users.noreply.github.com>
src/libsystemd/sd-hwdb/sd-hwdb.c
src/libsystemd/sd-hwdb/test-sd-hwdb.c