git: 05a46bbf545a - main - security/dropbear: update to 2025.87
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 16 Mar 2025 01:14:09 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=05a46bbf545a6ba713205cea63079226168e0a8a
commit 05a46bbf545a6ba713205cea63079226168e0a8a
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-03-09 22:59:47 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-03-16 01:14:01 +0000
security/dropbear: update to 2025.87
Changes:
Note >> for compatibility/configuration changes
- >> Disable SHA-1 algorithms by default. SHA-1 has known weakness and
most implementations support alternatives.
- Add post-quantum key exchange. These avoid the possibility of current
stored traffic being decrypted using a possible future quantum
computer.
sntrup761 added by Matt Johnston, using sntrup761 implementation from
Daniel J. Bernstein, Chitchanok Chuengsatiansup, Tanja Lange and
Christine van Vredendaal, with integration work from OpenSSH.
ML-KEM added by Loganaden Velvindron, Jaykishan Mutkawoa, Kavish Nadan,
using libcrux, also based on OpenSSH work.
These do increase code size, at least sntrup761 is recommended,
see default_options.h
- >> Decompression is disabled on the server, compression
is still supported.
This avoids attack surface for zlib and saves runtime memory.
- Add -D server flag to specify authorized_keys directory, from Darren Tucker.
- Include remote host in "Login attempt with wrong user" message for fail2ban,
patch from MichaIng.
- Workaround writing hostkeys on FUSE filesystem that don't
support hardlinks, reported by elijahr.
- Fix truncated error messages such as host key mismatch.
- >> Preference aes256 ahead of aes128 for the client. chacha20-poly1305
is still first preference.
- Fix ubsan failure in curve25519 code, reported by Steven Bytnar.
Has no effect on execution.
---
security/dropbear/Makefile | 17 +++++++++++++----
security/dropbear/distinfo | 6 +++---
2 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/security/dropbear/Makefile b/security/dropbear/Makefile
index 877201e4f902..31723fac10a3 100644
--- a/security/dropbear/Makefile
+++ b/security/dropbear/Makefile
@@ -1,5 +1,5 @@
PORTNAME= dropbear
-PORTVERSION= 2024.86
+PORTVERSION= 2025.87
CATEGORIES= security
MASTER_SITES= https://matt.ucc.asn.au/dropbear/releases/
@@ -20,12 +20,13 @@ ALL_TARGET= all scp
OPTIONS_DEFINE= SMALL_CODE PORTS_LIBTOM STATIC X11FWD
OPTIONS_DEFAULT= AES128 AES256 CURVE25519 ECDSA ED25519 GCM \
- GROUP14_SHA256 GROUP16 PORTS_LIBTOM RSA SHA2_256
+ GROUP14_SHA256 GROUP16 PORTS_LIBTOM RSA SHA2_256 \
+ MLKEM768 SNTRUP761
OPTIONS_MULTI= ENC KEY KEX MAC MODE
OPTIONS_MULTI_ENC= 3DES AES128 AES256 CHACHA20POLY1305
OPTIONS_MULTI_KEY= DSS ECDSA ED25519 RSA
OPTIONS_MULTI_KEX= CURVE25519 ECDH GROUP1 GROUP14_SHA1 GROUP14_SHA256 \
- GROUP16
+ GROUP16 MLKEM768 SNTRUP761
OPTIONS_MULTI_MAC= MD5 RSA_SHA1 SHA1 SHA1_96 SHA2_256 SHA2_512
OPTIONS_MULTI_MODE= CBC CTR GCM
@@ -46,6 +47,8 @@ GROUP14_SHA256_DESC= Enable Group14 Diffie-Helman with SHA256
GROUP16_DESC= Enable Group16 Diffie-Hellman
GROUP1_DESC= Enable Group1 Diffie-Hellman (insecure)
MD5_DESC= Enable MD5 MAC (broken)
+MLKEM768_DESC= Enable mlkem768 key exchange algorithm (recommended)
+SNTRUP761_DESC= Enable sntrup761 key exchange algorithm (recommended)
PORTS_LIBTOM_DESC= Use libtomcrypt/libtommath in ports tree
RSA_DESC= Enable RSA public key support
RSA_SHA1_DESC= Enable RSA SHA1 MAC (insecure)
@@ -72,7 +75,7 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libtomcrypt.a:security/libtomcrypt \
${LOCALBASE}/lib/libtommath.a:math/libtommath
.endif
-.if ${PORT_OPTIONS:MPORTS_LIBTOM} && ! ${PORT_OPTIONS:MSTATIC}
+.if ${PORT_OPTIONS:MPORTS_LIBTOM} && !${PORT_OPTIONS:MSTATIC}
LIB_DEPENDS= libtomcrypt.so:security/libtomcrypt \
libtommath.so:math/libtommath
.endif
@@ -141,6 +144,9 @@ post-patch-ED25519-off:
post-patch-MD5-on:
@${ECHO} "#define DROPBEAR_MD5_HMAC 1" >> ${WRKSRC}/localoptions.h
+post-patch-MLKEM768-off:
+ @${ECHO} "#define DROPBEAR_MLKEM768 0" >> ${WRKSRC}/localoptions.h
+
post-patch-SHA1-off:
@${ECHO} "#define DROPBEAR_SHA1_HMAC 0" >> ${WRKSRC}/localoptions.h
@@ -153,6 +159,9 @@ post-patch-SHA2_256-off:
post-patch-SHA2_512-on:
@${ECHO} "#define DROPBEAR_SHA2_512_HMAC 1" >> ${WRKSRC}/localoptions.h
+post-patch-SNTRUP761-off:
+ @${ECHO} "#define DROPBEAR_SNTRUP761 0" >> ${WRKSRC}/localoptions.h
+
post-patch-X11FWD-on:
@${ECHO} "#define DROPBEAR_X11FWD 1" >> ${WRKSRC}/localoptions.h
diff --git a/security/dropbear/distinfo b/security/dropbear/distinfo
index 1dd96c0323f1..bc2b2084b527 100644
--- a/security/dropbear/distinfo
+++ b/security/dropbear/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1731061169
-SHA256 (dropbear-2024.86.tar.bz2) = e78936dffc395f2e0db099321d6be659190966b99712b55c530dd0a1822e0a5e
-SIZE (dropbear-2024.86.tar.bz2) = 2306244
+TIMESTAMP = 1741554412
+SHA256 (dropbear-2025.87.tar.bz2) = 738b7f358547f0c64c3e1a56bbc5ef98d34d9ec6adf9ccdf01dc0bf2caa2bc8d
+SIZE (dropbear-2025.87.tar.bz2) = 2368085