diff --git a/SOURCES/zlib-1.2.11-IBM-Z-hw-accelrated-deflate-fix-crash-deflateBound.patch b/SOURCES/zlib-1.2.11-IBM-Z-hw-accelrated-deflate-fix-crash-deflateBound.patch
new file mode 100644
index 0000000..089395c
--- /dev/null
+++ b/SOURCES/zlib-1.2.11-IBM-Z-hw-accelrated-deflate-fix-crash-deflateBound.patch
@@ -0,0 +1,17 @@
+--- zlib-1.2.11/contrib/s390/dfltcc_deflate.h.old	2023-05-04 09:39:23.423753908 +0000
++++ zlib-1.2.11/contrib/s390/dfltcc_deflate.h	2023-05-04 09:39:48.087753908 +0000
+@@ -45,11 +45,11 @@ int ZLIB_INTERNAL dfltcc_deflate_get_dic
+ #define DEFLATE_DONE dfltcc_deflate_done
+ #define DEFLATE_BOUND_ADJUST_COMPLEN(strm, complen, source_len) \
+     do { \
+-        if (dfltcc_can_deflate((strm))) \
++	if (deflateStateCheck((strm)) || dfltcc_can_deflate((strm))) \
+             (complen) = DEFLATE_BOUND_COMPLEN(source_len); \
+     } while (0)
+ #define DEFLATE_NEED_CONSERVATIVE_BOUND(strm) (dfltcc_can_deflate((strm)))
+ #define DEFLATE_HOOK dfltcc_deflate
+ #define DEFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_deflate((strm)))
+ 
+-#endif
+\ No newline at end of file
++#endif
diff --git a/SPECS/zlib.spec b/SPECS/zlib.spec
index 2b0fe80..79a6289 100644
--- a/SPECS/zlib.spec
+++ b/SPECS/zlib.spec
@@ -2,7 +2,7 @@
 
 Name:    zlib
 Version: 1.2.11
-Release: 41%{?dist}
+Release: 42%{?dist}
 Summary: Compression and decompression library
 # /contrib/dotzlib/ have Boost license
 License: zlib and Boost
@@ -60,6 +60,10 @@ Patch27: zlib-1.2.11-Fix-broken-libxml2-for-python311.patch
 # fixed covscan issues
 Patch28: zlib-1.2.11-covscan-issues.patch
 
+# Fix for Crash in zlib deflateBound() function on s390x
+# Resolves: #2193044
+Patch29: zlib-1.2.11-IBM-Z-hw-accelrated-deflate-fix-crash-deflateBound.patch
+
 # Intel slide hash optimization for x86_64 arch
 Patch100: zlib-1.2.11-x86_64-accelrated-slide-hash.patch
 
@@ -139,6 +143,7 @@ developing applications which use minizip.
 %patch26 -p1
 %patch27 -p1
 %patch28 -p1
+%patch29 -p1
 %patch100 -p1
 
 
@@ -220,6 +225,10 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
 
 
 %changelog
+* Thu May 04 2023 Lukas Javorsky <ljavorsk@redhat.com> - 1.2.11-42
+- Fix the Crash in zlib deflateBound() function on s390x
+- Resolves: BZ#2193044
+
 * Wed Mar 01 2023 Ali Erdinc Koroglu <aekoroglu@centosproject.org> 1.2.11-41
 - AVX2 optimization added to slide_hash function