Skip to content

Commit 0679526

Browse files
committed
openssh: Update to 9.9p2
While here, delint the package. Remove a hardcoded use of /var. This release fixes two security bugs, including a DoS and MITM impersonator when the VerifyHostKeyDNS option is enabled.
1 parent 724fd1f commit 0679526

File tree

5 files changed

+24
-18
lines changed

5 files changed

+24
-18
lines changed

security/openssh/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# $NetBSD: Makefile,v 1.286 2024/09/24 21:43:13 wiz Exp $
22

3-
DISTNAME= openssh-9.9p1
3+
DISTNAME= openssh-9.9p2
44
CATEGORIES= security
55
MASTER_SITES= ${MASTER_SITE_OPENBSD:=OpenSSH/portable/}
66

@@ -66,6 +66,8 @@ CONFIGURE_ARGS+= --with-pie
6666
#
6767
CONFIGURE_ENV+= LD=${CC:Q}
6868

69+
CONFIGURE_ENV+= VARBASE=${VARBASE}
70+
6971
# Enable S/Key support on NetBSD, Darwin, and Solaris.
7072
.if (${OPSYS} == "NetBSD") || (${OPSYS} == "Darwin") || (${OPSYS} == "SunOS")
7173
. include "../../security/skey/buildlink3.mk"

security/openssh/distinfo

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
$NetBSD: distinfo,v 1.125 2024/09/24 21:43:13 wiz Exp $
22

3-
BLAKE2s (openssh-9.9p1.tar.gz) = 915490e437430a87ec8077f062c195e9eb7da2455f5cd035f541a9f81d43ff70
4-
SHA512 (openssh-9.9p1.tar.gz) = 3cc0ed97f3e29ecbd882eca79239f02eb5a1606fce4f3119ddc3c5e86128aa3ff12dc85000879fccc87b60e7d651cfe37376607ac66075fede2118deaa685d6d
5-
Size (openssh-9.9p1.tar.gz) = 1964864 bytes
6-
SHA1 (patch-Makefile.in) = 38df2aa7aaeeaac660763724188852bdb8bdcd24
7-
SHA1 (patch-configure.ac) = eb759d065e296a5fdf1e8925308e6e77ea2c60a8
8-
SHA1 (patch-defines.h) = 5424b1b24f1d4bbd47efa614ee180a45e7b9a54e
3+
BLAKE2s (openssh-9.9p2.tar.gz) = 6a453c920f5aa087d39c2978ca14cfb6bd4915fbf3801b7cd395be7f2b018f86
4+
SHA512 (openssh-9.9p2.tar.gz) = 4c6d839aa3189cd5254c745f2bd51cd3f468b02f8e427b8d7a16b9ad017888a41178d2746dc51fb2d3fec5be00e54b9ab7c32c472ca7dec57a1dea4fc9840278
5+
Size (openssh-9.9p2.tar.gz) = 1944499 bytes
6+
SHA1 (patch-Makefile.in) = c57cd6073be30451c66d45cb994615fcc8482462
7+
SHA1 (patch-configure.ac) = ee2174cc28f296c265ba63aec1bdaf8d0b9f2359
8+
SHA1 (patch-defines.h) = 31f5d1601eb40e6ce13af5bb2b29b2dd3ddc8a89
99
SHA1 (patch-sshkey.h) = aaaf622f377e455c49683fcc2ca42576ccd097bb

security/openssh/patches/patch-Makefile.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
$NetBSD: patch-Makefile.in,v 1.8 2024/07/01 09:19:40 wiz Exp $
1+
$NetBSD$
22

33
Use askpass provided by pkgsrc.
44

55
Removed install-sysconf as we handle that phase through post-install
66

7-
--- Makefile.in.orig 2024-07-01 04:36:28.000000000 +0000
7+
--- Makefile.in.orig 2025-02-18 08:15:08.000000000 +0000
88
+++ Makefile.in
99
@@ -21,7 +21,7 @@ abs_top_builddir=@abs_top_builddir@
1010
DESTDIR=
@@ -15,7 +15,7 @@ Removed install-sysconf as we handle that phase through post-install
1515
SFTP_SERVER=$(libexecdir)/sftp-server
1616
SSH_KEYSIGN=$(libexecdir)/ssh-keysign
1717
SSHD_SESSION=$(libexecdir)/sshd-session
18-
@@ -389,7 +390,7 @@ distprep: catman-do depend-check
18+
@@ -389,7 +389,7 @@ distprep: catman-do depend-check
1919
-rm -rf autom4te.cache .depend.bak
2020

2121
install: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config

security/openssh/patches/patch-configure.ac

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
$NetBSD: patch-configure.ac,v 1.10 2024/07/01 09:19:40 wiz Exp $
1+
$NetBSD$
22

3-
--- configure.ac.orig 2024-07-01 04:36:28.000000000 +0000
3+
Do not force through rpath settings, let rpath handle them.
4+
5+
Use askpass provided by pkgsrc.
6+
7+
--- configure.ac.orig 2025-02-18 08:15:08.000000000 +0000
48
+++ configure.ac
59
@@ -380,6 +380,9 @@ AC_ARG_WITH([rpath],
610
]
@@ -12,12 +16,12 @@ $NetBSD: patch-configure.ac,v 1.10 2024/07/01 09:19:40 wiz Exp $
1216
# Allow user to specify flags
1317
AC_ARG_WITH([cflags],
1418
[ --with-cflags Specify additional flags to pass to compiler],
15-
@@ -5568,9 +5628,17 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
19+
@@ -5578,9 +5581,17 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1620
])
1721
if test -z "$conf_wtmpx_location"; then
1822
if test x"$system_wtmpx_path" = x"no" ; then
1923
- AC_DEFINE([DISABLE_WTMPX])
20-
+ for f in /var/log/wtmpx; do
24+
+ for f in ${VARBASE}/log/wtmpx; do
2125
+ if test -f $f ; then
2226
+ conf_wtmpx_location=$f
2327
+ fi
@@ -32,7 +36,7 @@ $NetBSD: patch-configure.ac,v 1.10 2024/07/01 09:19:40 wiz Exp $
3236
AC_DEFINE_UNQUOTED([CONF_WTMPX_FILE], ["$conf_wtmpx_location"],
3337
[Define if you want to specify the path to your wtmpx file])
3438
fi
35-
@@ -5677,7 +5745,7 @@ echo "OpenSSH has been configured with t
39+
@@ -5687,7 +5698,7 @@ echo "OpenSSH has been configured with t
3640
echo " User binaries: $B"
3741
echo " System binaries: $C"
3842
echo " Configuration files: $D"

security/openssh/patches/patch-defines.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
$NetBSD: patch-defines.h,v 1.5 2024/07/01 09:19:40 wiz Exp $
1+
$NetBSD$
22

33
Define ROOTUID, UTMPX_FILE and WTMPX_FILE
44

5-
--- defines.h.orig 2015-08-21 04:49:03.000000000 +0000
5+
--- defines.h.orig 2025-02-18 08:15:08.000000000 +0000
66
+++ defines.h
7-
@@ -721,6 +730,24 @@ struct winsize {
7+
@@ -821,6 +821,24 @@ struct winsize {
88
# endif
99
# endif
1010
#endif

0 commit comments

Comments
 (0)