Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576860 - app-antivirus/clamav: Missing error return value when DoS protection terminates scanning
Summary: app-antivirus/clamav: Missing error return value when DoS protection terminat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard: B3 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-09 14:34 UTC by Agostino Sarubbo
Modified: 2020-04-16 06:35 UTC (History)
2 users (show)

See Also:
Package list:
app-antivirus/clamav-0.100.0
Runtime testing required: ---
nattka: sanity-check-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2016-03-09 14:34:35 UTC
From ${URL} :

When using clamscan on very large file, DoS protection terminating the scanning may apply, returning 0 value, just as in case of successfull scan. If application relies on return value of clamscan, it is possible to trick the application to hide malicious code in 
very large file, so the DoS protection in clamscan occurs, returning successful return value.

Upstream bug:

https://bugzilla.clamav.net/show_bug.cgi?id=11522

Debian report:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817067


@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 Aaron Bauman (RETIRED) gentoo-dev 2017-07-17 00:09:23 UTC
upstream still has bug locked.
Comment 2 Aaron Bauman (RETIRED) gentoo-dev 2018-01-26 14:21:00 UTC
Fixed in 0.99.3
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2018-03-02 18:56:39 UTC
We have to identify the code change. Upstream's version information was wrong in the past so we need to double check.
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2018-06-21 23:10:41 UTC
At least the commit https://github.com/Cisco-Talos/clamav-devel/commit/312b7e539106775832fad0c53d22bb8813b8240b (linked with upstream's bug id) is in =app-antivirus/clamav-0.100.0.

But keep in mind that 0.100.0 is not the successor of 0.99.3 like one would expect.

Due to this, not adjusting summary.
Comment 5 Thomas Raschbacher gentoo-dev 2018-10-07 18:58:26 UTC
@Whissi: do you have a sample file to test this on? I would hope at least that by now this is long fixed in the 0.100.X series too
Comment 6 Aaron Bauman (RETIRED) gentoo-dev 2019-08-10 14:49:22 UTC
Any update here?
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-03-13 23:59:12 UTC
(In reply to Aaron Bauman from comment #6)
> Any update here?

https://bugzilla.clamav.net/show_bug.cgi?id=11522#c5 says:
"This issue has been addressed in 0.99.3 with the addition of the clamscan --block-max option and the clamd BlockMax directive."
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-03-26 21:21:14 UTC
Tree is clean.
Comment 9 NATTkA bot gentoo-dev 2020-04-06 15:26:25 UTC
Unable to check for sanity:

> no match for package: app-antivirus/clamav-0.100.0
Comment 10 Yury German Gentoo Infrastructure gentoo-dev 2020-04-16 06:35:30 UTC
GLSA Vote: No
Thank you all for you work. 
Closing as [noglsa].