Skip to content

Commit ee3cf7f

Browse files
authored
[2.0] Fix postfix CVE-2023-51764 (#7226)
Co-authored-by: Henry Li <lihl@microsoft.com>
1 parent 6e583d6 commit ee3cf7f

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

SPECS/postfix/CVE-2023-51764.patch

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
diff --git a/conf/main.cf b/conf/main.cf
2+
index 112c1f1..a98e0d8 100644
3+
--- a/conf/main.cf
4+
+++ b/conf/main.cf
5+
@@ -743,3 +743,5 @@ smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
6+
# plaintext (opportunistic TLS outbound).
7+
#
8+
smtp_tls_security_level = may
9+
+smtpd_data_restrictions = reject_unauth_pipelining
10+
+smtpd_discard_ehlo_keywords = chunking, silent-discard

SPECS/postfix/postfix.spec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
Summary: Postfix Mail Transport Agent
5454
Name: postfix
5555
Version: 3.7.0
56-
Release: 2%{?dist}
56+
Release: 3%{?dist}
5757
License: (IBM AND GPLv2+) OR (EPL-2.0 AND GPLv2+)
5858
Vendor: Microsoft Corporation
5959
Distribution: Mariner
@@ -74,6 +74,7 @@ Patch1: postfix-3.5.0-config.patch
7474
Patch2: postfix-3.4.0-files.patch
7575
Patch3: postfix-3.3.3-alternatives.patch
7676
Patch4: postfix-3.4.0-large-fs.patch
77+
Patch5: CVE-2023-51764.patch
7778
Patch9: pflogsumm-1.1.5-datecalc.patch
7879
# rhbz#1384871, sent upstream
7980
Patch10: pflogsumm-1.1.5-ipv6-warnings-fix.patch
@@ -232,6 +233,7 @@ maps with Postfix, you need this.
232233
%patch2 -p1 -b .files
233234
%patch3 -p1 -b .alternatives
234235
%patch4 -p1 -b .large-fs
236+
%patch5 -p1 -b .config
235237

236238
# Change DEF_SHLIB_DIR according to build host
237239
sed -i \
@@ -762,6 +764,9 @@ exit 0
762764
%endif
763765

764766
%changelog
767+
* Wed Jan 10 2024 Henry Li <lihl@microsoft.com> - 3.7.0-3
768+
- Fix CVE-2023-51764
769+
765770
* Wed Sep 20 2023 Jon Slobodzian <joslobo@microsoft.com> - 3.7.0-2
766771
- Recompile with stack-protection fixed gcc version (CVE-2023-4039)
767772

0 commit comments

Comments
 (0)