public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Miroslav Lichvar <mlichvar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ntpsec] epel9: drop patch for detecting weak keys generated by 1.2.0
Date: Wed, 21 Oct 2026 11:01:56 GMT [thread overview]
Message-ID: <179258051655.1.17421983478061275871.rpms-ntpsec-253afc23e7cb@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/ntpsec
Branch : epel9
Commit : 253afc23e7cb145b0f14b0b3ba84cbf524433c12
Author : Miroslav Lichvar <mlichvar@redhat.com>
Date : 2026-10-21T12:41:52+02:00
Stats : +0/-39 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/ntpsec/c/253afc23e7cb145b0f14b0b3ba84cbf524433c12?branch=epel9
Log:
drop patch for detecting weak keys generated by 1.2.0
Many Fedora releases passed since the vulnerable ntp-keygen.
---
diff --git a/ntpsec-weakkeys.patch b/ntpsec-weakkeys.patch
deleted file mode 100644
index 7d63b2f..0000000
--- a/ntpsec-weakkeys.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff -up ntpsec-1.2.1/libntp/authreadkeys.c.weakkeys ntpsec-1.2.1/libntp/authreadkeys.c
---- ntpsec-1.2.1/libntp/authreadkeys.c.weakkeys 2021-06-07 06:03:11.000000000 +0200
-+++ ntpsec-1.2.1/libntp/authreadkeys.c 2021-06-17 12:19:41.555693047 +0200
-@@ -249,6 +249,7 @@ authreadkeys(
- char namebuf[NAMEBUFSIZE];
- size_t len;
- int keys = 0;
-+ char * hashchr = NULL;
-
- /*
- * Open file. Complain and return if it can't be opened.
-@@ -348,7 +349,7 @@ msyslog(LOG_ERR, "AUTH: authreadkeys: re
- continue;
- }
-
--
-+ hashchr = strchr(line, '#');
-
- /*
- * Finally, get key and insert it.
-@@ -364,6 +365,15 @@ msyslog(LOG_ERR, "AUTH: authreadkeys: re
- }
- len = strlen(token);
- if (len <= 20) { /* Bug 2537 */
-+ /* Detect weak keys generated by ntpkeygen
-+ (CVE-2021-22212). False positives are possible. */
-+ if (token + len == hashchr) {
-+ msyslog(LOG_ERR,
-+ "AUTH: authreadkeys: key %u is followed by '#' (CVE-2021-22212)",
-+ keyno);
-+ exit(1);
-+ }
-+
- len = check_key_length(keyno, type, name, upcased, len);
- check_mac_length(keyno, type, name, upcased);
- auth_setkey(keyno, type, name, (uint8_t *)token, len);
diff --git a/ntpsec.spec b/ntpsec.spec
index 94ee5ef..0fe7ac4 100644
--- a/ntpsec.spec
+++ b/ntpsec.spec
@@ -10,9 +10,6 @@ Source1: https://ftp.ntpsec.org/pub/releases/ntpsec-%{version}.tar.gz.asc
Source2: https://ftp.ntpsec.org/pub/releases/ntpsec.gpg.pub.asc
Source3: ntp.conf
-# Detect weak keys generated by ntpkeygen (CVE-2021-22212)
-Patch1: ntpsec-weakkeys.patch
-
BuildRequires: bison
BuildRequires: gcc
BuildRequires: gnupg2
reply other threads:[~2026-10-21 11:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179258051655.1.17421983478061275871.rpms-ntpsec-253afc23e7cb@fedoraproject.org \
--to=mlichvar@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox