[packages/telnet] Rel 37; old CVE patch, from suse
arekm
arekm at pld-linux.org
Mon Mar 9 15:45:48 CET 2026
commit 402778730689ca8b33cb9a10e95a648ae4e8ee30
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Mar 9 15:45:21 2026 +0100
Rel 37; old CVE patch, from suse
netkit-telnet-CVE-2022-39028.patch | 23 +++++++++++++++++++++++
netkit-telnet-time-include.patch | 10 ++++++++++
telnet.spec | 6 +++++-
3 files changed, 38 insertions(+), 1 deletion(-)
---
diff --git a/telnet.spec b/telnet.spec
index 1ced109..9d4f1ec 100644
--- a/telnet.spec
+++ b/telnet.spec
@@ -7,7 +7,7 @@ Summary(pt_BR.UTF-8): Cliente para o protocolo telnet de login remoto
Summary(tr.UTF-8): Telnet uzak bağlantı protokolü için istemci ve sunucu
Name: telnet
Version: 0.17
-Release: 35
+Release: 37
License: BSD
Group: Networking/Utilities
Source0: ftp://ftp.linux.org.uk/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz
@@ -25,6 +25,8 @@ Patch4: netkit-%{name}-cpp.patch
Patch5: netkit-%{name}-pld_man.patch
Patch6: netkit-%{name}-tinfo.patch
Patch7: netkit-%{name}-format-security.patch
+Patch8: netkit-%{name}-time-include.patch
+Patch9: netkit-%{name}-CVE-2022-39028.patch
BuildRequires: libstdc++-devel
BuildRequires: ncurses-devel >= 5.0
BuildRequires: rpmbuild(macros) >= 1.268
@@ -128,6 +130,8 @@ kullanıcıların bağlanabilir.
%patch -P5 -p1
%patch -P6 -p1
%patch -P7 -p1
+%patch -P8 -p1
+%patch -P9 -p1
%build
# don't use configure macro
diff --git a/netkit-telnet-CVE-2022-39028.patch b/netkit-telnet-CVE-2022-39028.patch
new file mode 100644
index 0000000..e735f6a
--- /dev/null
+++ b/netkit-telnet-CVE-2022-39028.patch
@@ -0,0 +1,23 @@
+--- netkit-telnet-0.17/telnetd/state.c.orig 2026-03-09 15:41:06.013026615 +0100
++++ netkit-telnet-0.17/telnetd/state.c 2026-03-09 15:41:51.763026592 +0100
+@@ -205,12 +205,17 @@
+ case EC:
+ case EL:
+ {
+- cc_t ch;
++ cc_t ch = (cc_t)(_POSIX_VDISABLE);
+ DIAG(TD_OPTIONS, printoption("td: recv IAC", c));
+ ptyflush(); /* half-hearted */
+ init_termbuf();
+- if (c == EC) ch = *slctab[SLC_EC].sptr;
+- else ch = *slctab[SLC_EL].sptr;
++ if (c == EC) {
++ if (slctab[SLC_EC].sptr)
++ ch = *slctab[SLC_EC].sptr;
++ } else {
++ if (slctab[SLC_EL].sptr)
++ ch = *slctab[SLC_EL].sptr;
++ }
+ if (ch != (cc_t)(_POSIX_VDISABLE))
+ *pfrontp++ = (unsigned char)ch;
+ break;
diff --git a/netkit-telnet-time-include.patch b/netkit-telnet-time-include.patch
new file mode 100644
index 0000000..0268021
--- /dev/null
+++ b/netkit-telnet-time-include.patch
@@ -0,0 +1,10 @@
+--- netkit-telnet-0.17/telnetd/utility.c.orig 2024-01-01 00:00:00.000000000 +0000
++++ netkit-telnet-0.17/telnetd/utility.c 2024-01-01 00:00:00.000000000 +0000
+@@ -40,6 +40,7 @@
+ #define PRINTOPTIONS
+
+ #include <stdarg.h>
++#include <time.h>
+ #include <sys/utsname.h>
+
+ #ifdef AUTHENTICATE
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/telnet.git/commitdiff/402778730689ca8b33cb9a10e95a648ae4e8ee30
More information about the pld-cvs-commit
mailing list