pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/sudo sudo: update to 1.8.28. fixes CVE-2019-1...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/333b88af3007
branches:  trunk
changeset: 342136:333b88af3007
user:      maya <maya%pkgsrc.org@localhost>
date:      Mon Oct 14 20:05:58 2019 +0000

description:
sudo: update to 1.8.28. fixes CVE-2019-14287

Sudo will now only set PAM_TTY to the empty string when no terminal is present on Solaris and Linux. This workaround is only needed on those systems which may have PAM modules that misbehave when 
PAM_TTY is not set.

The mailerflags sudoers option now has a default value even if sendmail support was disabled at configure time. Fixes a crash when the mailerpath sudoers option is set but mailerflags is not. Bug 
#878.

Sudo will now filter out last login messages on HP-UX unless it a shell is being run via sudo -s or sudo -i. Otherwise, when trusted mode is enabled, these messages will be displayed for each command.

On AIX, when the user's password has expired and PAM is not in use, sudo will now allow the user to change their password. Bug #883.

Sudo has a new -B command line option that will ring the terminal bell when prompting for a password.

Sudo no longer refuses to prompt for a password when it cannot determine the user's terminal as long as it can open /dev/tty. This allows sudo to function on systems where /proc is unavailable, such 
as when running in a chroot environment.

The env_editor sudoers flag is now on by default. This makes source builds more consistent with the packages generated by sudo's mkpkg script.

Sudo no longer ships with pre-formatted copies of the manual pages. These were included for systems like IRIX that don't ship with an nroff utility. There are now multiple Open Source nroff 
replacements so this should no longer be an issue.

Fixed a bad interaction with configure's --prefix and --disable-shared options. Bug #886.

More verbose error message when a password is required and no terminal is present. Bug #828.

Command tags, such as NOPASSWD, are honored when a user tries to run a command that is allowed by sudoers but which does not actually exist on the file system. Bug #888.

Asturian translation for sudoers from translationproject.org.

I/O log timing files now store signal suspend and resume information in the form of a signal name instead of a number.

Fixed a bug introduced in 1.8.24 that prevented sudo from honoring the value of ipa_hostname from sssd.conf, if specified, when matching the host name.

Fixed a bug introduced in 1.8.21 that prevented the core dump resource limit set in the pam_limits module from taking effect. Bug #894.

Fixed parsing of double-quoted Defaults group and netgroup bindings.

The user ID is now used when matching sudoUser attributes in LDAP. Previously, the user name, group name and group IDs were used when matching but not the user ID.

Sudo now writes PAM messages to the user's terminal, if available, instead of the standard output or standard error. This prevents PAM output from being intermixed with that of the command when 
output is sent to a file or pipe. Bug #895.

Sudoedit now honors the umask and umask_override settings in sudoers. Previously, the user's umask was used as-is.

Fixed a bug where the terminal's file context was not restored when using SELinux RBAC. Bug #898.

Fixed a security issue where a sudo user may be able to run a command as root when the Runas specification explicitly disallows root access as long as the ALL keyword is listed first. This 
vulnerability has been assigned CVE-2019-14287

diffstat:

 security/sudo/Makefile                         |   4 +-
 security/sudo/distinfo                         |  12 +++++----
 security/sudo/patches/patch-lib_util_sig2str.c |  23 +++++++++++++++++++
 security/sudo/patches/patch-lib_util_str2sig.c |  31 ++++++++++++++++++++++++++
 4 files changed, 63 insertions(+), 7 deletions(-)

diffs (98 lines):

diff -r 7dabe2334cef -r 333b88af3007 security/sudo/Makefile
--- a/security/sudo/Makefile    Mon Oct 14 19:46:29 2019 +0000
+++ b/security/sudo/Makefile    Mon Oct 14 20:05:58 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.167 2019/05/11 22:51:08 kim Exp $
+# $NetBSD: Makefile,v 1.168 2019/10/14 20:05:58 maya Exp $
 
-DISTNAME=      sudo-1.8.27
+DISTNAME=      sudo-1.8.28
 CATEGORIES=    security
 MASTER_SITES=  https://www.sudo.ws/dist/
 MASTER_SITES+= ftp://ftp.sudo.ws/pub/sudo/
diff -r 7dabe2334cef -r 333b88af3007 security/sudo/distinfo
--- a/security/sudo/distinfo    Mon Oct 14 19:46:29 2019 +0000
+++ b/security/sudo/distinfo    Mon Oct 14 20:05:58 2019 +0000
@@ -1,13 +1,15 @@
-$NetBSD: distinfo,v 1.101 2019/01/15 21:44:16 adam Exp $
+$NetBSD: distinfo,v 1.102 2019/10/14 20:05:58 maya Exp $
 
-SHA1 (sudo-1.8.27.tar.gz) = 9dd0d21ec02da8a4a8bf86f496c3e909cb6d1636
-RMD160 (sudo-1.8.27.tar.gz) = fb7b0eb0782011f9d87d20a694a6ff7c31abf052
-SHA512 (sudo-1.8.27.tar.gz) = 0480def650ab880ab9e6c51c606a06897fd638f0381e99c038f5aa47d064aaa2fb35b73eee7f86e73185e18d5dbb8b6ba49c616b1785a1edb2dd6d7b2fa4fcac
-Size (sudo-1.8.27.tar.gz) = 3293178 bytes
+SHA1 (sudo-1.8.28.tar.gz) = c0a6ccb124b4cef58255ee9ca3179c52db07910b
+RMD160 (sudo-1.8.28.tar.gz) = 5104faf846b59a0c04045e2f464ffeae3ddf95c2
+SHA512 (sudo-1.8.28.tar.gz) = 09e589cdfd18d7c43b0859a0e11c008b3cb995ae4f8c89c717c5242db9e5696361eb574ebe74a0b5316afffb3a8037f7a7f3c249176e8ed9caffeb4cd860ddc7
+Size (sudo-1.8.28.tar.gz) = 3309744 bytes
 SHA1 (patch-Makefile.in) = 279c7ad0f7f85ea7bc2d4beb5aa21abdf6237a7c
 SHA1 (patch-configure) = 460b9575346c263b944535aa8e2408e959840c77
 SHA1 (patch-include_sudo__compat.h) = 4f9b021ebdd507949f13e289deabdb6090ab334c
 SHA1 (patch-include_sudo__event.h) = 4d0787a45c2c7d4a7d3ae3111ccb3a4a4b84d083
+SHA1 (patch-lib_util_sig2str.c) = e5636d9e414fc9354cd238751fa4a00026320dd3
+SHA1 (patch-lib_util_str2sig.c) = 42de4b9716baaff72439512df41e5382a6ce9294
 SHA1 (patch-plugins_sudoers_Makefile.in) = d8612ac7bf2f5a892d9720c4df91810ca807f4ed
 SHA1 (patch-plugins_sudoers_logging.c) = 700ac9540a82bea4f3106cea941b785e5bd31203
 SHA1 (patch-plugins_sudoers_starttime.c) = ab051d327a2b01736ab9ceefe7e6f03e0e2f1ee6
diff -r 7dabe2334cef -r 333b88af3007 security/sudo/patches/patch-lib_util_sig2str.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/sudo/patches/patch-lib_util_sig2str.c    Mon Oct 14 20:05:58 2019 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-lib_util_sig2str.c,v 1.1 2019/10/14 20:05:58 maya Exp $
+
+Handle sysconf(_SC_RTSIG_MAX) not existing (netbsd):
+just assume the static limits is good enough.
+
+--- lib/util/sig2str.c.orig    2019-10-10 16:33:03.000000000 +0000
++++ lib/util/sig2str.c
+@@ -65,6 +65,7 @@ sudo_sig2str(int signo, char *signame)
+ #if defined(SIGRTMIN) && defined(SIGRTMAX)
+     /* Realtime signal support. */
+     if (signo >= SIGRTMIN && signo <= SIGRTMAX) {
++#ifdef _SC_RTSIG_MAX
+       const long rtmax = sysconf(_SC_RTSIG_MAX);
+       if (rtmax > 0) {
+           if (signo == SIGRTMIN) {
+@@ -79,6 +80,7 @@ sudo_sig2str(int signo, char *signame)
+                   (SIGRTMAX - signo));
+           }
+       }
++#endif
+       return 0;
+     }
+ #endif
diff -r 7dabe2334cef -r 333b88af3007 security/sudo/patches/patch-lib_util_str2sig.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/sudo/patches/patch-lib_util_str2sig.c    Mon Oct 14 20:05:58 2019 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-lib_util_str2sig.c,v 1.1 2019/10/14 20:05:58 maya Exp $
+
+Handle sysconf(_SC_RTSIG_MAX) not existing (netbsd):
+just assume the static limits is good enough.
+
+--- lib/util/str2sig.c.orig    2019-10-10 16:33:03.000000000 +0000
++++ lib/util/str2sig.c
+@@ -112,7 +112,11 @@ sudo_str2sig(const char *signame, int *r
+       }
+       if (signame[5] == '+') {
+           if (isdigit((unsigned char)signame[6])) {
++#ifdef _SC_RTSIG_MAX
+               const long rtmax = sysconf(_SC_RTSIG_MAX);
++#else
++              const long rtmax = SIGRTMAX;
++#endif
+               const int off = signame[6] - '0';
+ 
+               if (rtmax > 0 && off < rtmax / 2) {
+@@ -131,7 +135,11 @@ sudo_str2sig(const char *signame, int *r
+       }
+       if (signame[5] == '-') {
+           if (isdigit((unsigned char)signame[6])) {
++#ifdef _SC_RTSIG_MAX
+               const long rtmax = sysconf(_SC_RTSIG_MAX);
++#else
++              const long rtmax = SIGRTMAX;
++#endif
+               const int off = signame[6] - '0';
+ 
+               if (rtmax > 0 && off < rtmax / 2) {



Home | Main Index | Thread Index | Old Index