Bug 50131 - clamav: Multiple issues (4.4)
clamav: Multiple issues (4.4)
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Security updates
UCS 4.4
All Linux
: P3 normal (vote)
: UCS 4.4-1-errata
Assigned To: Quality Assurance
Philipp Hahn
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-09-09 11:35 CEST by Quality Assurance
Modified: 2019-09-11 15:25 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Security Issue
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score: 4.0 (CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) Debian RedHat


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Quality Assurance univentionstaff 2019-09-09 11:35:16 CEST
New Debian clamav 0.101.4+dfsg-0+deb9u1A~4.4.1.201909091134 fixes:
This update addresses the following issues:
* clamav (CVE-2019-12625)
* out-of-bounds write in function BZ2_decompress (CVE-2019-12900)
Comment 1 Quality Assurance univentionstaff 2019-09-09 15:00:26 CEST
--- mirror/ftp/4.4/unmaintained/4.4-1/source/clamav_0.100.3+dfsg-0+deb9u1A~4.3.4.201904290751.dsc
+++ apt/ucs_4.4-0-errata4.4-1/source/clamav_0.101.4+dfsg-0+deb9u1A~4.4.1.201909091134.dsc
@@ -1,27 +1,60 @@
-0.100.3+dfsg-0+deb9u1A~4.3.4.201904290751 [Mon, 29 Apr 2019 07:52:01 +0200] Univention builddaemon <buildd@univention.de>:
+0.101.4+dfsg-0+deb9u1A~4.4.1.201909091134 [Mon, 09 Sep 2019 11:35:20 +0200] Univention builddaemon <buildd@univention.de>:
 
-  * UCS auto build. The following patches have been applied to the original source package
-    030-silence-version-msg
+  * UCS auto build. No patches were applied to the original source package
 
-0.100.3+dfsg-0+deb9u1 [Fri, 29 Mar 2019 19:40:34 -0400] Scott Kitterman <scott@kitterman.com>:
+0.101.4+dfsg-0+deb9u1 [Sun, 25 Aug 2019 14:08:40 +0200] Sebastian Andrzej Siewior <sebastian@breakpoint.cc>:
 
-  * New upstream security release
-    - Fixes for the following vulnerabilities:
-      - [CVE-2019-1787]:
-        An out-of-bounds heap read condition may occur when scanning PDF
-        documents. The defect is a failure to correctly keep track of the number
-        of bytes remaining in a buffer when indexing file data.
-      - [CVE-2019-1789]:
-        An out-of-bounds heap read condition may occur when scanning PE files
-        (i.e. Windows EXE and DLL files) that have been packed using Aspack as a
-        result of inadequate bound-checking.
-      - [CVE-2019-1788]:
-        An out-of-bounds heap write condition may occur when scanning OLE2 files
-        such as Microsoft Office 97-2003 documents. The invalid write happens when
-        an invalid pointer is mistakenly used to initialize a 32bit integer to
-        zero. This is likely to crash the application.
-  * Update debian/copyright
-  * Update private symbols for new upstream release
+  * Import 0.101.4 (Closes: 921190)
+   - CVE-2019-12625 (Add scan time limit to limit the processing zip-bombs)
+     (Closes:934359)
+   - CVE-2019-12900 (An out of bounds write was possible within ClamAV's
+     NSIS bzip)
+   - update symbols file (bump to 101.4 and drop unused cli_strnstr).
+
+0.101.2+dfsg-0+deb9u1 [Fri, 05 Apr 2019 22:07:01 +0200] Sebastian Andrzej Siewior <sebastian@breakpoint.cc>:
+
+  * Import 0.101.2
+   - CVE-2019-1787 (An out-of-bounds heap read condition may occur when
+     scanning PDF documents)
+   - CVE-2019-1789 (An out-of-bounds heap read condition may occur when
+     scanning PE files)
+   - CVE-2019-1788 (An out-of-bounds heap write condition may occur when
+     scanning OLE2 files)
+   - CVE-2019-1786 (An out-of-bounds heap read condition may occur when
+     scanning malformed PDF documents)
+   - CVE-2019-1785 (A path-traversal write condition may occur as a result of
+     improper input validation when scanning RAR archives)
+   - CVE-2019-1798 (A use-after-free condition may occur as a result of
+     improper error handling when scanning nested RAR archives)
+   - update symbols file
+   - Remove DetectBrokenExecutables option from clamd template, it is
+     deprecated.
+
+0.101.1+dfsg-0+deb9u1 [Sun, 10 Mar 2019 16:49:51 +0100] Sebastian Andrzej Siewior <sebastian@breakpoint.cc>:
+
+  [ Scott Kitterman ]
+  * Increase clamd socket command read timeout to 30 seconds (Closes: #915098)
+  * Add information to README.Debian on configuring clamav-milter's socket to
+    work with postfix
+  * Add lintian override for source-is-missing on test file that happens
+    to have long line length
+
+  [ Sebastian Andrzej Siewior ]
+  * Import new upstream release.
+   - update symbol file.
+   - add new options to the config file.
+   - package libclamav9
+  * Import 0.101.1
+    - update symbol file
+    - add back the json/curl configure options (don't rely on autodetect).
+  * Add abstractions/openssl to apparmor's profile. Thanks to intrigeri for
+    the help (Closes: #913020).
+  * Load the apparmor profile before starting the daemon. Thanks to intrigeri
+    for the help (Closes: #903834).
+  * Add attach_disconnected to freshclam's apparmor profile to hopefully get
+    it properly working in overlayfs enviroment. Thanks to Vincas Dargis
+    (Closes: #917648).
+  * debian/libclamav-dev.install: also install clamav-types.h
 
 0.100.2+dfsg-0+deb9u1 [Fri, 12 Oct 2018 23:44:44 +0200] Sebastian Andrzej Siewior <sebastian@breakpoint.cc>:
 

<http://10.200.17.11/4.4-1/#5521575113207582264>
Comment 2 Quality Assurance univentionstaff 2019-09-10 08:00:39 CEST
--- mirror/ftp/4.4/unmaintained/4.4-1/source/clamav_0.100.3+dfsg-0+deb9u1A~4.3.4.201904290751.dsc
+++ apt/ucs_4.4-0-errata4.4-1/source/clamav_0.101.4+dfsg-0+deb9u1A~4.4.0.201909091505.dsc
@@ -1,27 +1,61 @@
-0.100.3+dfsg-0+deb9u1A~4.3.4.201904290751 [Mon, 29 Apr 2019 07:52:01 +0200] Univention builddaemon <buildd@univention.de>:
+0.101.4+dfsg-0+deb9u1A~4.4.0.201909091505 [Mon, 09 Sep 2019 15:05:24 +0200] Univention builddaemon <buildd@univention.de>:
 
   * UCS auto build. The following patches have been applied to the original source package
     030-silence-version-msg
 
-0.100.3+dfsg-0+deb9u1 [Fri, 29 Mar 2019 19:40:34 -0400] Scott Kitterman <scott@kitterman.com>:
+0.101.4+dfsg-0+deb9u1 [Sun, 25 Aug 2019 14:08:40 +0200] Sebastian Andrzej Siewior <sebastian@breakpoint.cc>:
 
-  * New upstream security release
-    - Fixes for the following vulnerabilities:
-      - [CVE-2019-1787]:
-        An out-of-bounds heap read condition may occur when scanning PDF
-        documents. The defect is a failure to correctly keep track of the number
-        of bytes remaining in a buffer when indexing file data.
-      - [CVE-2019-1789]:
-        An out-of-bounds heap read condition may occur when scanning PE files
-        (i.e. Windows EXE and DLL files) that have been packed using Aspack as a
-        result of inadequate bound-checking.
-      - [CVE-2019-1788]:
-        An out-of-bounds heap write condition may occur when scanning OLE2 files
-        such as Microsoft Office 97-2003 documents. The invalid write happens when
-        an invalid pointer is mistakenly used to initialize a 32bit integer to
-        zero. This is likely to crash the application.
-  * Update debian/copyright
-  * Update private symbols for new upstream release
+  * Import 0.101.4 (Closes: 921190)
+   - CVE-2019-12625 (Add scan time limit to limit the processing zip-bombs)
+     (Closes:934359)
+   - CVE-2019-12900 (An out of bounds write was possible within ClamAV's
+     NSIS bzip)
+   - update symbols file (bump to 101.4 and drop unused cli_strnstr).
+
+0.101.2+dfsg-0+deb9u1 [Fri, 05 Apr 2019 22:07:01 +0200] Sebastian Andrzej Siewior <sebastian@breakpoint.cc>:
+
+  * Import 0.101.2
+   - CVE-2019-1787 (An out-of-bounds heap read condition may occur when
+     scanning PDF documents)
+   - CVE-2019-1789 (An out-of-bounds heap read condition may occur when
+     scanning PE files)
+   - CVE-2019-1788 (An out-of-bounds heap write condition may occur when
+     scanning OLE2 files)
+   - CVE-2019-1786 (An out-of-bounds heap read condition may occur when
+     scanning malformed PDF documents)
+   - CVE-2019-1785 (A path-traversal write condition may occur as a result of
+     improper input validation when scanning RAR archives)
+   - CVE-2019-1798 (A use-after-free condition may occur as a result of
+     improper error handling when scanning nested RAR archives)
+   - update symbols file
+   - Remove DetectBrokenExecutables option from clamd template, it is
+     deprecated.
+
+0.101.1+dfsg-0+deb9u1 [Sun, 10 Mar 2019 16:49:51 +0100] Sebastian Andrzej Siewior <sebastian@breakpoint.cc>:
+
+  [ Scott Kitterman ]
+  * Increase clamd socket command read timeout to 30 seconds (Closes: #915098)
+  * Add information to README.Debian on configuring clamav-milter's socket to
+    work with postfix
+  * Add lintian override for source-is-missing on test file that happens
+    to have long line length
+
+  [ Sebastian Andrzej Siewior ]
+  * Import new upstream release.
+   - update symbol file.
+   - add new options to the config file.
+   - package libclamav9
+  * Import 0.101.1
+    - update symbol file
+    - add back the json/curl configure options (don't rely on autodetect).
+  * Add abstractions/openssl to apparmor's profile. Thanks to intrigeri for
+    the help (Closes: #913020).
+  * Load the apparmor profile before starting the daemon. Thanks to intrigeri
+    for the help (Closes: #903834).
+  * Add attach_disconnected to freshclam's apparmor profile to hopefully get
+    it properly working in overlayfs enviroment. Thanks to Vincas Dargis
+    (Closes: #917648).
+  * debian/libclamav-dev.install: also install clamav-types.h
 
 0.100.2+dfsg-0+deb9u1 [Fri, 12 Oct 2018 23:44:44 +0200] Sebastian Andrzej Siewior <sebastian@breakpoint.cc>:
 

<http://10.200.17.11/4.4-1/#3718314944348825753>
Comment 3 Felix Botner univentionstaff 2019-09-10 09:54:30 CEST
This breaks univention-antivir-mail, seems that libclamav9 didn't make it into maintained (?)

$ apt-get -s install univention-antivir-mail 
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 univention-antivir-mail : Hängt ab von: clamav soll aber nicht installiert werden
                           Hängt ab von: clamav-daemon soll aber nicht installiert werden oder
                                          kav4fileservers ist aber nicht installierbar oder
                                          sophie ist aber nicht installierbar

$ apt-get -s install clamav
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 clamav : Hängt ab von: clamav-freshclam (>= 0.101.4+dfsg) soll aber nicht installiert werden oder
                         clamav-data
          Hängt ab von: libclamav9 (>= 0.101.4) ist aber nicht installierbar


$ apt-get -s install clamav-freshclam
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 clamav-freshclam : Hängt ab von: libclamav9 (>= 0.101.4) ist aber nicht installierbar

$ apt-get -s install libclamav9
E: Für Paket »libclamav9« existiert kein Installationskandidat.
Comment 4 Felix Botner univentionstaff 2019-09-10 10:00:20 CEST
tested with ...updates-test.software-univention.de/4.4/maintained/component/ 4.4-1-errata-test...
Comment 5 Philipp Hahn univentionstaff 2019-09-10 10:56:33 CEST
(In reply to Felix Botner from comment #4)
> tested with ...updates-test.software-univention.de/4.4/maintained/component/
> 4.4-1-errata-test...

Fixed by running <http://jenkins.knut.univention.de:8080/job/Mitarbeiter/job/phahn/job/CalculateMaintained/> again.
Comment 6 Quality Assurance univentionstaff 2019-09-10 11:00:47 CEST
--- mirror/ftp/4.4/unmaintained/4.4-1/source/clamav_0.100.3+dfsg-0+deb9u1A~4.3.4.201904290751.dsc
+++ apt/ucs_4.4-0-errata4.4-1/source/clamav_0.101.4+dfsg-0+deb9u1A~4.4.0.201909091505.dsc
@@ -1,27 +1,61 @@
-0.100.3+dfsg-0+deb9u1A~4.3.4.201904290751 [Mon, 29 Apr 2019 07:52:01 +0200] Univention builddaemon <buildd@univention.de>:
+0.101.4+dfsg-0+deb9u1A~4.4.0.201909091505 [Mon, 09 Sep 2019 15:05:24 +0200] Univention builddaemon <buildd@univention.de>:
 
   * UCS auto build. The following patches have been applied to the original source package
     030-silence-version-msg
 
-0.100.3+dfsg-0+deb9u1 [Fri, 29 Mar 2019 19:40:34 -0400] Scott Kitterman <scott@kitterman.com>:
+0.101.4+dfsg-0+deb9u1 [Sun, 25 Aug 2019 14:08:40 +0200] Sebastian Andrzej Siewior <sebastian@breakpoint.cc>:
 
-  * New upstream security release
-    - Fixes for the following vulnerabilities:
-      - [CVE-2019-1787]:
-        An out-of-bounds heap read condition may occur when scanning PDF
-        documents. The defect is a failure to correctly keep track of the number
-        of bytes remaining in a buffer when indexing file data.
-      - [CVE-2019-1789]:
-        An out-of-bounds heap read condition may occur when scanning PE files
-        (i.e. Windows EXE and DLL files) that have been packed using Aspack as a
-        result of inadequate bound-checking.
-      - [CVE-2019-1788]:
-        An out-of-bounds heap write condition may occur when scanning OLE2 files
-        such as Microsoft Office 97-2003 documents. The invalid write happens when
-        an invalid pointer is mistakenly used to initialize a 32bit integer to
-        zero. This is likely to crash the application.
-  * Update debian/copyright
-  * Update private symbols for new upstream release
+  * Import 0.101.4 (Closes: 921190)
+   - CVE-2019-12625 (Add scan time limit to limit the processing zip-bombs)
+     (Closes:934359)
+   - CVE-2019-12900 (An out of bounds write was possible within ClamAV's
+     NSIS bzip)
+   - update symbols file (bump to 101.4 and drop unused cli_strnstr).
+
+0.101.2+dfsg-0+deb9u1 [Fri, 05 Apr 2019 22:07:01 +0200] Sebastian Andrzej Siewior <sebastian@breakpoint.cc>:
+
+  * Import 0.101.2
+   - CVE-2019-1787 (An out-of-bounds heap read condition may occur when
+     scanning PDF documents)
+   - CVE-2019-1789 (An out-of-bounds heap read condition may occur when
+     scanning PE files)
+   - CVE-2019-1788 (An out-of-bounds heap write condition may occur when
+     scanning OLE2 files)
+   - CVE-2019-1786 (An out-of-bounds heap read condition may occur when
+     scanning malformed PDF documents)
+   - CVE-2019-1785 (A path-traversal write condition may occur as a result of
+     improper input validation when scanning RAR archives)
+   - CVE-2019-1798 (A use-after-free condition may occur as a result of
+     improper error handling when scanning nested RAR archives)
+   - update symbols file
+   - Remove DetectBrokenExecutables option from clamd template, it is
+     deprecated.
+
+0.101.1+dfsg-0+deb9u1 [Sun, 10 Mar 2019 16:49:51 +0100] Sebastian Andrzej Siewior <sebastian@breakpoint.cc>:
+
+  [ Scott Kitterman ]
+  * Increase clamd socket command read timeout to 30 seconds (Closes: #915098)
+  * Add information to README.Debian on configuring clamav-milter's socket to
+    work with postfix
+  * Add lintian override for source-is-missing on test file that happens
+    to have long line length
+
+  [ Sebastian Andrzej Siewior ]
+  * Import new upstream release.
+   - update symbol file.
+   - add new options to the config file.
+   - package libclamav9
+  * Import 0.101.1
+    - update symbol file
+    - add back the json/curl configure options (don't rely on autodetect).
+  * Add abstractions/openssl to apparmor's profile. Thanks to intrigeri for
+    the help (Closes: #913020).
+  * Load the apparmor profile before starting the daemon. Thanks to intrigeri
+    for the help (Closes: #903834).
+  * Add attach_disconnected to freshclam's apparmor profile to hopefully get
+    it properly working in overlayfs enviroment. Thanks to Vincas Dargis
+    (Closes: #917648).
+  * debian/libclamav-dev.install: also install clamav-types.h
 
 0.100.2+dfsg-0+deb9u1 [Fri, 12 Oct 2018 23:44:44 +0200] Sebastian Andrzej Siewior <sebastian@breakpoint.cc>:
 

<http://10.200.17.11/4.4-1/#3718314944348825753>
Comment 7 Felix Botner univentionstaff 2019-09-10 11:01:50 CEST
OK

$ apt-cache policy libclamav9 
libclamav9:
  Installiert:           (keine)
  Installationskandidat: 0.101.4+dfsg-0+deb9u1A~4.4.0.201909091505
  Versionstabelle:
     0.101.4+dfsg-0+deb9u1A~4.4.0.201909091505 500
        500 http://updates-test.software-univention.de/4.4/maintained/component 4.4-1-errata-test/amd64/ Packages
Comment 8 Philipp Hahn univentionstaff 2019-09-10 13:03:08 CEST
OK: yaml
OK: announce_errata
OK: patch
~OK: piuparts
 ClamAV_0.100.3+dfsg-0+deb9u1 was built in errata4.3-4 and then copied to errata4.4-0, but the *-dbgsym packages were skipped by `repo-copy-dsc`.
 Therefore errata4.4-0 and ucs4.4-1 are inconsistent.

[4.4-1] 85418eceb2 Bug #50131: clamav 0.101.4+dfsg-0+deb9u1A~4.4.0.201909091505
 doc/errata/staging/clamav.yaml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

[4.4-1] b98aa30c10 Bug #50131: clamav 0.101.4+dfsg-0+deb9u1A~4.4.1.201909091134
 doc/errata/staging/clamav.yaml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
Comment 9 Erik Damrose univentionstaff 2019-09-11 15:25:30 CEST
<http://errata.software-univention.de/ucs/4.4/252.html>