summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorArtyom V. Poptsov <poptsov.artyom@gmail.com>2026-06-07 12:18:07 +0300
committerArtyom V. Poptsov <poptsov.artyom@gmail.com>2026-06-07 12:20:31 +0300
commitecfe240a56b91727fe292feff12868cf71461310 (patch)
treec751092af7780e3a9c42b29a4e0087bf2e38967d /gnu
parentd00b350647176ea3e66ea16d566d6b2cbea45e05 (diff)
gnu: pam-krb5: Update to 4.11.
* gnu/packages/admin.scm (pam-krb5): Update to 4.11. [source]<patches>: Remove "pam-krb5-CVE-2020-10595.patch". [arguments]: Use GEXPs. <#:phases>: Update "disable-tests" phase. Disable "module/long" tests. * gnu/packages/patches/pam-krb5-CVE-2020-10595.patch: Remove. * gnu/local.mk (dist_patch_DATA): Deregister it. Change-Id: I7663b0281a07dbc46cd4f61c8285ca662f64213e
Diffstat (limited to 'gnu')
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/admin.scm27
-rw-r--r--gnu/packages/patches/pam-krb5-CVE-2020-10595.patch42
3 files changed, 14 insertions, 56 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 552bb86d1ec..288f4791c8e 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2088,7 +2088,6 @@ dist_patch_DATA = \
2088 %D%/packages/patches/pnet-fix-off-by-one.patch \ 2088 %D%/packages/patches/pnet-fix-off-by-one.patch \
2089 %D%/packages/patches/pnet-newer-libgc-fix.patch \ 2089 %D%/packages/patches/pnet-newer-libgc-fix.patch \
2090 %D%/packages/patches/pnet-newer-texinfo-fix.patch \ 2090 %D%/packages/patches/pnet-newer-texinfo-fix.patch \
2091 %D%/packages/patches/pam-krb5-CVE-2020-10595.patch \
2092 %D%/packages/patches/password-store-tree-compat.patch \ 2091 %D%/packages/patches/password-store-tree-compat.patch \
2093 %D%/packages/patches/pciutils-hurd64.patch \ 2092 %D%/packages/patches/pciutils-hurd64.patch \
2094 %D%/packages/patches/pcsxr-find-harfbuzz.patch \ 2093 %D%/packages/patches/pcsxr-find-harfbuzz.patch \
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 8e9db5e66ea..6b0876c95cc 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -4242,7 +4242,7 @@ per-user clean-up when the user logs out.")
4242(define-public pam-krb5 4242(define-public pam-krb5
4243 (package 4243 (package
4244 (name "pam-krb5") 4244 (name "pam-krb5")
4245 (version "4.8") 4245 (version "4.11")
4246 (source (origin 4246 (source (origin
4247 (method url-fetch) 4247 (method url-fetch)
4248 (uri 4248 (uri
@@ -4252,22 +4252,23 @@ per-user clean-up when the user logs out.")
4252 (string-append 4252 (string-append
4253 "https://archives.eyrie.org/software/ARCHIVE/" 4253 "https://archives.eyrie.org/software/ARCHIVE/"
4254 "pam-krb5/pam-krb5-" version ".tar.xz"))) 4254 "pam-krb5/pam-krb5-" version ".tar.xz")))
4255 (patches (search-patches "pam-krb5-CVE-2020-10595.patch"))
4256 (sha256 4255 (sha256
4257 (base32 4256 (base32
4258 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb")))) 4257 "1a16506j35475mps9v3srh54fxcdvypw5gjlmf9vdbwrpykns998"))))
4259 (build-system gnu-build-system) 4258 (build-system gnu-build-system)
4260 (arguments 4259 (arguments
4261 `(#:phases 4260 (list
4262 (modify-phases %standard-phases 4261 #:phases
4263 (add-before 'configure 'disable-tests 4262 #~(modify-phases %standard-phases
4264 (lambda _ 4263 (add-before 'configure 'disable-tests
4265 ;; The build container seems to interfere with some tests. 4264 (lambda _
4266 (substitute* "tests/TESTS" 4265 ;; The build container seems to interfere with some tests.
4267 (("module/basic\n") "")) 4266 (substitute* "tests/TESTS"
4268 (substitute* "tests/TESTS" 4267 (("module/basic +valgrind\n") ""))
4269 (("pam-util/vector\n") "")) 4268 (substitute* "tests/TESTS"
4270 #t))))) 4269 (("module/long +valgrind\n") ""))
4270 (substitute* "tests/TESTS"
4271 (("pam-util/vector +valgrind\n") "")))))))
4271 (inputs 4272 (inputs
4272 (list linux-pam mit-krb5)) 4273 (list linux-pam mit-krb5))
4273 (native-inputs 4274 (native-inputs
diff --git a/gnu/packages/patches/pam-krb5-CVE-2020-10595.patch b/gnu/packages/patches/pam-krb5-CVE-2020-10595.patch
deleted file mode 100644
index 4ca061230fa..00000000000
--- a/gnu/packages/patches/pam-krb5-CVE-2020-10595.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1Fix CVE-2020-10595:
2
3https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10595
4
5Patch copied from upstream advisory:
6
7https://seclists.org/oss-sec/2020/q1/128
8
9diff --git a/prompting.c b/prompting.c
10index e985d95..d81054f 100644
11--- a/prompting.c
12+++ b/prompting.c
13@@ -314,26 +314,27 @@ pamk5_prompter_krb5(krb5_context context UNUSED, void *data, const char *name,
14 /*
15 * Reuse pam_prompts as a starting index and copy the data into the reply
16 * area of the krb5_prompt structs.
17 */
18 pam_prompts = 0;
19 if (name != NULL && !args->silent)
20 pam_prompts++;
21 if (banner != NULL && !args->silent)
22 pam_prompts++;
23 for (i = 0; i < num_prompts; i++, pam_prompts++) {
24- size_t len;
25+ size_t len, allowed;
26
27 if (resp[pam_prompts].resp == NULL)
28 goto cleanup;
29 len = strlen(resp[pam_prompts].resp);
30- if (len > prompts[i].reply->length)
31+ allowed = prompts[i].reply->length;
32+ if (allowed == 0 || len > allowed - 1)
33 goto cleanup;
34
35 /*
36 * The trailing nul is not included in length, but other applications
37 * expect it to be there. Therefore, we copy one more byte than the
38 * actual length of the password, but set length to just the length of
39 * the password.
40 */
41 memcpy(prompts[i].reply->data, resp[pam_prompts].resp, len + 1);
42 prompts[i].reply->length = (unsigned int) len;