uw-imap: patch CVE-2018-19518

Take patch from Debian from
873b07f46c

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 9f7c1e6bd101494c6cc5dad16a7fa65a13cbac70)

Adapted to Kirkstone.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
Peter Marko 2025-11-14 20:45:19 +01:00 committed by Gyorgy Sarvari
parent c36dd4dabd
commit 57bbdc95e7
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
uw-imap (8:2007f~dfsg-6) unstable; urgency=medium
* [CVE-2018-19518] 2013_disable_rsh.patch (new): Disable access to IMAP
mailboxes through running imapd over rsh, and therefore ssh (Closes:
#914632). Code using the library can enable it with tcp_parameters()
after making sure that the IMAP server name is sanitized.
-- Magnus Holmgren <holmgren@debian.org> Tue, 26 Feb 2019 23:35:43 +0100
CVE: CVE-2018-19518
Upstream-Status: Inactive-Upstream [lastrelease: 2007]
Signed-off-by: Peter Marko <peter.marko@siemens.com>
--- a/src/osdep/unix/Makefile
+++ b/src/osdep/unix/Makefile
@@ -988,7 +988,7 @@ onceenv:
-DMD5ENABLE=\"$(MD5PWD)\" -DMAILSPOOL=\"$(MAILSPOOL)\" \
-DANONYMOUSHOME=\"$(MAILSPOOL)/anonymous\" \
-DACTIVEFILE=\"$(ACTIVEFILE)\" -DNEWSSPOOL=\"$(NEWSSPOOL)\" \
- -DRSHPATH=\"$(RSHPATH)\" -DLOCKPGM=\"$(LOCKPGM)\" \
+ -DLOCKPGM=\"$(LOCKPGM)\" \
-DLOCKPGM1=\"$(LOCKPGM1)\" -DLOCKPGM2=\"$(LOCKPGM2)\" \
-DLOCKPGM3=\"$(LOCKPGM3)\" > OSCFLAGS
echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS

View File

@ -11,6 +11,7 @@ SRC_URI = "https://fossies.org/linux/misc/old/imap-${PV}.tar.gz \
file://imap-2007e-shared.patch \
file://imap-2007f-format-security.patch \
file://0001-Support-OpenSSL-1.1.patch \
file://CVE-2018-19518.patch \
"
SRC_URI[md5sum] = "2126fd125ea26b73b20f01fcd5940369"