summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPraveen Kumar <praveen.kumar@windriver.com>2025-07-11 21:39:18 +0530
committerSteve Sakoman <steve@sakoman.com>2025-07-21 09:07:22 -0700
commita27ca8e3c08545f86f301013baec1f52533b816a (patch)
treefb9ced9ec5b535c2f12714b43c032e95e04db7d4
parent38f0ee2ec7ce03f802aefb613e8b34259f0c0dfc (diff)
downloadpoky-a27ca8e3c08545f86f301013baec1f52533b816a.tar.gz
sudo: upgrade 1.9.15p5 -> 1.9.17p1
Changelog: =========== * Fixed CVE-2025-32462. Sudo's -h (--host) option could be specified when running a command or editing a file. This could enable a local privilege escalation attack if the sudoers file allows the user to run commands on a different host. * Fixed CVE-2025-32463. An attacker can leverage sudo's -R (--chroot) option to run arbitrary commands as root, even if they are not listed in the sudoers file. The chroot support has been deprecated an will be removed entirely in a future release. License-Update: Copyright updated to 2025 0001-sudo.conf.in-fix-conflict-with-multilib.patch refreshed for 1.9.17 (From OE-Core rev: b04af6db102c97f3d4338dbcfdcab927b5194a69) Signed-off-by: Praveen Kumar <praveen.kumar@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-extended/sudo/files/0001-sudo.conf.in-fix-conflict-with-multilib.patch7
-rw-r--r--meta/recipes-extended/sudo/sudo.inc2
-rw-r--r--meta/recipes-extended/sudo/sudo_1.9.17p1.bb (renamed from meta/recipes-extended/sudo/sudo_1.9.15p5.bb)54
3 files changed, 57 insertions, 6 deletions
diff --git a/meta/recipes-extended/sudo/files/0001-sudo.conf.in-fix-conflict-with-multilib.patch b/meta/recipes-extended/sudo/files/0001-sudo.conf.in-fix-conflict-with-multilib.patch
index 041c717e00..1989c5abd7 100644
--- a/meta/recipes-extended/sudo/files/0001-sudo.conf.in-fix-conflict-with-multilib.patch
+++ b/meta/recipes-extended/sudo/files/0001-sudo.conf.in-fix-conflict-with-multilib.patch
@@ -1,4 +1,4 @@
1From 6e835350b7413210c410d3578cfab804186b7a4f Mon Sep 17 00:00:00 2001 1From 8c69192754ba73dd6e3273728a21aa73988f4bfb Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com> 2From: Kai Kang <kai.kang@windriver.com>
3Date: Tue, 17 Nov 2020 11:13:40 +0800 3Date: Tue, 17 Nov 2020 11:13:40 +0800
4Subject: [PATCH] sudo.conf.in: fix conflict with multilib 4Subject: [PATCH] sudo.conf.in: fix conflict with multilib
@@ -15,13 +15,12 @@ Update the comments in sudo.conf.in to avoid the conflict.
15Signed-off-by: Kai Kang <kai.kang@windriver.com> 15Signed-off-by: Kai Kang <kai.kang@windriver.com>
16 16
17Upstream-Status: Inappropriate [OE configuration specific] 17Upstream-Status: Inappropriate [OE configuration specific]
18
19--- 18---
20 examples/sudo.conf.in | 8 ++++---- 19 examples/sudo.conf.in | 8 ++++----
21 1 file changed, 4 insertions(+), 4 deletions(-) 20 1 file changed, 4 insertions(+), 4 deletions(-)
22 21
23diff --git a/examples/sudo.conf.in b/examples/sudo.conf.in 22diff --git a/examples/sudo.conf.in b/examples/sudo.conf.in
24index 2187457..0908d24 100644 23index bdd676c..094341c 100644
25--- a/examples/sudo.conf.in 24--- a/examples/sudo.conf.in
26+++ b/examples/sudo.conf.in 25+++ b/examples/sudo.conf.in
27@@ -4,7 +4,7 @@ 26@@ -4,7 +4,7 @@
@@ -53,7 +52,7 @@ index 2187457..0908d24 100644
53 # Sudo plugin directory: 52 # Sudo plugin directory:
54@@ -74,7 +74,7 @@ 53@@ -74,7 +74,7 @@
55 # The default directory to use when searching for plugins that are 54 # The default directory to use when searching for plugins that are
56 # specified without a fully qualified path name. 55 # specified without a fully-qualified path name.
57 # 56 #
58-#Path plugin_dir @plugindir@ 57-#Path plugin_dir @plugindir@
59+#Path plugin_dir $plugindir 58+#Path plugin_dir $plugindir
diff --git a/meta/recipes-extended/sudo/sudo.inc b/meta/recipes-extended/sudo/sudo.inc
index feb1cf35a7..a23de1fcf7 100644
--- a/meta/recipes-extended/sudo/sudo.inc
+++ b/meta/recipes-extended/sudo/sudo.inc
@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.sudo.ws"
4BUGTRACKER = "http://www.sudo.ws/bugs/" 4BUGTRACKER = "http://www.sudo.ws/bugs/"
5SECTION = "admin" 5SECTION = "admin"
6LICENSE = "ISC & BSD-3-Clause & BSD-2-Clause & Zlib" 6LICENSE = "ISC & BSD-3-Clause & BSD-2-Clause & Zlib"
7LIC_FILES_CHKSUM = "file://LICENSE.md;md5=5100e20d35f9015f9eef6bdb27ba194f \ 7LIC_FILES_CHKSUM = "file://LICENSE.md;md5=2841c822e587db145364ca95e9be2ffa \
8 file://plugins/sudoers/redblack.c;beginline=1;endline=46;md5=03e35317699ba00b496251e0dfe9f109 \ 8 file://plugins/sudoers/redblack.c;beginline=1;endline=46;md5=03e35317699ba00b496251e0dfe9f109 \
9 file://lib/util/reallocarray.c;beginline=3;endline=15;md5=397dd45c7683e90b9f8bf24638cf03bf \ 9 file://lib/util/reallocarray.c;beginline=3;endline=15;md5=397dd45c7683e90b9f8bf24638cf03bf \
10 file://lib/util/fnmatch.c;beginline=3;endline=27;md5=004d7d2866ba1f5b41174906849d2e0f \ 10 file://lib/util/fnmatch.c;beginline=3;endline=27;md5=004d7d2866ba1f5b41174906849d2e0f \
diff --git a/meta/recipes-extended/sudo/sudo_1.9.15p5.bb b/meta/recipes-extended/sudo/sudo_1.9.17p1.bb
index 8e542015ad..c5d57da9f0 100644
--- a/meta/recipes-extended/sudo/sudo_1.9.15p5.bb
+++ b/meta/recipes-extended/sudo/sudo_1.9.17p1.bb
@@ -1,3 +1,55 @@
1# FIXME: the LIC_FILES_CHKSUM values have been updated by 'devtool upgrade'.
2# The following is the difference between the old and the new license text.
3# Please update the LICENSE value if needed, and summarize the changes in
4# the commit message via 'License-Update:' tag.
5# (example: 'License-Update: copyright years updated.')
6#
7# The changes:
8#
9# --- LICENSE.md
10# +++ LICENSE.md
11# @@ -1,6 +1,6 @@
12# Sudo is distributed under the following license:
13#
14# - Copyright (c) 1994-1996, 1998-2023
15# + Copyright (c) 1994-1996, 1998-2025
16# Todd C. Miller <Todd.Miller@sudo.ws>
17#
18# Permission to use, copy, modify, and distribute this software for any
19# @@ -247,9 +247,9 @@
20#
21# The file arc4random.c bears the following license:
22#
23# - Copyright (c) 1996, David Mazieres <dm@uun.org>
24# - Copyright (c) 2008, Damien Miller <djm@openbsd.org>
25# - Copyright (c) 2013, Markus Friedl <markus@openbsd.org>
26# + Copyright (c) 1996, David Mazieres <dm@uun.org>
27# + Copyright (c) 2008, Damien Miller <djm@openbsd.org>
28# + Copyright (c) 2013, Markus Friedl <markus@openbsd.org>
29# Copyright (c) 2014, Theo de Raadt <deraadt@openbsd.org>
30#
31# Permission to use, copy, modify, and distribute this software for any
32# @@ -282,7 +282,7 @@
33#
34# The file getentropy.c bears the following license:
35#
36# - Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
37# + Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
38# Copyright (c) 2014 Bob Beck <beck@obtuse.com>
39#
40# Permission to use, copy, modify, and distribute this software for any
41# @@ -299,7 +299,7 @@
42#
43# The embedded copy of zlib bears the following license:
44#
45# - Copyright (C) 1995-2022 Jean-loup Gailly and Mark Adler
46# + Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler
47#
48# This software is provided 'as-is', without any express or implied
49# warranty. In no event will the authors be held liable for any damages
50#
51#
52
1require sudo.inc 53require sudo.inc
2 54
3SRC_URI = "https://www.sudo.ws/dist/sudo-${PV}.tar.gz \ 55SRC_URI = "https://www.sudo.ws/dist/sudo-${PV}.tar.gz \
@@ -7,7 +59,7 @@ SRC_URI = "https://www.sudo.ws/dist/sudo-${PV}.tar.gz \
7 59
8PAM_SRC_URI = "file://sudo.pam" 60PAM_SRC_URI = "file://sudo.pam"
9 61
10SRC_URI[sha256sum] = "558d10b9a1991fb3b9fa7fa7b07ec4405b7aefb5b3cb0b0871dbc81e3a88e558" 62SRC_URI[sha256sum] = "ff607ea717072197738a78f778692cd6df9a7e3e404565f51de063ca27455d32"
11 63
12DEPENDS += " virtual/crypt ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" 64DEPENDS += " virtual/crypt ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
13RDEPENDS:${PN} += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}" 65RDEPENDS:${PN} += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}"