From owner-freebsd-security-notifications@freebsd.org Mon Dec 14 22:18:42 2020 Return-Path: Delivered-To: freebsd-security-notifications@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 37E4B4C4F18 for ; Mon, 14 Dec 2020 22:18:42 +0000 (UTC) (envelope-from security-advisories@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CvwlQ150Mz3v94; Mon, 14 Dec 2020 22:18:42 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1607984322; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=Xt5HmUXQVqufuqtWIrfxPO0A1s6GNtB48ZTzhI4bYk8=; b=QwRWlv8I/ipaugyuWAd6Fti1mrT8C6p5a+I2ibFyCSyEhbTANJA0AJ27uwcxgLrw3w1pFe Dcz1WEbSRp/fvCM9hmv1lqsAr8N4eocvcyr2TqFOyxjY62q+n5HjBG7MLC/Uf0zh2r7lRE FY/EutqgWuxq9WqmJ67dp/5jWhVV70fRTYXg7Vf4XR4fhjp+gVtk0ME3NEekjs1f0yHurW zqtfUnydFI58OK7s8P8uU98uOmrCrQDknX/rMpxnjZL7HWO5BrI1y3TVUaFTlcWytf/yZ+ LCS1QxQ5LP5NncwMTiSxo/dcQHr7/UtgXOt5QyfTKP28qwFG90hE22XPf9nKJg== Received: by freefall.freebsd.org (Postfix, from userid 945) id 1DFE36A62; Mon, 14 Dec 2020 22:18:42 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-20:33.openssl [REVISED] Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20201214221842.1DFE36A62@freefall.freebsd.org> Date: Mon, 14 Dec 2020 22:18:42 +0000 (UTC) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1607984322; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=Xt5HmUXQVqufuqtWIrfxPO0A1s6GNtB48ZTzhI4bYk8=; b=WXlUg1/YipSwxB/d6Y1J4PodoocyDSYB/cpREd8pI6D3/RgxgCeOl7FFOCvMXjNanjPobu Blnp2WXiSllqAeZf34ga38w6Lrzb5k6s+35aqAorHLQzOMHEk+72B8SlJ1T68ikzTuP+Ks Ux4cmrDEmYLcF9eYm2A9tX0jYPVqmpbnZJSQpRv+yeiWPaTZCZ8Frwho2gkPCsONLeChgt DlHtcAx7gV8ZBXhs48cgC1BsOC3Xu+p+QF4tA7vf0i4rVlAV+SMdoR0CVQ9UVG+LzM/fkB OIFfQyNyPDtZFgeIpp/QXeFOYW5zcC9DpbJN/wVEyHuOy5BvV686uwlnzqb6uw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1607984322; a=rsa-sha256; cv=none; b=U2XotGdWgnN1DO21zWYVmqnTmvy2BdihRk/xgteEkM39u3p/YeefI7EKohQiv6zlO0BQlN 2MxuNu8MxGG/4Q+k7EPyNuc28Uiun43dIVy/2JUsUvH1x8HcMd8iGyyrfmGO7YvIFgoFs7 fLbTokduhNLXnoEoylkFqSXcp6rkw66kI9zYgcCeoTzc+AGblo512oNVEo7+40Sv5/K2HY pi3KM1s8lUGy+Z06FbbwIvuFivpiLALH2Qi/f0IXBXkh44pZoVetPU4owSfi1T1ATBbpdm krjfuBGXldOJMFBY8uI9MRnqCrpvsJ5bkfkLxVchwOI/tJSKDzwQfQEAjAx/yQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-BeenThere: freebsd-security-notifications@freebsd.org X-Mailman-Version: 2.1.34 List-Id: "Moderated Security Notifications \[moderated, low volume\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2020 22:18:42 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-20:33.openssl Security Advisory The FreeBSD Project Topic: OpenSSL NULL pointer de-reference Category: contrib Module: openssl Announced: 2020-12-08 Affects: All supported versions of FreeBSD. Corrected: 2020-12-08 18:28:49 UTC (stable/12, 12.2-STABLE) 2020-12-08 19:10:40 UTC (releng/12.2, 12.2-RELEASE-p2) 2020-12-08 19:10:40 UTC (releng/12.1, 12.1-RELEASE-p12) 2020-12-10 23:43:29 UTC (stable/11, 11.4-STABLE) 2020-12-14 21:20:55 UTC (releng/11.4, 11.4-RELEASE-p6) CVE Name: CVE-2020-1971 Note: The OpenSSL project has published publicly available patches for versions included in FreeBSD 12.x. FreeBSD 11.x includes an older OpenSSL version, and patches for that version from from the OpenSSL project are only available to premium support contract holders. This advisory includes an independently-developed backport of the patch for FreeBSD 11.4. For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . 0. Revision History v1.0 2020-12-08 Initial release. v1.1 2020-12-14 Added FreeBSD 11.4 patch. I. Background FreeBSD includes software from the OpenSSL Project. The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured Open Source toolkit for the Transport Layer Security (TLS) protocol. It is also a general-purpose cryptography library. II. Problem Description The X.509 GeneralName type is a generic type for representing different types of names. One of those name types is known as EDIPartyName. OpenSSL provides a function GENERAL_NAME_cmp which compares different instances of a GENERAL_NAME to see if they are equal or not. This function behaves incorrectly when both GENERAL_NAMEs contain an EDIPARTYNAME. III. Impact An attacker who is able to control both items being compared can trigger a NULL pointer dereference and a crash may occur leading to a possible denial of service attack. As an example, if an attacker can trick a client of server to check a maliciously constructed certificate against a malicious CRL could trigger the NULL dereference. IV. Workaround No workaround is available. V. Solution Upgrade your vulnerable system to a supported FreeBSD stable or release / security branch (releng) dated after the correction date. Perform one of the following: 1) To update your vulnerable system via a binary patch: Systems running a RELEASE version of FreeBSD on the i386 or amd64 platforms can be updated via the freebsd-update(8) utility: # freebsd-update fetch # freebsd-update install 2) To update your vulnerable system via a source code patch: The following patches have been verified to apply to the applicable FreeBSD release branches. a) Download the relevant patch from the location below, and verify the detached PGP signature using your PGP utility. [FreeBSD 12.2, FreeBSD 12.1] # fetch https://security.FreeBSD.org/patches/SA-20:33/openssl.patch # fetch https://security.FreeBSD.org/patches/SA-20:33/openssl.patch.asc # gpg --verify openssl.patch.asc [FreeBSD 11.4] # fetch https://security.FreeBSD.org/patches/SA-20:33/openssl.11.patch # fetch https://security.FreeBSD.org/patches/SA-20:33/openssl.11.patch.asc # gpg --verify openssl.11.patch.asc b) Apply the patch. Execute the following commands as root: # cd /usr/src # patch < /path/to/patch c) Recompile the operating system using buildworld and installworld as described in . Restart all daemons that use the library, or reboot the system. VI. Correction details The following list contains the correction revision numbers for each affected branch. Branch/path Revision - ------------------------------------------------------------------------- stable/12/ r368459 releng/12.2/ r368463 releng/12.1/ r368463 stable/11/ r368530 releng/11.4/ r368643 - ------------------------------------------------------------------------- To see which files were modified by a particular revision, run the following command, replacing NNNNNN with the revision number, on a machine with Subversion installed: # svn diff -cNNNNNN --summarize svn://svn.freebsd.org/base Or visit the following URL, replacing NNNNNN with the revision number: VII. References The latest revision of this advisory is available at -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE/A6HiuWv54gCjWNV05eS9J6n5cIFAl/X2AhfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEZD MEU4NzhBRTVBRkU3ODgwMjhENjM1NUQzOTc5MkY0OUVBN0U1QzIACgkQ05eS9J6n 5cLRqQ/8DWGkrFkYn1mpbePFaWFkb2Gt9wexPjfa7oFVSPirHwEFFF1yr5p5hTNF lPyDeSmif5DsAa1fm5CqIVDc9R+kvs8QBfuvD6dRTDW0NSSjPILtBd+7DpnejGKY DGP9Q9aV8pniyJ029vduReF/U0VX/VtHuujYMZBBeXTcfWW1+/olMw0nkMno+3j/ PFflN1d7Kj66b+RjqdIav72vuEmp0nzm8VlL4Sn53Im6TJuGg+24uCj2oCKmMfiR 6mrS9D6H6/8VyAEI7aFfz52TN/Cuqx5U5HjonjRsnKCN/8tST6nxZ3MQ3F6eJRU6 Tqzd9c1iYm9bWYWTpqtDx2dASiIICQeEj8f42RavU+BfpER9rKQi/pcJk/9ISu2L /EOmH735v1dWd5PVZiVQinx+v/Os5pCzAZEOxA4rI7prAFvnX2q7XsJI914p87FR SGwMy/cN7b23rJFLwNp29tpAJhaz9Ac/vAJwvUKEaoGqvcEC8zOPykMcOhcHXONq fXJWgkl/N8fkyKrSfFZkKF5r4aQGsuyaZje1YmrpWIOr/jzV9qL4CAvUhx116yJb XelP+aaXBD82kM3J0Ddivaz+/dP5ng/XUADJvAYzZ1g7N9fxYjLGF6nRJ3eXKuno NQfYPIYAc1TKYAU+k6pbxqQkVuYtTxHCSXdvUGMjh0scZArU8/s= =LaWf -----END PGP SIGNATURE-----