Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1069415 > unrolled thread

Bug#993507: libgnutls30: fails to negotiate X25519 where NSS & OpenSSL succeed, success with X448

Started byLionel Elie Mamane <lionel@mamane.lu>
First post2021-09-02 12:30 +0200
Last post2021-09-04 07:50 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#993507: libgnutls30: fails to negotiate X25519 where NSS & OpenSSL succeed, success with X448 Lionel Elie Mamane <lionel@mamane.lu> - 2021-09-02 12:30 +0200
    Bug#993507: libgnutls30: fails to negotiate X25519 where NSS & OpenSSL succeed, success with X448 Lionel Élie Mamane <lionel@mamane.lu> - 2021-09-02 20:50 +0200
      Bug#993507: libgnutls30: fails to negotiate X25519 where NSS & OpenSSL succeed, success with X448 Andreas Metzler <ametzler@bebt.de> - 2021-09-04 07:50 +0200

#1069415 — Bug#993507: libgnutls30: fails to negotiate X25519 where NSS & OpenSSL succeed, success with X448

FromLionel Elie Mamane <lionel@mamane.lu>
Date2021-09-02 12:30 +0200
SubjectBug#993507: libgnutls30: fails to negotiate X25519 where NSS & OpenSSL succeed, success with X448
Message-ID<CSS8N-64b-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Package: libgnutls30
Version: 3.7.2-2
Severity: normal

$ gnutls-cli --priority 'NORMAL:-GROUP-SECP256R1:-GROUP-SECP384R1:-GROUP-SECP521R1' fxtop.com
Processed 138 CA certificate(s).
Resolving 'fxtop.com:443'...
Connecting to '5.39.68.178:443'...
*** Fatal error: An illegal parameter has been received.

$ openssl s_client -curves X25519 -connect fxtop.com:443
CONNECTED(00000003)
(... snip ...)
---
No client certificate CA names sent
Peer signing digest: SHA256
Peer signature type: RSA-PSS
Server Temp Key: X25519, 253 bits
---
(... snip ...)


I attach a pcapng of network corresponding traffic. The same is
reproducible with www.collaboraoffice.com instead of fxtop.com

Note, though (not included in pcapng file):

$ gnutls-cli --priority 'NORMAL:-GROUP-SECP256R1:-GROUP-SECP384R1:-GROUP-SECP521R1:-GROUP-X25519' fxtop.com
(...)
Resolving 'fxtop.com:443'...
Connecting to '5.39.68.178:443'...
(...)
- Description: (TLS1.3)-(ECDHE-X448)-(RSA-PSS-RSAE-SHA256)-(AES-256-GCM)


-- System Information:
Debian Release: 10.10
  APT prefers oldstable
  APT policy: (600, 'oldstable'), (500, 'oldstable-updates'), (400, 'testing'), (300, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.7.0-1-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libgnutls30 depends on:
ii  libc6          2.31-13
ii  libgmp10       2:6.1.2+dfsg-4
ii  libhogweed6    3.7.3-1
ii  libidn2-0      2.0.5-1+deb10u1
ii  libnettle8     3.7.3-1
ii  libp11-kit0    0.23.22-1
ii  libtasn1-6     4.16.0-2
ii  libunistring2  0.9.10-1

libgnutls30 recommends no packages.

Versions of packages libgnutls30 suggests:
ii  gnutls-bin  3.6.7-4+deb10u7

-- no debconf information

-- 
Lionel Mamane
Tél: +352 46 67 74
Fax: +352 46 67 76

This message and any attachments may be intended to be confidential,
intended solely for the addressee and/or contain legally privileged
information. Any unauthorised use or dissemination is prohibited.
Unless cryptographically protected, emails are susceptible to
interception, alteration and spoofing, so in case of doubt, please
check by independent means.

We do not make any commitment by email, ever; if this emails appears
to contain a commitment, we will not recognise the latter as valid,
nor as engaging our liability. We make commitments only by a written
paper document signed by at least one person entitled to engage our
liability.

[toc] | [next] | [standalone]


#1069463

FromLionel Élie Mamane <lionel@mamane.lu>
Date2021-09-02 20:50 +0200
Message-ID<CSZWF-2wn-3@gated-at.bofh.it>
In reply to#1069415
tags 993507 +upstream
forwarded 993507 https://gitlab.com/gnutls/gnutls/-/issues/1249
retitle 993507 libgnutls30: client 'illegal parameter' error when both X25519 and X448 are enabled and the server picks one of those
thanks

On Thu, Sep 02, 2021 at 12:04:02PM +0200, Lionel Elie Mamane wrote:
> $ gnutls-cli --priority 'NORMAL:-GROUP-SECP256R1:-GROUP-SECP384R1:-GROUP-SECP521R1' fxtop.com
> *** Fatal error: An illegal parameter has been received.

> $ gnutls-cli --priority 'NORMAL:-GROUP-SECP256R1:-GROUP-SECP384R1:-GROUP-SECP521R1:-GROUP-X25519' fxtop.com
> - Description: (TLS1.3)-(ECDHE-X448)-(RSA-PSS-RSAE-SHA256)-(AES-256-GCM)

$ gnutls-cli --priority 'NORMAL:-GROUP-ALL:+GROUP-X25519' fxtop.com
succeeds, too, in line with the upstream bug description,

It is not immediately obvious to me in what released version that
upstream bug is fixed.

-- 
Lionel

[toc] | [prev] | [next] | [standalone]


#1069679

FromAndreas Metzler <ametzler@bebt.de>
Date2021-09-04 07:50 +0200
Message-ID<CTwIV-7mZ-1@gated-at.bofh.it>
In reply to#1069463
On 2021-09-02 Lionel Élie Mamane <lionel@mamane.lu> wrote:
> tags 993507 +upstream
> forwarded 993507 https://gitlab.com/gnutls/gnutls/-/issues/1249
> retitle 993507 libgnutls30: client 'illegal parameter' error when both X25519 and X448 are enabled and the server picks one of those
[...]
> It is not immediately obvious to me in what released version that
> upstream bug is fixed.

Hello Lionel,

None, the bug was closed (via merge frequest) on June 25, the latest
release (3.7.2) dates back to May 29.

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web