From nobody Wed Jan 29 21:31:02 2025 X-Original-To: freebsd-security-notifications@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YjwLv3C2fz5m301 for ; Wed, 29 Jan 2025 21:31:03 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YjwLv0bmmz3sH1; Wed, 29 Jan 2025 21:31:03 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738186263; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=w60hGinYKxkxbdyD4AmVxtttCcJEgXqMsTM/GBvSIFM=; b=NNJZJiFr1pWAcSOsKIQq1QPA/qKIpYY/rT3oDYbyMiUGXYqonfyXDa0JS1WOYFtfU3qw5Z 9LPbVjBS7N/eS6jU8eWREZ3jmv6+69GztMoOcz4yGrF2LyVP7K8TPY/4C8pr+1aSwFDBkt hS2nbtYuguK2VMyr4de5INtVK4R0TJkqSNa0+KXD46aFmnCf/OOJAmmY9w5jNGSoGEUx29 TL7Q8DkwUii03lX0U/gqTc3po/T3NODseBp5YloDj7Ba5BbwOShB7+JntqtRcOFMPVfj7l v9aGMcIvDVUTcVkdddcEAjfHBFKOYLyK0LzKwsG+EyNnws+y1jHj/dqIe0OKYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738186263; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=w60hGinYKxkxbdyD4AmVxtttCcJEgXqMsTM/GBvSIFM=; b=XWnlRyoiTHlbgI5nC08QjTrNbjjskd4QKcCZuGjY2pbdcw9JKzI/ATgKQDsRRPrn50tmwY AF+jw9VpCqS2ZMOepBN31opbu79YRz7qIB+J0FdHv/tnMq2yrmtqNZ/2QrUU/k2tqPrIN1 rsKujgznlVlDZ1jsjHpA6Wn+JqSMeKcEKutU4QjkIMTlM5BK5s745NyV8f9M4+tpKV1Jcr TbSuYHYpIe78tnXTjfP9a/WGSSRiwqWOP6BRRikJVj8Zxsx9wr19WTymDPqA0FNFGDAkEw tXLvkmIMP6yHtm2KRMLto1ypmOgSkEYFPj467mXDmN5YkowYHcvZ1zDSU/6Fuw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738186263; a=rsa-sha256; cv=none; b=W+S0d9rOS8hgmopnJ+MuveIWDm5D23LaSMpcV61Q5E5iEtpwY8jJ/0I05sYIlVuBfq5M+d wZyLgAbhZfOLYnKZqG6iuKszKGpWx+plPCuIe/1QA8gzPCeiaG8S2btbdXrF4hwQN4c6os phGzmc531Vkr7E+qwh25mYJ0IUcsPbKRJbG9l32WapvOtQ3/3rg9CfAEZLER3c7rHvNkFT 1Bn5PJg3Z2sDU51AGwp5ywIeWYPBzXvy/FhuWZQXJ7IbJGxy3nH6pMpYmlvj7GOBMEbk2N I6i/zoX/f+Y3o0evgmxpT0Kq0i8kX8RSGrQd7hYeDMD1I4rYhPdA7S0RwK+CTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: by freefall.freebsd.org (Postfix, from userid 945) id EB861257E; Wed, 29 Jan 2025 21:31:02 +0000 (UTC) From: FreeBSD Security Advisories To: FreeBSD Security Advisories Subject: FreeBSD Security Advisory FreeBSD-SA-25:01.openssh Reply-To: freebsd-security@freebsd.org Precedence: bulk Message-Id: <20250129213102.EB861257E@freefall.freebsd.org> Date: Wed, 29 Jan 2025 21:31:02 +0000 (UTC) List-Id: Moderated Security Notifications [moderated, low volume] List-Archive: https://lists.freebsd.org/archives/freebsd-security-notifications List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-security-notifications@freebsd.org Sender: owner-freebsd-security-notifications@FreeBSD.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-25:01.openssh Security Advisory The FreeBSD Project Topic: OpenSSH Keystroke Obfuscation Bypass Category: contrib Module: openssh Announced: 2025-01-29 Credits: Philippos Giavridis Credits: Jacky Wei En Kung, Daniel Hugenroth and Alastair Beresford (University of Cambridge) Affects: FreeBSD 14.1 Corrected: 2024-07-15 18:45:16 UTC (stable/14, 14.2-STABLE) 2025-01-29 18:55:25 UTC (releng/14.1, 14.1-RELEASE-p7) 2024-08-01 15:03:50 UTC (stable/13, 13.4-STABLE) CVE Name: CVE-2024-39894 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background OpenSSH is an implementation of the SSH protocol suite, providing an encrypted and authenticated transport for a variety of services, including remote shell access. OpenSSH version 9.5 introduced a mechanism to mitigate keystroke timing attacks by "sending interactive traffic at fixed intervals when there is only a small amount of data being sent." II. Problem Description A logic error in the ssh(1) ObscureKeystrokeTiming feature (on by default) rendered this feature ineffective. III. Impact A passive observer could detect which network packets contain real keystrokes, and infer the specific characters being transmitted from packet timing. IV. Workaround No workaround is available. This bug does not affect connections when ObscureKeystrokeTiming was disabled or sessions where no TTY was requested. 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 amd64 or arm64 platforms, or the i386 platform on FreeBSD 13, 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 14.1] # fetch https://security.FreeBSD.org/patches/SA-25:01/openssh.patch # fetch https://security.FreeBSD.org/patches/SA-25:01/openssh.patch.asc # gpg --verify openssh.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 . VI. Correction details This issue is corrected as of the corresponding Git commit hash in the following stable and release branches: Branch/path Hash Revision - ------------------------------------------------------------------------- stable/14/ bf9a275b24f6 stable/14-n268158 releng/14.1/ 88d5d8108711 releng/14.1-n267735 stable/13/ 79853e40abd8 stable/13-n258171 - ------------------------------------------------------------------------- Run the following command to see which files were modified by a particular commit: # git show --stat Or visit the following URL, replacing NNNNNN with the hash: To determine the commit count in a working tree (for comparison against nNNNNNN in the table above), run: # git rev-list --count --first-parent HEAD VII. References The latest revision of this advisory is available at -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEthUnfoEIffdcgYM7bljekB8AGu8FAmeajKgACgkQbljekB8A Gu8WORAAl3zgLVz40e7nhduuV4eZlnvWAc6sruSap5f80ikGLRDfuzgKugWdOvTA i+bSZuZkGPx444uyC0JcN016+oUpd/1Xzr4/KQ7BL0ZYmgxQn/O8jfPbEiSloXpG Vgn8ZXYh1EKilhIw6n79yZN6WSY/gAfMZzeY/R7v1n7WaBnUYaUB8fl94CoTxf1j qQfmngBi6GU52OqirqBI4OYozJ2dkhRK/epvFUxMPGFVKa7wj4GChrQFW+PCyvHE TPg4H37kbSC37LbCn2Y/vjs8WcAr/xI68AGkalANgqVvtIpA0+tO7hn5gqgevbc8 xO1xDvy38mlgX1CIdRD/Ur857z3P23mVfPhHkXX+85mbH/8QRbMJuB88zrhS9pcY V+dq23r0ALRCo8t8Sab5xukZhuK2rxFfXvfF2YT920Vd7LgCsA9MjTCdU/IfNpH0 Ax5Lq1bm4cv9DT47XBRn+0QDZU0TSq0uJ8YLrusfS67ikzdbSBqL3tOAXtz6DeCL UDqSg3Ohw4HFn+DNMOdmESWO/t5LesEY/nB/vGSQYNYQMqlednwAPVhp6D8jvcgE Wi26qTLo4SgcvfDUk4EfDeLp90pgCXkBn5Zo9eTdOlyY/aMzvFcI7EKbsSAkX1Cg zus5DrcA9BTu2Wp9xWTUHLBC65ecHy6/xXSubjL4GCbYcPcjxQI= =oskq -----END PGP SIGNATURE-----