Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 920291

Summary: <net-libs/libssh-0.10.6: terrapin vulnerability
Product: Gentoo Security Reporter: Christopher Fore <csfore>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://terrapin-attack.com/
See Also: https://github.com/gentoo/gentoo/pull/34359
https://github.com/gentoo/gentoo/pull/34627
Whiteboard: A3 [glsa+]
Package list:
Runtime testing required: ---
Bug Depends on: 920726    
Bug Blocks: 920280    

Description Christopher Fore 2023-12-18 23:44:32 UTC
CVE-2023-48795 (https://terrapin-attack.com/):

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remote attackers to bypass integrity checks such that some packets are omitted (from the extension negotiation message), and a client and server may consequently end up with a connection for which some security features have been downgraded or disabled, aka a Terrapin attack. This occurs because the SSH Binary Packet Protocol (BPP), implemented by these extensions, mishandles the handshake phase and mishandles use of sequence numbers. For example, there is an effective attack against ChaCha20-Poly1305 (and CBC with Encrypt-then-MAC). The bypass occurs in chacha20-poly1305@openssh.com and (if CBC is used) the -etm@openssh.com MAC algorithms. This also affects Maverick Synergy Java SSH API before 3.1.0-SNAPSHOT, Dropbear through 2022.83, Ssh before 5.1.1 in Erlang/OTP, and PuTTY before 0.80; and there could be effects on Bitvise SSH through 9.31, AsyncSSH through 2.14.1, libssh through 0.10.5, and golang.org/x/crypto through 2023-12-17.
Comment 1 Larry the Git Cow gentoo-dev 2023-12-19 05:42:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18f1b347bcee162d7fc7a405aa355ad1ba965b51

commit 18f1b347bcee162d7fc7a405aa355ad1ba965b51
Author:     Christopher Fore <csfore@posteo.net>
AuthorDate: 2023-12-19 00:17:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-19 05:31:05 +0000

    net-libs/libssh: add 0.10.6
    
    This addresses the Terrapin vulnerability
    
    Bug: https://bugs.gentoo.org/920291
    Signed-off-by: Christopher Fore <csfore@posteo.net>
    Closes: https://github.com/gentoo/gentoo/pull/34359
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/libssh/Manifest             |   1 +
 net-libs/libssh/libssh-0.10.6.ebuild | 135 +++++++++++++++++++++++++++++++++++
 2 files changed, 136 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2023-12-28 02:22:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=b5fd84fed4c7e7ddb236f13fb5044cc546ce7c6c

commit b5fd84fed4c7e7ddb236f13fb5044cc546ce7c6c
Author:     GLSAMaker <glsamaker@gentoo.org>
AuthorDate: 2023-12-28 02:21:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-28 02:22:08 +0000

    [ GLSA 202312-16 ] libssh: Multiple Vulnerabilities
    
    Bug: https://bugs.gentoo.org/920291
    Bug: https://bugs.gentoo.org/920724
    Signed-off-by: GLSAMaker <glsamaker@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 glsa-202312-16.xml | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2024-01-03 23:01:24 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1565810cb6fde75c0271f52eaf08f28d1548b66

commit e1565810cb6fde75c0271f52eaf08f28d1548b66
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-01-03 22:28:41 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-01-03 23:00:47 +0000

    net-libs/libssh: Cleanup vulnerable 0.10.5
    
    Bug: https://bugs.gentoo.org/920291
    Bug: https://bugs.gentoo.org/920724
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 net-libs/libssh/Manifest             |   1 -
 net-libs/libssh/libssh-0.10.5.ebuild | 135 -----------------------------------
 2 files changed, 136 deletions(-)
Comment 4 Andreas Sturmlechner gentoo-dev 2024-01-03 23:02:21 UTC
Cleanup done, kde proj out.