diff --git a/CVE-2025-5455-qtbase-5.15.patch b/CVE-2025-5455-qtbase-5.15.patch new file mode 100644 index 0000000000000000000000000000000000000000..9cee8646a19ec88d00c8a3434e277ccb2ca82744 --- /dev/null +++ b/CVE-2025-5455-qtbase-5.15.patch @@ -0,0 +1,20 @@ +diff --git a/src/corelib/io/qdataurl.cpp b/src/corelib/io/qdataurl.cpp +index f14d399301f..83e59e3ac00 100644 +--- a/src/corelib/io/qdataurl.cpp ++++ b/src/corelib/io/qdataurl.cpp +@@ -76,10 +76,11 @@ Q_CORE_EXPORT bool qDecodeDataUrl(const QUrl &uri, QString &mimeType, QByteArray + } + + if (data.toLower().startsWith("charset")) { +- int i = 7; // strlen("charset") +- while (data.at(i) == ' ') +- ++i; +- if (data.at(i) == '=') ++ int prefixSize = 7; // strlen("charset") ++ QLatin1String copy(data.constData() + prefixSize, data.size() - prefixSize); ++ while (copy.startsWith(QLatin1String(" "))) ++ copy = copy.mid(1); ++ if (copy.startsWith(QLatin1String("="))) + data.prepend("text/plain;"); + } + diff --git a/qt5-qtbase.spec b/qt5-qtbase.spec index b4633045f294bcba743259f194ead0f6632fbe6d..a08ff7f1e6344f3710b332923c1dceba0c7b207b 100644 --- a/qt5-qtbase.spec +++ b/qt5-qtbase.spec @@ -36,7 +36,7 @@ Name: qt5-qtbase Summary: Qt5 - QtBase components Version: 5.15.10 -Release: 11 +Release: 12 # See LGPL_EXCEPTIONS.txt, for exception details License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 @@ -137,6 +137,7 @@ Patch0030: CVE-2024-25580-qtbase-5.15.diff Patch0031: CVE-2023-45935.patch Patch0032: add-sw_64-support-for-syscall_fork.patch Patch0033: CVE-2025-30348.patch +Patch0034: CVE-2025-5455-qtbase-5.15.patch # Do not check any files in %%{_qt5_plugindir}/platformthemes/ for requires. # Those themes are there for platform integration. If the required libraries are @@ -1031,6 +1032,9 @@ fi %changelog +* Sat Jun 07 2025 Funda Wang - 5.15.10-12 +- fix CVE-2025-5455 + * Wed Apr 02 2025 Funda Wang - 5.15.10-11 - fix CVE-2025-30348