diff --git a/qt5-qtbase.spec b/qt5-qtbase.spec index 5b51449..c0ffe43 100644 --- a/qt5-qtbase.spec +++ b/qt5-qtbase.spec @@ -55,7 +55,7 @@ BuildRequires: pkgconfig(libsystemd) Name: qt5-qtbase Summary: Qt5 - QtBase components Version: 5.15.2 -Release: 30%{?dist} +Release: 31%{?dist} # See LGPL_EXCEPTIONS.txt, for exception details License: LGPLv2 with exceptions or GPLv3 with exceptions @@ -144,6 +144,7 @@ Patch100: kde-5.15-rollup-20211206.patch.gz # HACK to make 'fedpkg sources' consider it 'used" Source100: kde-5.15-rollup-20211206.patch.gz Patch101: 0068-Bump-version.patch +Patch102: qtbase-everywhere-src-5.15.4-cve-2021-38593.patch # Do not check any files in %%{_qt5_plugindir}/platformthemes/ for requires. # Those themes are there for platform integration. If the required libraries are @@ -419,6 +420,7 @@ Qt5 libraries used for drawing widgets and OpenGL items. %patch100 -p1 # revert version bump %patch101 -p1 -R +%patch102 -p1 # move some bundled libs to ensure they're not accidentally used pushd src/3rdparty @@ -1092,6 +1094,9 @@ fi %changelog +* Mon May 30 2022 Than Ngo - 5.15.2-31 +- Fixed bz#1994724, CVE-2021-38593 + * Mon Dec 06 2021 Jan Grulich - 5.15.2-30 - refresh kde-5.15-rollup patch diff --git a/qtbase-everywhere-src-5.15.4-cve-2021-38593.patch b/qtbase-everywhere-src-5.15.4-cve-2021-38593.patch new file mode 100644 index 0000000..2e67854 --- /dev/null +++ b/qtbase-everywhere-src-5.15.4-cve-2021-38593.patch @@ -0,0 +1,12 @@ +diff -up qtbase-everywhere-src-5.15.4/src/gui/painting/qpaintengineex.cpp.me qtbase-everywhere-src-5.15.4/src/gui/painting/qpaintengineex.cpp +--- qtbase-everywhere-src-5.15.4/src/gui/painting/qpaintengineex.cpp.me 2022-05-30 14:21:52.215469841 +0200 ++++ qtbase-everywhere-src-5.15.4/src/gui/painting/qpaintengineex.cpp 2022-05-30 14:22:39.552558748 +0200 +@@ -426,7 +426,7 @@ void QPaintEngineEx::stroke(const QVecto + patternLength *= pw; + if (qFuzzyIsNull(patternLength)) { + pen.setStyle(Qt::NoPen); +- } else if (extent / patternLength > 10000) { ++ } else if (qFuzzyIsNull(extent) || extent / patternLength > 10000) { + // approximate stream of tiny dashes with semi-transparent solid line + pen.setStyle(Qt::SolidLine); + QColor color(pen.color());