Article View: linux.debian.bugs.dist
Article #6541Bug#1155646: aide: --update --limit segfaults when the limit matches a percent-encoded file name
From: Charlie Garrison
Date: Sat, 28 Nov 2026 10:10
Date: Sat, 28 Nov 2026 10:10
30 lines
2958 bytes
2958 bytes
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.
Technical Details
Message-ID:
<O4nxv-eEzH-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod From: Charlie Garrison <cng@cngarrison.com> Newsgroups: linux.debian.bugs.dist Subject: Bug#1155646: aide: --update --limit segfaults when the limit matches a percent-encoded file name Date: Sat, 28 Nov 2026 11:10:01 +0100 Message-ID: <O4nxv-eEzH-3@gated-at.bofh.it> X-Original-To: submit@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sat Nov 28 10:09:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Charlie Garrison <cng@cngarrison.com>, 1155646@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: aide@packages.debian.org X-Debian-Pr-Message: report 1155646 X-Debian-Pr-Package: aide X-Debian-Pr-Keywords: fixed-upstream patch trixie upstream X-Debian-Pr-Source: aide Old-X-Envelope-To: submit@bugs.debian.org Old-X-Envelope-To: submit@bugs.debian.org X-Mizu-Trace-ID: 02ab54171e756e24 X-Migadu-Flow: FLOW_OUT X-Mailer: MailMate (2.0r6272) MIME-Version: 1.0 Content-Type: text/plain; markup=markdown X-Greylist: delayed 2172 seconds by postgrey-1.37 at buxtehude; Sat, 28 Nov 2026 10:06:42 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005584 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 30 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 28 Nov 2026 20:30:15 +1100 X-Original-Message-ID: <91624D81-E40D-438F-ACFD-A41D36990E77@cngarrison.com>