-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clamscan Crashes on AIX When Scanning ZIP Files Containing MS-EXE/DLL Files #1435
Comments
@micahsnyder , @caiusionduca has reported this issue correctly. The other AIX customers will also see this issue. What is happening is we have a problem here This load module function will not work properly in AIX since we do not have a LD_LIBRARY_PATH environment variable. We have a LIBPATH environment variable, which we can use. Hence the below happens
And Clamscan crashes with a core dump. I would like to make changes in that place to support this in AIX and raise a PR. I am working on the fix and testing. Want to keep you informed, @micahsnyder :) |
@KamathForAIX I don't think the library load issue has anything to do with the crash. The dynamic unrar loading process is designed to keep going if unrar can't be found. Can you test if the crash also occurs in 1.4? We've made a number of code quality improvements in the PE (EXE/DLL) parser since 1.0 along the lines of pointer alignment, overlapping memory copies, and more. E.g. |
@micahsnyder Even in 1.4 it core dumps.
clamscan --versionClamAV 1.4.0/27525/Tue Jan 21 03:37:18 2025 |
@micahsnyder So AIX has two pow() functions. One in libbsd and another in libc. The way we built clamav in AIX, when the code here hit, we used bsd pow (), and the value was difficult for that legacy pow () to handle, leading to a core dump. If we link the libc pow () correctly, then we will not see the issue. Which I have done. Attaching the log below of the correct output. With this fix and a PR I raised, I would like to close this issue. The pull request makes the load module function AIX-friendly. Thanks for your help. You can always contact me for AIX issues. Kindly let me know what you think about the PR :)
|
Running into this on AIX as well - recreated by scanning (ClamAV version 1.0.7): Snippet from the core dump, reinforces what @KamathForAIX mentioned: |
Hello,
I am encountering an issue with ClamAV on AIX 7.2. Specifically, Clamscan crashes when scanning certain ZIP or JAR files that contain MS-EXE/DLL files inside. For example:
/var/ibm/InstallationManager/bundles/plugins/com.ibm.ws.check.os.v80_8.0.5024.20230413_1800.jar
/opt/freeware/lib/python3.7/ensurepip/_bundled/pip-22.0.4-py3-none-any.whl
This issue seems to occur only with files containing Windows executables or libraries (MS-EXE/DLL). Other ZIP or JAR files without these contents scan successfully.
I am using ClamAV version 1:1.0.7-2.ppc. The crashes do not produce meaningful error messages, making it difficult to identify the root cause.
Has anyone else experienced this issue on AIX or other platforms? Are there known workarounds or fixes for handling such files without causing Clamscan to crash?
I would greatly appreciate any guidance or suggestions from the community.
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered: