Skip to content

Commit 9e111ea

Browse files
committed
Sudo 1.9.5
1 parent 250cccf commit 9e111ea

7 files changed

Lines changed: 78 additions & 15 deletions

File tree

NEWS

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,66 @@
1+
What's new in Sudo 1.9.5
2+
3+
* Fixed a crash introduced in 1.9.4 when running "sudo -i" as an
4+
unknown user. This is related to but distinct from Bug #948.
5+
6+
* If the "lecture_file" setting is enabled in sudoers, it must now
7+
refer to a regular file or a symbolic link to a regular file.
8+
9+
* Fixed a potential use-after-free bug in sudo_logsrvd when the
10+
server shuts down if there are existing connections from clients
11+
that are only logging events and not session I/O data.
12+
13+
* Fixed a buffer size mismatch when serializing the list of IP
14+
addresses for configured network interfaces. This bug is not
15+
actually exploitable since the allocated buffer is large enough
16+
to hold the list of addresses.
17+
18+
* If sudo is executed with a name other that "sudo" or "sudoedit",
19+
it will now fall back to "sudo" as the program name. This affects
20+
warning, help and usage messages as well as the matching of Debug
21+
lines in the /etc/sudo.conf file. Previously, it was possible
22+
for the invoking user to manipulate the program name by setting
23+
argv[0] to an arbitrary value when executing sudo.
24+
25+
* Sudo now checks for failure when setting the close-on-exec flag
26+
on open file descriptors. This should never fail but, if it
27+
were to, there is the possibility of a file descriptor leak to
28+
a child process (such as the command sudo runs).
29+
30+
* Fixed CVE-2021-23239, a potential information leak in sudoedit
31+
that could be used to test for the existence of directories not
32+
normally accessible to the user in certain circumstances. When
33+
creating a new file, sudoedit checks to make sure the parent
34+
directory of the new file exists before running the editor.
35+
However, a race condition exists if the invoking user can replace
36+
(or create) the parent directory. If a symbolic link is created
37+
in place of the parent directory, sudoedit will run the editor
38+
as long as the target of the link exists. If the target of the
39+
link does not exist, an error message will be displayed. The
40+
race condition can be used to test for the existence of an
41+
arbitrary directory. However, it _cannot_ be used to write to
42+
an arbitrary location.
43+
44+
* Fixed CVE-2021-23240, a flaw in the temporary file handling of
45+
sudoedit's SELinux RBAC support. On systems where SELinux is
46+
enabled, a user with sudoedit permissions may be able to set the
47+
owner of an arbitrary file to the user-ID of the target user.
48+
On Linux kernels that support "protected symlinks", setting
49+
/proc/sys/fs/protected_symlinks to 1 will prevent the bug from
50+
being exploited. For more information see
51+
https://www.sudo.ws/alerts/sudoedit_selinux.html.
52+
53+
* Added writability checks for sudoedit when SELinux RBAC is in use.
54+
This makes sudoedit behavior consistent regardless of whether
55+
or not SELinux RBAC is in use. Previously, the "sudoedit_checkdir"
56+
setting had no effect for RBAC entries.
57+
58+
* A new sudoers option "selinux" can be used to disable sudo's
59+
SELinux RBAC support.
60+
61+
* Quieted warnings from PVS Studio, clang analyzer, and cppcheck.
62+
Added suppression annotations for PVS Studio false positives.
63+
164
What's new in Sudo 1.9.4p2
265

366
* Fixed a bug introduced in sudo 1.9.4p1 which could lead to a crash

configure

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.69 for sudo 1.9.4p2.
3+
# Generated by GNU Autoconf 2.69 for sudo 1.9.5.
44
#
55
# Report bugs to <https://bugzilla.sudo.ws/>.
66
#
@@ -590,8 +590,8 @@ MAKEFLAGS=
590590
# Identity of this package.
591591
PACKAGE_NAME='sudo'
592592
PACKAGE_TARNAME='sudo'
593-
PACKAGE_VERSION='1.9.4p2'
594-
PACKAGE_STRING='sudo 1.9.4p2'
593+
PACKAGE_VERSION='1.9.5'
594+
PACKAGE_STRING='sudo 1.9.5'
595595
PACKAGE_BUGREPORT='https://bugzilla.sudo.ws/'
596596
PACKAGE_URL=''
597597

@@ -1584,7 +1584,7 @@ if test "$ac_init_help" = "long"; then
15841584
# Omit some internal or obsolete options to make the list less imposing.
15851585
# This message is too long to be a string in the A/UX 3.1 sh.
15861586
cat <<_ACEOF
1587-
\`configure' configures sudo 1.9.4p2 to adapt to many kinds of systems.
1587+
\`configure' configures sudo 1.9.5 to adapt to many kinds of systems.
15881588

15891589
Usage: $0 [OPTION]... [VAR=VALUE]...
15901590

@@ -1650,7 +1650,7 @@ fi
16501650

16511651
if test -n "$ac_init_help"; then
16521652
case $ac_init_help in
1653-
short | recursive ) echo "Configuration of sudo 1.9.4p2:";;
1653+
short | recursive ) echo "Configuration of sudo 1.9.5:";;
16541654
esac
16551655
cat <<\_ACEOF
16561656

@@ -1924,7 +1924,7 @@ fi
19241924
test -n "$ac_init_help" && exit $ac_status
19251925
if $ac_init_version; then
19261926
cat <<\_ACEOF
1927-
sudo configure 1.9.4p2
1927+
sudo configure 1.9.5
19281928
generated by GNU Autoconf 2.69
19291929

19301930
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2633,7 +2633,7 @@ cat >config.log <<_ACEOF
26332633
This file contains any messages produced by compilers while
26342634
running configure, to aid debugging if configure makes a mistake.
26352635

2636-
It was created by sudo $as_me 1.9.4p2, which was
2636+
It was created by sudo $as_me 1.9.5, which was
26372637
generated by GNU Autoconf 2.69. Invocation command line was
26382638

26392639
$ $0 $@
@@ -28816,7 +28816,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2881628816
# report actual input values of CONFIG_FILES etc. instead of their
2881728817
# values after options handling.
2881828818
ac_log="
28819-
This file was extended by sudo $as_me 1.9.4p2, which was
28819+
This file was extended by sudo $as_me 1.9.5, which was
2882028820
generated by GNU Autoconf 2.69. Invocation command line was
2882128821

2882228822
CONFIG_FILES = $CONFIG_FILES
@@ -28882,7 +28882,7 @@ _ACEOF
2888228882
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2888328883
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2888428884
ac_cs_version="\\
28885-
sudo config.status 1.9.4p2
28885+
sudo config.status 1.9.5
2888628886
configured by $0, generated by GNU Autoconf 2.69,
2888728887
with options \\"\$ac_cs_config\\"
2888828888

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ dnl Use the top-level autogen.sh script to generate configure and config.h.in
33
dnl
44
dnl SPDX-License-Identifier: ISC
55
dnl
6-
dnl Copyright (c) 1994-1996, 1998-2020 Todd C. Miller <[email protected]>
6+
dnl Copyright (c) 1994-1996, 1998-2021 Todd C. Miller <[email protected]>
77
dnl
88
dnl Permission to use, copy, modify, and distribute this software for any
99
dnl purpose with or without fee is hereby granted, provided that the above
@@ -18,7 +18,7 @@ dnl ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1818
dnl OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1919
dnl
2020
AC_PREREQ([2.59])
21-
AC_INIT([sudo], [1.9.4p2], [https://bugzilla.sudo.ws/], [sudo])
21+
AC_INIT([sudo], [1.9.5], [https://bugzilla.sudo.ws/], [sudo])
2222
AC_CONFIG_HEADERS([config.h pathnames.h])
2323
AC_CONFIG_SRCDIR([src/sudo.c])
2424
dnl

doc/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Sudo is distributed under the following license:
22

3-
Copyright (c) 1994-1996, 1998-2020
3+
Copyright (c) 1994-1996, 1998-2021
44
Todd C. Miller <[email protected]>
55

66
Permission to use, copy, modify, and distribute this software for any

etc/sudo-logsrvd.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from sudo clients.
66
This makes it possible to have all sudo I/O logs on a central server."
77
vendor="Todd C. Miller"
8-
copyright="(c) 2019-2020 Todd C. Miller"
8+
copyright="(c) 2019-2021 Todd C. Miller"
99

1010
%if [aix]
1111
# Convert to 4 part version for AIX, including patch level

etc/sudo-python.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
summary="Sudo Python plugin framework"
44
description="The sudo Python plugin allows you to extend sudo using Python."
55
vendor="Todd C. Miller"
6-
copyright="(c) 2019-2020 Todd C. Miller"
6+
copyright="(c) 2019-2021 Todd C. Miller"
77

88
%if [aix]
99
# Convert to 4 part version for AIX, including patch level

etc/sudo.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
The basic philosophy is to give as few privileges as possible but \
1111
still allow people to get their work done."
1212
vendor="Todd C. Miller"
13-
copyright="(c) 1993-1996,1998-2020 Todd C. Miller"
13+
copyright="(c) 1993-1996,1998-2021 Todd C. Miller"
1414
sudoedit_man=`echo ${pp_destdir}$mandir/*/sudoedit.*|sed "s:^${pp_destdir}::"`
1515
sudoedit_man_target=`basename $sudoedit_man | sed 's/edit//'`
1616

0 commit comments

Comments
 (0)