From owner-freebsd-security@freebsd.org Tue Dec 1 20:46:20 2020 Return-Path: Delivered-To: freebsd-security@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 C65CF4B4131 for ; Tue, 1 Dec 2020 20:46:20 +0000 (UTC) (envelope-from security-advisories@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 4ClvJr1txgz4rxJ; Tue, 1 Dec 2020 20:46:20 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1606855580; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=IMIJOufek76V8YCbotU5h/Bo4o+QsmBS04nQLNmPPu8=; b=DINycRNcdnloTilcp4r7y+o9qpniLEHOUuLPgF5s05SdTn73v5ns8w03oTRIFJBsB+My5S 4AAiul5v2JAN1uQdxgqUNXWX/TIOJOcUtQr0NJEqxPt0e6LpRlaq2D/gzgcal3Ekal+u/J FPjnaId1T0gzxswgB71HKiHfKE5CyMIpk3SMK5MwwWu0IWvQkGwGn2OYYJ0yDJB7grkT5s tghPGv+3yFKU4k8h0SYNc2I+4sI1k3PLoJqEsiv/w6GA9othFEPyG8VAo2Az80nYlDR0Xq Gi+URtEi9zwLLSU6eRl3sW3qI5kFJjBu3hFk+FvbfqS5F5cVDFhMQWLjF1PNcQ== Received: by freefall.freebsd.org (Postfix, from userid 945) id F3A3B19D2F; Tue, 1 Dec 2020 20:46:19 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-20:31.icmp6 Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20201201204619.F3A3B19D2F@freefall.freebsd.org> Date: Tue, 1 Dec 2020 20:46:19 +0000 (UTC) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1606855580; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=IMIJOufek76V8YCbotU5h/Bo4o+QsmBS04nQLNmPPu8=; b=c+w8jk5wk1+DJ8fHcUdZSloGNbuu/MaqgQJdpTEN1AYW0fC6bTqdCIMMxiZjQecZiS0ILz +DsrM5Of6vHidkdtr8AfyKM2Icsw7ZeIQ4mqzWVuvKf4cAonuVt8vCzL1Bwn0MOBg+h7U1 XQZirkK7tA//yJKKKJJEPoknVrMBTlBvD5ns6UV6w/ugUAAUQiz683xr0QDuk8VV/YOOnx aRwpSn9Cq92gM9JN58tQUVdB6f502a9bhNtZrJNjfnGr9SnJipDreVSg8ImrFoVv1snCte 1Jg1+I71yJKfjouGFC/Xi4xPG0iDpT1wSUw6xos+XsUC9QHp3o37nPL4LhOt6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1606855580; a=rsa-sha256; cv=none; b=DqdW0aKdnupXW/o+BN599cRwPWshIIxuyzcynj2Jp080cl2RQtgMfw58RIaVCjAypQmRKk fvy0u32vWtn1YkA2Z+t/n5Ij/dxsKYIHWHmfPiTZpWcYJerK40qAAVZwibcjmi81SJsNAG T/BLEDNeyaZjtR7ngJfbDE25zmU4s3Hfx22bqRPAjiNz5YY6VaLj4xLrNRRDAhnItFb+4G SCLVi0iDHT9AE9C2FWDJiGy/muU+qnw/8/YKIJ5MTFI7iSQCK5stRS/FoM7ww+dcMm03bg uYfigWGx4ZWjEmItmbththWKeiRLUi6fI3VxXAf0myCZGhwPe8fWpz/YcLZu4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.34 List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2020 20:46:21 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-20:31.icmp6 Security Advisory The FreeBSD Project Topic: ICMPv6 use-after-free in error message handling Category: core Module: icmp6 Announced: 2020-12-01 Credits: Maxime Villard Affects: All supported versions of FreeBSD. Corrected: 2020-11-05 22:41:54 UTC (stable/12, 12.2-STABLE) 2020-12-01 19:38:52 UTC (releng/12.2, 12.2-RELEASE-p1) 2020-12-01 19:38:52 UTC (releng/12.1, 12.1-RELEASE-p11) 2020-12-01 03:07:26 UTC (stable/11, 11.4-STABLE) 2020-12-01 19:38:52 UTC (releng/11.4, 11.4-RELEASE-p5) CVE Name: CVE-2020-7469 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background ICMPv6 is the ICMP protocol for IPv6. It is used to transmit informational and error messages between IPv6 hosts. II. Problem Description When an ICMPv6 error message is received, the FreeBSD ICMPv6 stack may extract information from the message to hand to upper-layer protocols. As a part of this operation, it may parse IPv6 header options from a packet embedded in the ICMPv6 message. The handler for a routing option caches a pointer into the packet buffer holding the ICMPv6 message. However, when processing subsequent options the packet buffer may be freed, rendering the cached pointer invalid. The network stack may later dereference the pointer, potentially triggering a use-after-free. III. Impact A remote host may be able to trigger a read of freed kernel memory. This may trigger a kernel panic if the address had been unmapped. IV. Workaround Systems with IPv6 disabled are not affected. No workaround is available except to disable IPv6 on the system's network interfaces. V. Solution Upgrade your vulnerable system to a supported FreeBSD stable or release / security branch (releng) dated after the correction date and reboot. 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 # shutdown -r +10min "Rebooting for a security update" 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] # fetch https://security.FreeBSD.org/patches/SA-20:31/icmp6.12.2.patch # fetch https://security.FreeBSD.org/patches/SA-20:31/icmp6.12.2.patch.asc # gpg --verify icmp6.12.2.patch.asc [FreeBSD 12.1] # fetch https://security.FreeBSD.org/patches/SA-20:31/icmp6.12.1.patch # fetch https://security.FreeBSD.org/patches/SA-20:31/icmp6.12.1.patch.asc # gpg --verify icmp6.12.1.patch.asc [FreeBSD 11.4] # fetch https://security.FreeBSD.org/patches/SA-20:31/icmp6.11.4.patch # fetch https://security.FreeBSD.org/patches/SA-20:31/icmp6.11.4.patch.asc # gpg --verify icmp6.11.4.patch.asc b) Apply the patch. Execute the following commands as root: # cd /usr/src # patch < /path/to/patch c) Recompile your kernel as described in and reboot the system. VI. Correction details The following list contains the correction revision numbers for each affected branch. Branch/path Revision - ------------------------------------------------------------------------- stable/12/ r367402 releng/12.2/ r368255 releng/12.1/ r368255 stable/11/ r368202 releng/11.4/ r368255 - ------------------------------------------------------------------------- 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/GndVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEZD MEU4NzhBRTVBRkU3ODgwMjhENjM1NUQzOTc5MkY0OUVBN0U1QzIACgkQ05eS9J6n 5cIE8g//d4TXo4cXH4H0k6Et5lCoKz7R+x/wE6EuTymvKOiYyvwGwk3TZnLwhSSr +FmwYMa0nQfHl3JdbUFYcQdA8Q/mvh0OZf55icRRHwchA+V9ENzuN8DqP1FPbL09 Ar3Q7osE2LyblTX9vOF0KYNWT+OmUZE5BDHEJ+OD5TKV2xWMkrksVOylXdKKgNyK Umc3uccud3nvBlrIeP5SiNewCP06/SEZkSovFI1QKCVJGs4hCO97Es0RWiY9MkPG JcUOdCsYVrvfcWNeRkcAqnH/vgWQYBumSW15ldNGIrMaUAi0DiDTisFIifPI1z8T j+WmxN2IGvjYQzLBLhpJqq9Ox1OUD2R6Q0YSsndMHgf2bo1HheVUtQlBPMOq/V/8 I74Ppu2NPxdh2ocUzk60XaNZ2PuZhqkDMOLqZLcKNEe7m94ImzfNxtDGyRkEwpbw /Vu4ysFrHQR4derU3c9TV+LJwCYaoNw//0WKpcycnqfvb/y5dWgOc3sBf5zwiuRL NNwRnnRK/gaGoigJxm/Ev2SNsJDLs0g7IuscwYPRtadi1eUTeKeJFg3yvSVTYRov tGPIhWYmWvOmKSg8ZGIAnTcXeNleyymw+vi6l0gHtwcLJ0AjdbVEWZ3FCy7XvD3c yRbkJ4ORllto95caGGtzHDj0CMShYaOMNhrf+QrEYDRMB8jfXh0= =a0pv -----END PGP SIGNATURE-----