From owner-freebsd-security@freebsd.org Mon Nov 30 01:26:30 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 4299B46AEC3; Mon, 30 Nov 2020 01:26:30 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cknd10Z1nz3vQQ; Mon, 30 Nov 2020 01:26:28 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pj1-x1030.google.com with SMTP id ms7so285000pjb.4; Sun, 29 Nov 2020 17:26:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:reply-to:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xM6UwPhwbnfn91ZNZAsLvLsOT0FUIvpfFgSavdNxRr0=; b=I6m4y4ZSLqSV/7zZF1oyF69448NsjXMCWRI+XNx9fUAuYmlot/xT14FquBNUWcc8RR 4GD9TRB/go810mn09zPpJjx4FVPwk2YeP+td5SMkA8fd4El+cKqL6OV9yAJwhmiEJ/pE VFMrgbmJOLvn2wza0nRu6hixGJdSsirORiZVCRxnjPWjY7g091fE6M886erDfxt1aLew k1yHJlI+mvgoxqY5hoDQ08GFsIa+kc+5V9Ncpckz1m5LCqUCC0pRpnPYVI2lwVJj2/vu LBbQcmqDSBcXqonk4gWNfg9c0xJtIhjqdv+ABvZhvzRPOUG5VsVPmCeuPfnJPlL3j3f1 OoxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:reply-to:subject:to:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=xM6UwPhwbnfn91ZNZAsLvLsOT0FUIvpfFgSavdNxRr0=; b=D+6G5M0uyI3XoB+gjXfGBXZoc/Ti/gJApF5wPMFW2sHKBvCJojb7twdXytkFbjrD/o 7EUW7b4bl6tRW94RCuj7ef8CayWR1CZn+9uIA0/Podc0Ca4D3B4XJCCyy6p6vLB3v+F1 84n5u+n5hEl/YLh6wq4ExSUlFQR4XfaJFnvlWDeKLVhWIZ46ePGzUm30VDn6HF8rE+Sz mQ4xQlS/raT8Vln2S3iLBbg3A5y2J6hc1YqiejT/lemN1MmOFZNlmj/598mfYeCyTKQk YLrtm4Lw0tncTiRpzPF0cUXoKOA/bjTiwFi3hTzAOcYAMax9Hyee+Sf+uAlzMg9/XHf5 i8Vw== X-Gm-Message-State: AOAM533n6dxRO0Jninb9Iq4v4jxJZ2gs0euZ3RhNMaieLSWq8XzXBuVn eH365AdBbN2Fk2W05MuPZ9Ofgp7fKfw= X-Google-Smtp-Source: ABdhPJzRPVv8AqRqfHVDIXsMIzwE6TfCxeD8HmNiGJ67QkP8ocfYNJDrtNwZJVNhpXwpfdCYlfnB7w== X-Received: by 2002:a17:90a:62c4:: with SMTP id k4mr23486125pjs.32.1606699587303; Sun, 29 Nov 2020 17:26:27 -0800 (PST) Received: from [192.168.1.100] (180-150-68-130.b49644.syd.nbn.aussiebb.net. [180.150.68.130]) by smtp.gmail.com with UTF8SMTPSA id l76sm14920706pfd.82.2020.11.29.17.26.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Nov 2020 17:26:26 -0800 (PST) Sender: Kubilay Kocak Reply-To: koobs@FreeBSD.org Subject: Re: Moinmoin To: Roger Marquis , freebsd-security@freebsd.org, python References: <8o206235-597-p266-o7s-oqn87s1np279@mx.roble.com> From: Kubilay Kocak Message-ID: Date: Mon, 30 Nov 2020 12:26:23 +1100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Thunderbird/84.0 MIME-Version: 1.0 In-Reply-To: <8o206235-597-p266-o7s-oqn87s1np279@mx.roble.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Cknd10Z1nz3vQQ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=I6m4y4ZS; dmarc=none; spf=pass (mx1.freebsd.org: domain of koobsfreebsd@gmail.com designates 2607:f8b0:4864:20::1030 as permitted sender) smtp.mailfrom=koobsfreebsd@gmail.com X-Spamd-Result: default: False [-3.20 / 15.00]; HAS_REPLYTO(0.00)[koobs@FreeBSD.org]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[koobs@FreeBSD.org,koobsfreebsd@gmail.com]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::1030:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_NEQ_ENVFROM(0.00)[koobs@FreeBSD.org,koobsfreebsd@gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[FreeBSD.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::1030:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1030:from]; MIME_TRACE(0.00)[0:+]; MAILMAN_DEST(0.00)[python,freebsd-security] X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2020 01:26:30 -0000 On 28/11/2020 12:55 pm, Roger Marquis wrote: > Anyone know if www/moinmoin is abandonware?  The maintainer is listed as > python@freebsd.org and the version in ports has had an unpatched > vulnerability for the last couple of weeks. > Hi Roger, I don't believe so, but development is slow Can you point us to references for the vulnerability and/or any other references (cve, anouncements, commits, issues, patches in other OS's, etc) ./koobs From owner-freebsd-security@freebsd.org Mon Nov 30 18:14:55 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 2B6544A41BA; Mon, 30 Nov 2020 18:14:55 +0000 (UTC) (envelope-from marquis@roble.com) Received: from mx5.roble.com (mx5.roble.com [209.237.23.5]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx5.roble.com", Issuer "mx5.roble.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ClD0b09yBz4V4f; Mon, 30 Nov 2020 18:14:54 +0000 (UTC) (envelope-from marquis@roble.com) Received: from roble.com (roble.com [209.237.23.50]) by mx5.roble.com (Postfix) with ESMTP id 6AA1F3D209; Mon, 30 Nov 2020 10:14:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=roble.com; s=rs060402; t=1606760087; bh=Avyb9lBJ9D+5i+TsxwfZX8GHoR1v6NbINFKelx1DaVA=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=qxADnrTfDK/K34M4bWiFXzvcDu0fy73NqHPTee39Opo47USEvMhTh+viyWzWgWtFz pfh8dsCql47OmRA8vVsbFY+jGTXB70ySi3E2XQ7PiSzerbwDNAaOE2+eGO85JfsdwS BXWES0cqE+VI0TjMQkAa3uU61o7O3Gof5iojXh20= Date: Mon, 30 Nov 2020 10:14:47 -0800 (PST) From: Roger Marquis To: Kubilay Kocak cc: freebsd-security@freebsd.org, python Subject: Re: Moinmoin In-Reply-To: Message-ID: <9979379s-7694-76no-692r-p51n5p51877@mx.roble.com> References: <8o206235-597-p266-o7s-oqn87s1np279@mx.roble.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 4ClD0b09yBz4V4f X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2020 18:14:55 -0000 Hey Kubilay, Originally saw the vuln on a security RSS feeds, probably NIST's, but it is also listed on the moinmo.in website: News 2020-11-08 MoinMoin 1.9.11 released, including urgent security fixes! See: https://github.com/moinwiki/moin-1.9/releases/tag/1.9.11 Roger > On 28/11/2020 12:55 pm, Roger Marquis wrote: >> Anyone know if www/moinmoin is abandonware? The maintainer is listed as >> python@freebsd.org and the version in ports has had an unpatched >> vulnerability for the last couple of weeks. >> > > Hi Roger, > > I don't believe so, but development is slow > > Can you point us to references for the vulnerability and/or any other > references (cve, anouncements, commits, issues, patches in other OS's, etc) > > ./koobs 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----- From owner-freebsd-security@freebsd.org Tue Dec 1 20:46:26 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 E1A054B42A3 for ; Tue, 1 Dec 2020 20:46:26 +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 4ClvJy1p4Tz4rn5; Tue, 1 Dec 2020 20:46:26 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1606855586; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=JecEU+GZSyw3kHglCi811M8VH/1sAzLPef9mhlPmRfo=; b=t4ybwtxhkS3op44hnRl16p8I2DzuFm/WmcczF4jm+PZitK9nobViY8IUxMrHacTxU78nMX 3NQxSDo9A5fAIaZ8gWkJdR/fpp4SOyRbjC9hw9MEWT149BYRA+WghfCKVkG+nVrObv44Kl QBF2ADyqTTF506ulX2Jopha2cP+kyKlp14qsgvbhOM2Hp65gSj6AnBJK/NJ6zL9DVT4p+n VzyZyXlRFIXMS3M7rCCZrVE4i2+CKteNUdY1b4xxQzQIk0WcBibxHe4bis8CH78ioeNRC/ PCQ6uu3A9g7Tn17PaPQkIP9ILVdqrzXx/c5toF12JWiX6fdaAXF+T4b9FAPg+A== Received: by freefall.freebsd.org (Postfix, from userid 945) id 8DE8D19E9C; Tue, 1 Dec 2020 20:46:25 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-20:32.rtsold Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20201201204625.8DE8D19E9C@freefall.freebsd.org> Date: Tue, 1 Dec 2020 20:46:25 +0000 (UTC) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1606855586; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=JecEU+GZSyw3kHglCi811M8VH/1sAzLPef9mhlPmRfo=; b=WSL6rWyG4/da17RGNvpD393hOzlyOXBHshRwdFHPJUgJdjLozPq7Ps7y0lvnsVCU96jWvF /9AlQML20Zycpvjy3QziuKg8ubeAXHHvpWDuF04ZsWVsBiRe1ldMXKbQHBN5i82EvY+Hgk 4zLXpkTOlzH+T0bERZv8kqzje8+5EvW4qM50R8NqziNLxzXV5n6kpmsZpAyHkHA0fqTNOz zCRu1RHMpaT17mXWkrn24dfm+cfCoUONGQZuH83XdGaswJdkqIndq83qcmK98MmNXD3uYI VKXXXaRjPuOghQQDdjb/7th7j011ArCsIHASJsdDw6948kSwMxTEDxkeaesRXw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1606855586; a=rsa-sha256; cv=none; b=aTQgD6ap/ZiHqry0qnGEW/ro9DnNQG+EckDRZk8ZQ2xkn7BL053FdH4SSG4ueo6cq8z54G kGRgtN2JP7+0cngvW94oejX8pBVQGCGoCaITUmc4qDSpXgGgVFU7MNUASVglu2SLmBo23u NlwTlS/Cml01o73anxxaBT06G63B/Dx4Yil11l4Ac5QdZTbzmq+gsMyHEdPl6GnQmebzL2 +NhJ21PNH+m6F6jmJBMUkf/XXW1+4SExJw3P471f9H0n7MsY78EuWFtf8ZJ5xeeHJalHcG RbukfVxZCN6+DKl0zEFAwzkAzEksPAcoO9UCC+eWEaMhkUdrZqabF8DXtriHAA== 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:27 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-20:32.rtsold Security Advisory The FreeBSD Project Topic: Multiple vulnerabilities in rtsold Category: core Module: rtsold Announced: 2020-12-01 Credits: Quarkslab Vulnerability Reports Affects: All supported versions of FreeBSD Corrected: 2020-12-01 19:35:48 UTC (stable/12, 12.2-STABLE) 2020-12-01 19:39:44 UTC (releng/12.2, 12.2-RELEASE-p1) 2020-12-01 19:39:44 UTC (releng/12.1, 12.1-RELEASE-p11) 2020-12-01 19:36:37 UTC (stable/11, 11.4-STABLE) 2020-12-01 19:39:44 UTC (releng/11.4, 11.4-RELEASE-p5) CVE Name: CVE-2020-25577 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background As part of the stateless address autoconfiguration (SLAAC) mechanism, IPv6 routers periodically broadcast router advertisement messages on attached networks to inform hosts of the correct network prefix, router address and MTU, as well as additional network parameters such as the DNS servers (RDNSS), DNS search list (DNSSL) and whether a stateful configuration service is available. Hosts that have recently joined the network can broadcast a router solicitation message to solicit an immediate advertisement instead of waiting for the next periodic advertisement. The router solicitation daemon, rtsold(8), broadcasts router solicitation messages at startup or when the state of an interface changes from passive to active. Incoming router advertisement messages are first processed by the kernel and then passed on to rtsold(8), which handles the DNS and stateful configuration options. II. Problem Description Two bugs exist in rtsold(8)'s RDNSS and DNSSL option handling. First, rtsold(8) failed to perform sufficient bounds checking on the extent of the option. In particular, it does not verify that the option does not extend past the end of the received packet before processing its contents. The kernel currently ignores such malformed packets but still passes them to userspace programs. Second, when processing a DNSSL option, rtsold(8) decodes domain name labels per an encoding specified in RFC 1035 in which the first octet of each label contains the label's length. rtsold(8) did not validate label lengths correctly and could overflow the destination buffer. III. Impact It is believed that these bugs could be exploited to gain remote code execution within the rtsold(8) daemon, which runs as root. Note that rtsold(8) only processes messages received from hosts attached to the same physical link as the interface(s) on which rtsold(8) is listening. In FreeBSD 12.2 rtsold(8) runs in a Capsicum sandbox, limiting the scope of a compromised rtsold(8) process. IV. Workaround No workaround is available, but systems that do not run rtsold(8) are not affected. 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. # fetch https://security.FreeBSD.org/patches/SA-20:32/rtsold.patch # fetch https://security.FreeBSD.org/patches/SA-20:32/rtsold.patch.asc # gpg --verify rtsold.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 the applicable daemons, or reboot the system. VI. Correction details The following list contains the correction revision numbers for each affected branch. Branch/path Revision - ------------------------------------------------------------------------- stable/12/ r368250 releng/12.2/ r368256 releng/12.1/ r368256 stable/11/ r368253 releng/11.4/ r368256 - ------------------------------------------------------------------------- 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/GndZfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEZD MEU4NzhBRTVBRkU3ODgwMjhENjM1NUQzOTc5MkY0OUVBN0U1QzIACgkQ05eS9J6n 5cIUXQ/+K/FAB22beBBiOUDaRMF0n4a/umwvwX2BAy7PsLIzRcYL8ydhvTWPXQnU KssmRoi0eobczpIYgIqTDNDTI46UErEvfoCBTIiY+uedER77FKxesfnO/9S3owvh 8uP+WCMzZXRfNvIYqEsK43ipm3LL4rDfUNLEdeFj0bLlwEwiTJaXsdLayJ3KpanN A3ykePDXnQD41BcDcotvzSV6r7o5dbCILI4K4zEOSCAXBP1Du16J/K/aHOWahJ20 Ex6YFg0llH3VkAVE9iGdHLGFqakjobUhm+LzV9ShAkXZqZs3Hx+p8dfM4w7aicCM f6Nn0rLlb4ZdSmMnbsexoZZwO0v2dQNHd1EEtQD6zjJfey1auJKJLTcLoWXH+3mm w5eOjjmqdOkab0h224q8jidhgyUm1c8By5H5aZ79y5SpRG0mfuS82Z6uIAf0KKZ3 uIzPswc0YtI30M638ZCKCug3gxwZu4EG7P08/Ab4B0fpyfqqLy6KVsMdH6w64R6+ 64twgiVPuM3DpokvTfdcQLp13IHeMJwkpdc/SICyg3NDAFJZMcIe6eqjko5FsNnH RSjA0SHRKyl303OLR+jUHe64m+LISyNne+fC1VoThbqQ1f5nWX9PlF4VjRu30Wz4 8VcmRCehMT1G1aIEGG74zKDeWDP6+bGeieBU7Pa/jfr/aI88Hw0= =5tIC -----END PGP SIGNATURE-----