Package: aide Version: 0.19.1-2+deb13u6 Severity: normal Tags: trixie patch upstream fixed-upstream
Dear Maintainer, In trixie's aide, "aide --update --limit <regex>" segfaults when the regex matches a database entry whose file name AIDE stores percent-encoded (it encodes space, '#', '%', ':' and '@'). systemd template units are the most common case, e.g.: aide --update --limit '^/etc/systemd/system/getty@\.service$' -> Segmentation fault (exit 139); kernel: "segfault at 118 ... aide" Wider limits that also match other entries (e.g. '^/etc/systemd/system(/|$)') work. With such a narrow limit, "aide --check" also reports the changed file as "Added" rather than "Changed". This is upstream issue https://github.com/aide/aide/issues/228 (a NULL read in get_different_attributes(), src/gen_list.c), fixed in upstream 0.19.4 by: https://github.com/aide/aide/commit/cdf553490af3ead5574c65863465a525663e8468 "Fix segfault on limit matching encoded filename" The fix adds one line to src/db_file.c and removes one from src/db.c. testing/unstable (0.19.5-4) already contain it. Please consider it for a trixie point release. Thanks.

