Your message dated Tue, 03 Nov 2026 05:05:34 +0000
with message-id <[email protected]>
and subject line Bug#1152638: fixed in aide 0.19.5-3
has caused the Debian Bug report #1152638,
regarding aide-common: 10_aide_os-release emits invalid @@define when 
VERSION_CODENAME contains a hyphen (breaks AIDE on Kali)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1152638: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1152638
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: aide-common
Version: 0.19.5-1
Severity: normal
Tags: patch

Dear Maintainer,

10_aide_os-release turns VERSION_CODENAME into part of a macro name:

_codename_uc="$(echo "$OS_RELEASE_VERSION_CODENAME" | tr '[:lower:]'
'[:upper:]')"
printf '@@define OS_RELEASE_VERSION_CODENAME_%s %s\n' "${_codename_uc}"
"${_codename_uc}"

The codename is only upper-cased, not sanitized. On a derivative whose
codename contains a hyphen, such as Kali (VERSION_CODENAME=kali-rolling,
also
kali-last-snapshot), the generated line is

@@define OS_RELEASE_VERSION_CODENAME_KALI-ROLLING KALI-ROLLING

and AIDE rejects the whole configuration:

ERROR: /etc/aide/aide.conf.d/10_aide_os-release (stdout):1: syntax error,
unexpected group name, expecting end of file (line: '@@define
OS_RELEASE_VERSION_CODENAME_KALI-ROLLING KALI-ROLLING')

As a result, aide --check, --init and dailyaidecheck all stop working on
those systems. Debian's own codenames (trixie, forky, sid) are not affected.
Combined with #1127751, the daily check can fail without anyone noticing.

The same thing happens with any codename containing characters that are not
valid in a macro name (for example "1.0-beta"). The other OS_RELEASE_*
fields
are not affected because they only appear as macro values.

Steps to reproduce (any system with aide-common 0.19.5-1):

1. printf 'ID=test\nVERSION_CODENAME=kali-rolling\n' > /tmp/os-release
2. sed 's|^import_file /etc/os-release|import_file /tmp/os-release|' \
/usr/share/aide/config/aide/aide.conf.d/10_aide_os-release > /tmp/gen.sh
3. sh /tmp/gen.sh | grep CODENAME_ > /tmp/out.conf
4. printf '@@x_include /tmp/out.conf\n/x p\n' > /tmp/t.conf
5. aide -c /tmp/t.conf --config-check -> syntax error as above

(Remove /usr/lib/os-release and /etc/initrd-release from the script too if
they set a different codename on the test machine.)

The script is unchanged in 0.19.5-2 (unstable, 28 Oct 2026), so the bug is
still present there.

Proposed fix: map every character that is not valid in a macro name to "_".
I tested it with dash and bash against kali-rolling, kali-last-snapshot,
trixie, an empty codename and 1.0-beta. aide --config-check accepts all of
them, and the output for Debian codenames is identical to before. Nothing
else in aide-common references OS_RELEASE_VERSION_CODENAME_*, so renaming
KALI-ROLLING to KALI_ROLLING breaks nothing.

--- a/usr/share/aide/config/aide/aide.conf.d/10_aide_os-release
+++ b/usr/share/aide/config/aide/aide.conf.d/10_aide_os-release
@@ -32,7 +32,7 @@
fi
fi

-_codename_uc="$(echo "$OS_RELEASE_VERSION_CODENAME" | tr '[:lower:]'
'[:upper:]')"
+_codename_uc="$(echo "$OS_RELEASE_VERSION_CODENAME" | tr '[:lower:]'
'[:upper:]' | sed 's/[^A-Z0-9_]/_/g')"
printf '@@define OS_RELEASE_VERSION_CODENAME_%s %s\n' "${_codename_uc}"
"${_codename_uc}"

I have been running the equivalent fix (tr -c 'A-Z0-9_\n' '_') on Kali
since 2026-10-30, and AIDE checks pass with it.

-- System Information:
Distributor: Kali (ID_LIKE=debian), VERSION_CODENAME=kali-rolling,
VERSION_ID=2026.3
Kernel: Linux 6.18.54.1-microsoft-standard-WSL2 (WSL2)
aide 0.19.5-1, aide-common 0.19.5-1

--- End Message ---
--- Begin Message ---
Source: aide
Source-Version: 0.19.5-3
Done: Marc Haber <[email protected]>

We believe that the bug you reported is fixed in the latest version of
aide, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Marc Haber <[email protected]> (supplier of updated aide package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 03 Nov 2026 05:19:56 +0100
Source: aide
Architecture: source
Version: 0.19.5-3
Distribution: unstable
Urgency: medium
Maintainer: Aide Maintainers <[email protected]>
Changed-By: Marc Haber <[email protected]>
Closes: 1152522 1152638
Changes:
 aide (0.19.5-3) unstable; urgency=medium
 .
   * explicitly replace $FQDN in MAILSUBJ with the FQDN.
     (Closes: #1152522)
   * fix typo bracket on 31_aide_samba
   * sanitize OS_RELEASE_VERSION_CODENAME to better support derivatives.
     Thanks to Sumit Verma (Closes: #1152638)
Checksums-Sha1:
 dd00de57fad53971587e80d55219c4587b54bd7d 2850 aide_0.19.5-3.dsc
 b7132a1c9ccc1160587f4730841392f5d9fa2dcb 126504 aide_0.19.5-3.debian.tar.xz
 657053d0aa738d0decdc87cf2481120834cfac28 1040944 aide_0.19.5-3.git.tar.xz
 99a259c308e3b0954261b694f9fc48a568cc87f0 17729 aide_0.19.5-3_source.buildinfo
Checksums-Sha256:
 90730ae2c560446e0f9413ffedb0320b34c0b9e7d2667b0c9100de25ab1c03f5 2850 
aide_0.19.5-3.dsc
 3e34033ba300bd067efd8bf201ba8c613c7b03d1238467887510f76ed05d98dc 126504 
aide_0.19.5-3.debian.tar.xz
 de5459534dcdeb6c5717c24935a1b6c713c5443cb5465050be406a54d6e276c2 1040944 
aide_0.19.5-3.git.tar.xz
 b2485acb1241350e192ac25445e9fa9d6e120c447c8471ca46a2e44b11e22cd6 17729 
aide_0.19.5-3_source.buildinfo
Files:
 0f91e800a763a9e7f56d147aee470b2a 2850 admin optional aide_0.19.5-3.dsc
 12fafa2bee72cb6f7b80fb1e50d9bea3 126504 admin optional 
aide_0.19.5-3.debian.tar.xz
 cdcf0d1510d592ae2456944cd97fea40 1040944 admin None aide_0.19.5-3.git.tar.xz
 a5c47515991e896b40ee040abe9023de 17729 admin optional 
aide_0.19.5-3_source.buildinfo
Git-Tag-Info: tag=e19f38aebd86882f0b6979b1112d8e38867bd3dc 
fp=6852d7634180aae6088c83ead54d300c376391c9
Git-Tag-Tagger: Marc Haber <[email protected]>

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmrpZqwACgkQYG0ITkaD
wHnZoRAA3mGJZojSU2soms9NcrNq88v4/Yb4o1GP7YRvsq5bP4P5r6xOqyGuUFk4
uq9wAR+MQgG4qIfJ1z7KhgbO/CquwTrGLypOm1xYUYoy1BU7PUnMeZFGfhBLwNfG
no9KNMC6ej0Eh1vM4fxFVNMjEEpgH1Pz6r1yrr61feW3GnOnse4JPCg2jULQ05VW
FvVD0uuaLi84rKI8ympcBcR/yCqVuuUfooagmBJKNeQ/X9c3Mm5UA1cn3oAnIL1z
Nn2S+SjuCKfk0OK757F0xzo76ku3Du/kK0EF1xrQQ5fZ2KTQxnn8tb8LA772m9Un
TnRxdakuNsbWocZRCfwvDlFtlZVRVnCv0fBgIpAafhWhPWrGjBdEhWfXVGJNJkO7
OLLo1E/3S3pD+foQ1kdQIGHE77RbVQLmFkPeGypgesACBxRrwCbCtkOxdJsL1ntz
wc/WBJSmqeoCF+7/W2NLTzQLVOSRztCdihxKgT3wjRh7g/gyW2AfRbMwTD39wrAX
fq2bMa3mCOVOkh/AA9uOGMryy9emUYxBs3U0V+OhcPJsf7Cz91GX+BqGvF2vSkwO
sv9kgs/0ZM/yQuueNTvJszikLL86gXi+JYBelkwNfrEtCXcqObx7ihvcnnAV2x40
UNn/1j+QuDSGic9cqyblg3K5tZFluBc7VgGBaRAbiHd1NdD55WY=
=MTAh
-----END PGP SIGNATURE-----

Attachment: pgp5RMBOyXZ41.pgp
Description: PGP signature


--- End Message ---

Reply via email to