Partial String Comparison in AIDE - #VU158246
Published: October 28, 2026
Vulnerability details
The vulnerability allows a remote attacker to bypass AIDE detection of malicious file changes.
The vulnerability exists due to improper partial comparison of hash values in the bytecmp function when checking file integrity. A remote attacker can craft a modified file whose hash matches the stored hash in every byte up to and including the first null byte to cause the hash change to be silently ignored. The function uses strncmp instead of memcmp, so bytes after the null byte are not compared.