ANNOUNCE: fetchmail security announcement 2021-01 (CVE-2021-36386) - potential denial of service or information disclosure in some configurations
Matthias Andree <[email protected]> Wed, 28 Jul 2021 23:04:15 +0200
| Newsgroups | gmane.mail.fetchmail.announce |
|---|---|
| Message-ID | <YQHGT/[email protected]> |
--===============3254742482892527539== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UiUJj4LwTpeUb4gy" Content-Disposition: inline --UiUJj4LwTpeUb4gy Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable fetchmail-SA-2021-01: DoS or information disclosure logging long messages Topics: fetchmail denial of service or information disclosure when logging= long messages Author: Matthias Andree Version: 1.1 Announced: 2021-07-28 Type: missing variable initialization can cause read from bad memory=20 locations Impact: fetchmail logs random information, or segfaults and aborts,=20 stalling inbound mail Danger: low Acknowledgment: Christian Herdtweck, Intra2net AG, T=FCbingen, Germany for analysis and report and a patch suggestion CVE Name: CVE-2021-36386 URL: https://www.fetchmail.info/fetchmail-SA-2021-01.txt Project URL: https://www.fetchmail.info/ Affects: - fetchmail releases up to and including 6.4.19 Not affected: - fetchmail releases 6.4.20 and newer Corrected in: c546c829 Git commit hash 2021-07-28 fetchmail 6.4.20 release tarball 0. Release history =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 2021-07-07 initial report to maintainer 2021-07-28 1.0 release 2021-07-28 1.1 update Git commit hash with correction 1. Background =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D fetchmail is a software package to retrieve mail from remote POP3, IMAP, ETRN or ODMR servers and forward it to local SMTP, LMTP servers or message delivery agents. fetchmail supports SSL and TLS security layers through the OpenSSL library, if enabled at compile time and if also enabled at run time, in both SSL/TLS-wrapped mode on dedicated ports as well as in-band-negotiated "STARTTLS" and "STLS" modes through the regular protocol ports. 2. Problem description and Impact =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D Fetchmail has long had support to assemble log/error messages that are=20 generated piecemeal, and takes care to reallocate the output buffer as need= ed. =20 In the reallocation case, i. e. when long log messages are assembled that c= an=20 stem from very long headers, and on systems that have a varargs.h/stdarg.h= =20 interface (all modern systems), fetchmail's code would fail to reinitialize= =20 the va_list argument to vsnprintf.=20 The exact effects depend on the verbose mode (how many -v are given) of=20 fetchmail, computer architecture, compiler, operating system and=20 configuration. On some systems, the code just works without ill effects, s= ome=20 systems log a garbage message (potentially disclosing sensitive information= ),=20 some systems log literally "(null)", some systems trigger SIGSEGV (signal= =20 #11), which crashes fetchmail, causing a denial of service on fetchmail's e= nd. 3. Solution =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Install fetchmail 6.4.20 or newer. The fetchmail source code is available from <https://sourceforge.net/projects/fetchmail/files/>. Distributors are encouraged to review the NEWS file and move forward to=20 6.4.20, rather than backport individual security fixes, because doing so=20 routinely misses other fixes crucial to fetchmail's proper operation,=20 for which no security announcements are issued, or documentation, or translation updates. Fetchmail 6.4.X releases have been made with a focus on unchanged user and= =20 program interfaces so as to avoid disruptions when upgrading from 6.3.Z or= =20 6.4.X to 6.4.Y with Y > X. Care was taken to not change the interface=20 incompatibly. A. Copyright, License and Non-Warranty =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (C) Copyright 2021 by Matthias Andree, <[email protected]>. Some rights reserved. fetchmail-SA-2021-01 =A9 2021 by Matthias Andree is licensed under CC=20 BY-ND 4.0. To view a copy of this license, visit=20 http://creativecommons.org/licenses/by-nd/4.0/ THIS WORK IS PROVIDED FREE OF CHARGE AND WITHOUT ANY WARRANTIES. Use the information herein at your own risk. END of fetchmail-SA-2021-01 --UiUJj4LwTpeUb4gy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE3EplW9mTzUhx+oIQ5BKxVu/zhVoFAmEBxk8ACgkQ5BKxVu/z hVqU2Q/+JX1Q3t8XC+Sw9LRzy2Ql+I+UxjIqjp65tlv2n5zw12KhsuJxZmtXZ9o1 5A6riRGev9nO+BbJXGsAPzYqBOG0QYWvowQL0F/i2XEYmD/iduSro4stuSuyJWuB ZOTCahDmQn59nTpqUAbHOvvw9TumJA99IBuV7rHRwLU3iFO0lqQ04F320hWZV9RD HltcLr8kVQkCKMmOvK/LIQrLfB+C20q0fYG/4c2ntzYo7tu/4xMDBqskxZyMRqcU fPJjHlgKEtM8IBgg7/DEB4nBfKe8UdjDWTA4opamwFXTHWLzGw8EzQhXQTmGkbCk kCF+v6Z02WMItYPk3QXjWUrJd1pb0wAgMIebmTGgLOFyLzm8EIHCeWbe5spRSCQt PxvPjYMmvvkORZy87tcWEuAtqCZdeZrG/jtPv32ZdbX+UW2+EcLoltEXP8wRiJAF MSwFLMZOjjydsevG1aBz1cqcOWKYuspodl3Kj1tk4jreL+r22bvSiISGv7rRYQnM Ix5pV3suH6y3VXoFtsR0RXPCB47djpWmyKm2ZuomdlQmGPfzP+gT6MtAzJeqBDfW 4bjQguzX76nd6n8HV1bzFOYTnIc1fpx+wAnjDTKx/dYEqUEsM8N9KZg5s5Gn0P33 jlTVGxgNxx04QsNmyh447KJ8t2qDyR1y+Ifg3eSNvhy2eF4QTWE= =c8v6 -----END PGP SIGNATURE----- --UiUJj4LwTpeUb4gy-- --===============3254742482892527539== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============3254742482892527539== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Fetchmail-announce mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fetchmail-announce --===============3254742482892527539==--