From owner-freebsd-security@freebsd.org Tue Jun 9 16:58:42 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 29EF2332CB5 for ; Tue, 9 Jun 2020 16:58:42 +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 49hGXy01k7z44WS; Tue, 9 Jun 2020 16:58:41 +0000 (UTC) (envelope-from security-advisories@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 945) id D1C4C14D87; Tue, 9 Jun 2020 16:58:41 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-20:17.usb Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20200609165841.D1C4C14D87@freefall.freebsd.org> Date: Tue, 9 Jun 2020 16:58:41 +0000 (UTC) X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.33 List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2020 16:58:42 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-20:17.usb Security Advisory The FreeBSD Project Topic: USB HID descriptor parsing error Category: core Module: kernel Announced: 2020-06-09 Credits: Andy Nguyen, Google Affects: All supported versions of FreeBSD. Corrected: 2020-06-08 09:32:57 UTC (stable/12, 12.1-STABLE) 2020-06-09 16:13:54 UTC (releng/12.1, 12.1-RELEASE-p6) 2020-06-08 09:33:37 UTC (stable/11, 11.4-STABLE) 2020-06-09 16:13:54 UTC (releng/11.4, 11.4-RC2-p1) 2020-06-09 16:13:54 UTC (releng/11.3, 11.3-RELEASE-p10) CVE Name: CVE-2020-7456 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background USB Human Interface Device (HID) descriptors may push/pop the current state to allow description of items residing in a so-called union. FreeBSD supports 4 such pop levels. II. Problem Description If the push/pop level is not restored within the processing of the same HID item, an invalid memory location may be used for subsequent HID item processing. III. Impact An attacker with physical access to a USB port may be able to use a specially crafted USB device to gain kernel or user-space code execution. IV. Workaround Setting "sysctl hw.usb.disable_enumeration=1" disables USB device enumeration preventing the error from occurring. 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. # fetch https://security.FreeBSD.org/patches/SA-20:17/usb.patch # fetch https://security.FreeBSD.org/patches/SA-20:17/usb.patch.asc # gpg --verify usb.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/ r361918 releng/12.1/ r361972 stable/11/ r361919 releng/11.4/ r361972 releng/11.3/ r361972 - ------------------------------------------------------------------------- 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/A6HiuWv54gCjWNV05eS9J6n5cIFAl7fuFhfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEZD MEU4NzhBRTVBRkU3ODgwMjhENjM1NUQzOTc5MkY0OUVBN0U1QzIACgkQ05eS9J6n 5cJ4Iw/6AuTNBD33WaEZTW7mAfigc1sp8cjnKCvm+DObx1CNpSr9fxiy+Dy5DMjg /Hv4ijv4flte3txXohdXvYcAKqYrbP1BBr6ptlQYE/V+61sTtxV18XGnID1fgSOZ WPHGaXMAUNeeVxJSEVJ5rJ+lRo90Rlp/n9pMZlU+tIDFjE0BQ5lJkicg/xgFO9rg tRaeotoXmdNo3HlkMfXnIZ8q5tOQrcsfSZP6DgQWKspinCJTVTr1eQ9p6mHNV7Ip XZGuXNaktYxwNk2oWP2dmk6FAkyldReyi856DurhOldmAxPbY5zh4NfwOuL78pSa draF1up4Vkb/aSQHN1xkaOjlBEmLYHgzND83M9gnE2RdtGVLeerI6Gdd6Pp4D8a2 vPgWZOQfO82lUjSx/B/XHCA0Ztu4uinPuCkrf9vcteg/juJxQRRyFWUfqGbo3qpC U9a1AN9Ojgy0eFDKTo7vWUf34kB1RApEEt3y3XNwwbwDWtKdWMRLJfD4oIhbB6Re URYpBUv5wnkhOq5LR15VJc6jL/DZxqsjByALwtnEdNH6bAYM+6WTmnTYFgUyuvlF n2tZeD5LXM0GLs377edmAeGR7TUd+rFfndEGFKiDXeSNrmb0Ro6E4vvbUwu5PalA kf+suJS0noAH+SPmk0YyxKm12plPxyO2zLFIMRpjWz6v1joH+Qk= =4v1s -----END PGP SIGNATURE----- From owner-freebsd-security@freebsd.org Fri Jun 12 06:23:09 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 8D53332FE78 for ; Fri, 12 Jun 2020 06:23:09 +0000 (UTC) (envelope-from cs@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49jrJF3GDQz41qW for ; Fri, 12 Jun 2020 06:23:09 +0000 (UTC) (envelope-from cs@freebsd.org) Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: cs) by smtp.freebsd.org (Postfix) with ESMTPSA id 65CD524188 for ; Fri, 12 Jun 2020 06:23:09 +0000 (UTC) (envelope-from cs@freebsd.org) Received: by mail-ed1-f54.google.com with SMTP id k8so5618148edq.4 for ; Thu, 11 Jun 2020 23:23:09 -0700 (PDT) X-Gm-Message-State: AOAM533v4xUZMCf7I8mEbpleXaBwdxw4qxQsalwUcWp/LrfwoHWtajle iOkRR7Sby1Pa5V+qRTFYhGVtOeH0GDce0vOhtVfEkg== X-Google-Smtp-Source: ABdhPJwOYsc8c+6Ff5GXz7RYbkZfgZLT3qwCKDmjwx9qK73djhRAI6GRHlB0f0kc77dwr0FkiyrKaHD78Pt/Oe+iogI= X-Received: by 2002:aa7:d48f:: with SMTP id b15mr10835949edr.8.1591942988415; Thu, 11 Jun 2020 23:23:08 -0700 (PDT) MIME-Version: 1.0 References: <233888CA-37AE-4C9F-9CD8-2B56478CA601@gmail.com> <98B2AD08-8933-4111-ADF2-F22F71E8CCAF@gmail.com> In-Reply-To: <98B2AD08-8933-4111-ADF2-F22F71E8CCAF@gmail.com> From: Carlo Strub Date: Fri, 12 Jun 2020 08:22:56 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Odd ssh sessions To: =?UTF-8?Q?Lucas_Nali_de_Magalh=C3=A3es?= Cc: freebsd-security@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2020 06:23:09 -0000 Can you elaborate on what steps you are doing to get to such a state? On Fri, 5 Jun 2020, 20:48 Lucas Nali de Magalh=C3=A3es, wrote: > > On Jun 5, 2020, at 3:45 PM, Lucas Nali de Magalh=C3=A3es < > rollingbits@gmail.com> wrote: > > > > I've an old machine where I play with FreeBSD and after a while off, I > came back and noted that sometimes when I enter an ssh session part of th= e > text repeats. It can be many lines or it can be just one or even it can b= e > none. So it also looks like I found a memory problem. Is it just me? > > And I'm going from FreeBSD 12.1-p3 to 12.1-p5 in this case. > > -- > rollingbits =E2=80=94 =F0=9F=93=A7 rollingbits@gmail.com =F0=9F=93=A7 rol= lingbits@terra.com.br =F0=9F=93=A7 > rollingbits@yahoo.com =F0=9F=93=A7 rollingbits@globo.com =F0=9F=93=A7 rol= lingbits@icloud.com > > _______________________________________________ > freebsd-security@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-security > To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.or= g > " > From owner-freebsd-security@freebsd.org Fri Jun 12 22:10:14 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 DEADE34826D for ; Fri, 12 Jun 2020 22:10:14 +0000 (UTC) (envelope-from rollingbits@gmail.com) Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) (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 49kFK10RByz48t4; Fri, 12 Jun 2020 22:10:12 +0000 (UTC) (envelope-from rollingbits@gmail.com) Received: by mail-qk1-x730.google.com with SMTP id g28so10545060qkl.0; Fri, 12 Jun 2020 15:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:message-id:date :to:cc; bh=5fl0fDrN0t47DTHd3RqUQwsMpvUs/NzzR31mpvqOg7Y=; b=DnJ7V90NFYv43OaW+AHVALw40MllQrh/VniiuP0RYWwzu3ECuPWmSGNtHxXslX4u5L 5nLhitCqHVpTYInE9xG9RWGa7SSC5t8ZCSutXkFmYOhf9ge1/bWhOjlTKKkceHbLatYG 09Fr5jXaYu+WjggxNg5vMyA5PcaOZtI/yPTGW0AFHpL6/dCo7aBja8s3FSl8is2smimN KkDFkb3bFOH+YcsgE2wxjM42F0t0+CVUMWHnzJv+AVljfnIgrPKeQeE+SoFB/1t2GhDz C85oSwyOD26XMmzSv+WtgVouEfLzAAwAfRsyP87vazV91f3N6NXRuk4YYisHW9Fu+KA0 hapg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:message-id:date:to:cc; bh=5fl0fDrN0t47DTHd3RqUQwsMpvUs/NzzR31mpvqOg7Y=; b=MGNizJnLI0jNpW/kvufb3/InUhn3QbkGi+YuyXYoR7MBbNyNcghAdV9qcH7gXVpaDW x0OVVf4ZUESOijWjIiJ3shK7CkHAdpp2GDJfdZilyYS/WooUV7nhn9yIntjAvVHbFXAt 88huiPr0QCKR2d6db+oBzhYoZMjIvuzqpWKpi4iKjVtx33zzEmlv91xxfsOR3g62X4yH Q6U9BpnXMxIpj8kfTtXA04j780fFMS6u5zmDxJbhe/w/5JuJAT/cFd0DHG2VgF1a1pP9 K/K99i0Oan7kxwFDen4sw7Dp6OlxXTIiI09GgX3OWj2oYNbe4aRn2w+Ho+i28o2NnfjQ 8PNQ== X-Gm-Message-State: AOAM533gZ/I2cyd6Lxs9C9drRjD1zkD/xzTxKvyCcor9zmafABn4vMN2 RXKvR61+bMok+2r4X1zur8C99DqARcI= X-Google-Smtp-Source: ABdhPJxjz1hRPgVZxtHnsft8h+qTv3UmCRTAqAJEz6KWRGOpLkDceuWxgZA69TScz8waRIKFjHd3Qw== X-Received: by 2002:a05:620a:38d:: with SMTP id q13mr5349586qkm.249.1591999810724; Fri, 12 Jun 2020 15:10:10 -0700 (PDT) Received: from ?IPv6:2804:389:101e:28a1:3909:2ad4:d69:77f3? ([2804:389:101e:28a1:3909:2ad4:d69:77f3]) by smtp.gmail.com with ESMTPSA id a21sm4555154qkk.43.2020.06.12.15.10.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Jun 2020 15:10:10 -0700 (PDT) From: =?utf-8?Q?Lucas_Nali_de_Magalh=C3=A3es?= Mime-Version: 1.0 (1.0) Subject: Re: Odd ssh sessions Message-Id: <5B657D00-9DD3-43BC-A54C-C96ECBD5C14E@gmail.com> Date: Fri, 12 Jun 2020 19:10:08 -0300 To: Carlo Strub Cc: freebsd-security@freebsd.org X-Mailer: iPhone Mail (17F80) X-Rspamd-Queue-Id: 49kFK10RByz48t4 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=DnJ7V90N; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rollingbits@gmail.com designates 2607:f8b0:4864:20::730 as permitted sender) smtp.mailfrom=rollingbits@gmail.com X-Spamd-Result: default: False [-1.02 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.12)[-0.122]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; R_MIXED_CHARSET(0.62)[subject]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FAKE_REPLY(1.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.02)[-1.021]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.003]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::730:from]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2020 22:10:15 -0000 =EF=BB=BF > On Jun 12, 2020, at 3:23 AM, Carlo Strub wrote: >> On Fri, 5 Jun 2020, 20:48 Lucas Nali de Magalh=C3=A3es, wrote: >> On Jun 5, 2020, at 3:45 PM, Lucas Nali de Magalh=C3=A3es wrote: >>>=20 >>> I've an old machine where I play with FreeBSD and after a while off, I c= ame back and noted that >>> sometimes when I enter an ssh session part of the text repeats. It can b= e many lines or it can be >>> just one or even it can be none. So it also looks like I found a memory p= roblem. Is it just me? >> And I'm going from FreeBSD 12.1-p3 to 12.1-p5 in this case. > =EF=BB=BFCan you elaborate on what steps you are doing to get to such a st= ate? I wrote in the hope it was somewhat easy, sorry. I've difficulty in reproduc= ing it myself. Network is not very reliable in it and I first though it was the WiFi but I observed it ove= r Ethernet IPv6, too. My sessions have some "host not found" and "connection lost." I access from a Windows 1= 0 machine. I've no idea if the things are related or not. I hope it have no relation with my typos. Tod= ay it was stable and I tried to use the sftp but Windows (for the first time) tried to resolve the IPv6 addr= ess and didn't find the host. The next ssh sessions had the line duplication problem. It's a 32bit Intel C= eleron M notebook used for experimentation with customized FreeBSD (with make.conf and src.conf). --=20 rollingbits =E2=80=94 =F0=9F=93=A7 rollingbits@gmail.com =F0=9F=93=A7 rollin= gbits@terra.com.br=20 =F0=9F=93=A7 rollingbits@yahoo.com =F0=9F=93=A7 rollingbits@globo.com =F0=9F= =93=A7 rollingbits@icloud.com From owner-freebsd-security@freebsd.org Fri Jun 12 22:28:01 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 14D4834846C for ; Fri, 12 Jun 2020 22:28:01 +0000 (UTC) (envelope-from rollingbits@gmail.com) Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (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 49kFjX2KgQz4BGp; Fri, 12 Jun 2020 22:27:59 +0000 (UTC) (envelope-from rollingbits@gmail.com) Received: by mail-qk1-x732.google.com with SMTP id l17so10543026qki.9; Fri, 12 Jun 2020 15:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:mime-version:subject:from:in-reply-to:cc :date:message-id:references:to; bh=dhvPssMhpvr72npQPRBgIzFr9OrMLwGFdyt93U8IOBI=; b=RRgInnXWEPOs/zVzH/T5omIiJ34Pjfpkkzay5NoV5hqV7rFA2QwpacdMQ7n/nmMdyY 21SN337WfsyIjvBFG0YxxfoJBM7fOw0ZLOFZ1cFNLUEy+0+AOKzTIV+Z6wB8M3HZB/fb woX5PiFLMwV7ATHcwp31rA8vRW0WNb24fEvqHDBWcdvj9w3wZCQRsmIaqPqDmElTQ+9U 3Fnr/INQw9l1cXrg+ANyU5qRPPTzXy2zu4T0DPdStLFI+y41LPDlNQsQl3iSGdB0LuWy OOvKyGZ2OsBVAviZ7pKbBw7MBWkHF28nc8MdNdrSQhU4j+qaOwzS8zdq1uUOPb13EcVU mR1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:mime-version:subject :from:in-reply-to:cc:date:message-id:references:to; bh=dhvPssMhpvr72npQPRBgIzFr9OrMLwGFdyt93U8IOBI=; b=opRqJOAipZGJXWDmNuFGSi6bMSVoIwgD1xtcjC65e0W7/18celbU9lhAjXrTE9p8/7 Bd1V/DTItoN/gt2+ZfNqSz4ZS/RhLdKc2whJiGPkXMIlM8aOme9SLuGKnqurtM4l0bnk TSF74pzwLrqOAu7ZS2b0MKTGg/K1auSGPWZIjcTKnvRRuFws07wRK1juk48aai4J/V9F 2QirG66O/xGOigymTY2BlYggf2+qL8K0DXBNkkRcHZ9YhZ/tulayxFoCoRPyViqWoREm BoK2be93P4kB5wxOAlwMPA3o1TSq5l2g+e7bmBswz6SIwEdpAIrOUnn8Emk1Dbc2CcRU eg2A== X-Gm-Message-State: AOAM530GtiYNW1XfCnKoNCQ5wr1/BA+FIfieEn0Jt08mQuwOQimgW+ca KbMP/6SeRocywV4yPb/9/WFr8x84AE0= X-Google-Smtp-Source: ABdhPJzk9rVozKzKmA5fS27CvWLT0OUosnrjU0JCqNrFxOc5tCyvZyoM20zn0jBGAMIAn+ut+22ZyA== X-Received: by 2002:a37:9b0d:: with SMTP id d13mr5392248qke.351.1592000878954; Fri, 12 Jun 2020 15:27:58 -0700 (PDT) Received: from ?IPv6:2804:389:101e:28a1:3909:2ad4:d69:77f3? ([2804:389:101e:28a1:3909:2ad4:d69:77f3]) by smtp.gmail.com with ESMTPSA id b21sm5327540qkk.61.2020.06.12.15.27.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Jun 2020 15:27:58 -0700 (PDT) Mime-Version: 1.0 (1.0) Subject: Re: Odd ssh sessions From: =?utf-8?Q?Lucas_Nali_de_Magalh=C3=A3es?= In-Reply-To: <5B657D00-9DD3-43BC-A54C-C96ECBD5C14E@gmail.com> Cc: freebsd-security@freebsd.org Date: Fri, 12 Jun 2020 19:27:56 -0300 Message-Id: References: <5B657D00-9DD3-43BC-A54C-C96ECBD5C14E@gmail.com> To: Carlo Strub X-Mailer: iPhone Mail (17F80) X-Rspamd-Queue-Id: 49kFjX2KgQz4BGp X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=RRgInnXW; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rollingbits@gmail.com designates 2607:f8b0:4864:20::732 as permitted sender) smtp.mailfrom=rollingbits@gmail.com X-Spamd-Result: default: False [-2.78 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.88)[-0.877]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; R_MIXED_CHARSET(0.62)[subject]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.03)[-1.026]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::732:from]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2020 22:28:01 -0000 >> On Jun 12, 2020, at 7:10 PM, Lucas Nali de Magalh=C3=A3es wrote: > =EF=BB=BF > =EF=BB=BF >> On Jun 12, 2020, at 3:23 AM, Carlo Strub wrote: >>> On Fri, 5 Jun 2020, 20:48 Lucas Nali de Magalh=C3=A3es, wrote: >>> On Jun 5, 2020, at 3:45 PM, Lucas Nali de Magalh=C3=A3es wrote: >>>>=20 >>>> I've an old machine where I play with FreeBSD and after a while off, I= came back and noted that >>>> sometimes when I enter an ssh session part of the text repeats. It can b= e many lines or it can be >>>> just one or even it can be none. So it also looks like I found a memory= problem. Is it just me? >>> And I'm going from FreeBSD 12.1-p3 to 12.1-p5 in this case. >=20 >> =EF=BB=BFCan you elaborate on what steps you are doing to get to such a s= tate? >=20 >=20 >=20 > I wrote in the hope it was somewhat easy, sorry. I've difficulty in reprod= ucing it myself. Network is not > very reliable in it and I first though it was the WiFi but I observed it o= ver Ethernet IPv6, too. My sessions > have some "host not found" and "connection lost." I access from a Windows= 10 machine. I've no idea if > the things are related or not. I hope it have no relation with my typos. T= oday it was stable and I tried to > use the sftp but Windows (for the first time) tried to resolve the IPv6 ad= dress and didn't find the host. > The next ssh sessions had the line duplication problem. It's a 32bit Intel= Celeron M notebook used for > experimentation with customized FreeBSD (with make.conf and src.conf). >=20 $ cat /etc/make.conf SENDMAIL_CFLAGS+=3D-I/usr/local/include/sasl -DSASL SENDMAIL_LDFLAGS+=3D-L/usr/local/lib SENDMAIL_LDADD+=3D-lsasl2 CPUTYPE=3Dyonah DEFAULT_VERSIONS=3Dpython=3D3.7 python3=3D3.7 bdb=3D6 llvm=3D80 # perl5=3D5.= 32 TESSERACT_LANGS=3Dosd eng enm fra frm ita ita_old por $ cat /etc/src.conf #WITHOUT_BINUTILS=3D"YES" WITH_CLANG_EXTRAS=3D"YES" WITH_CLANG_FULL=3D"YES" WITHOUT_LLVM_TARGET_ALL=3D"YES" WITH_CTF=3D"YES" WITH_RETPOLINE=3D"YES" WITH_KERNEL_RETPOLINE=3D"YES" WITH_PIE=3D"YES" WITH_NAND=3D"YES" WITH_SORT_THREADS=3D"YES" WITH_BSD_GREP=3D"YES" WITHOUT_PC_SYSINSTALL=3D"YES" WITHOUT_BSDINSTALL=3D"YES" WITHOUT_FREEBSD_UPDATE=3D"YES" WITHOUT_SVNLITE=3D"YES" #WITHOUT_UNBOUND=3D"YES" WITHOUT_NLS=3D"YES" WITHOUT_SYSCONS=3D"YES" WITHOUT_EE=3D"YES" #WITHOUT_INET=3D"YES" WITHOUT_FLOPPY=3D"YES" WITHOUT_HYPERV=3D"YES" WITHOUT_LOADER_ZFS=3D"YES" WITHOUT_ZFS=3D"YES" WITHOUT_QUOTAS=3D"YES" --=20 rollingbits =E2=80=94 =F0=9F=93=A7 rollingbits@gmail.com =F0=9F=93=A7 rollin= gbits@terra.com.br =F0=9F=93=A7 rollingbits@yahoo.com =F0=9F=93=A7 rollingbi= ts@globo.com =F0=9F=93=A7 rollingbits@icloud.com