public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mingw-qt5-qtbase] rawhide: Backport fixes for CVE-2026-19248 and CVE-2026-11573
Date: Sun, 25 Oct 2026 13:33:51 GMT	[thread overview]
Message-ID: <179293523103.1.1694662235481698685.rpms-mingw-qt5-qtbase-993f8f2f37c5@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/mingw-qt5-qtbase
Branch : rawhide
Commit : 993f8f2f37c557ccf35ba40134fb22b2eb584db9
Author : Sandro Mani <manisandro@gmail.com>
Date   : 2026-10-25T14:33:40+01:00
Stats  : +695/-1 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/mingw-qt5-qtbase/c/993f8f2f37c557ccf35ba40134fb22b2eb584db9?branch=rawhide

Log:
Backport fixes for CVE-2026-19248 and CVE-2026-11573

---
diff --git a/CVE-2026-11573.patch b/CVE-2026-11573.patch
new file mode 100644
index 0000000..9310bc3
--- /dev/null
+++ b/CVE-2026-11573.patch
@@ -0,0 +1,577 @@
+diff -rupN --no-dereference qtbase-everywhere-src-5.15.18/src/xml/dom/qdom.cpp qtbase-everywhere-src-5.15.18-new/src/xml/dom/qdom.cpp
+--- qtbase-everywhere-src-5.15.18/src/xml/dom/qdom.cpp	2026-10-25 12:16:52.883902314 +0100
++++ qtbase-everywhere-src-5.15.18-new/src/xml/dom/qdom.cpp	2026-10-25 12:16:52.890143915 +0100
+@@ -1415,16 +1415,40 @@ void QDomNodePrivate::normalize()
+     qNormalizeNode(this);
+ }
+ 
+-/*! \internal
+-  \a depth is used for indentation, it seems.
+- */
+-void QDomNodePrivate::save(QTextStream& s, int depth, int indent) const
++void QDomNodePrivate::saveSubTree(const QDomNodePrivate *n, QTextStream &s,
++                                  int depth, int indent) const
+ {
+-    const QDomNodePrivate* n = first;
+-    while (n) {
+-        n->save(s, depth, indent);
+-        n = n->next;
++    if (!n)
++        return;
++
++    const QDomNodePrivate *root = n->first;
++    n->save(s, depth, indent);
++    if (root) {
++        const int branchDepth = depth + 1;
++        int layerDepth = 0;
++        while (root) {
++            root->save(s, layerDepth + branchDepth, indent);
++            // A flattened (non-recursive) depth-first walk through the node tree.
++            if (root->first) {
++                layerDepth ++;
++                root = root->first;
++                continue;
++            }
++            root->afterSave(s, layerDepth + branchDepth, indent);
++            const QDomNodePrivate *prev = root;
++            root = root->next;
++            // Close QDomElementPrivate groups
++            while (!root && prev && (layerDepth > 0)) {
++                root = prev->parent();
++                layerDepth --;
++                root->afterSave(s, layerDepth + branchDepth, indent);
++                prev = root;
++                root = root->next;
++            }
++        }
++        Q_ASSERT(layerDepth == 0);
+     }
++    n->afterSave(s, depth, indent);
+ }
+ 
+ void QDomNodePrivate::setLocation(int lineNumber, int columnNumber)
+@@ -2213,7 +2237,7 @@ void QDomNode::save(QTextStream& stream,
+     if(isDocument())
+         static_cast<const QDomDocumentPrivate *>(impl)->saveDocument(stream, indent, encodingPolicy);
+     else
+-        IMPL->save(stream, 1, indent);
++        IMPL->saveSubTree(IMPL, stream, 1, indent);
+ }
+ 
+ /*!
+@@ -3122,11 +3146,11 @@ void QDomDocumentTypePrivate::save(QText
+ 
+         QHash<QString, QDomNodePrivate *>::const_iterator it2 = notations->map.constBegin();
+         for (; it2 != notations->map.constEnd(); ++it2)
+-            (*it2)->save(s, 0, indent);
++            (*it2)->saveSubTree((*it2), s, 0, indent);
+ 
+         QHash<QString, QDomNodePrivate *>::const_iterator it = entities->map.constBegin();
+         for (; it != entities->map.constEnd(); ++it)
+-            (*it)->save(s, 0, indent);
++            (*it)->saveSubTree((*it), s, 0, indent);
+ 
+         s << ']';
+     }
+@@ -4150,12 +4174,23 @@ void QDomElementPrivate::save(QTextStrea
+             if (indent != -1)
+                 s << Qt::endl;
+         }
+-        QDomNodePrivate::save(s, depth + 1, indent); if (!last->isText())
++    } else {
++        s << "/>";
++    }
++}
++
++void QDomElementPrivate::afterSave(QTextStream &s, int depth, int indent) const
++{
++    if (last) {
++        QString qName(name);
++
++        if (!prefix.isEmpty())
++            qName = prefix + u':' + name;
++
++        if (!last->isText())
+             s << QString(indent < 1 ? 0 : depth * indent, QLatin1Char(' '));
+ 
+         s << "</" << qName << '>';
+-    } else {
+-        s << "/>";
+     }
+     if (!(next && next->isText())) {
+         /* -1 disables new lines. */
+@@ -6012,7 +6047,7 @@ void QDomDocumentPrivate::saveDocument(Q
+                 type->save(s, 0, indent);
+                 doc = true;
+             }
+-            n->save(s, 0, indent);
++            n->saveSubTree(n, s, 0, indent);
+             n = n->next;
+         }
+     }
+@@ -6045,8 +6080,8 @@ void QDomDocumentPrivate::saveDocument(Q
+         }
+ 
+         // Now we serialize all the nodes after the faked XML declaration(the PI).
+-        while(startNode) {
+-            startNode->save(s, 0, indent);
++        while (startNode) {
++            startNode->saveSubTree(startNode, s, 0, indent);
+             startNode = startNode->next;
+         }
+     }
+diff -rupN --no-dereference qtbase-everywhere-src-5.15.18/src/xml/dom/qdom_p.h qtbase-everywhere-src-5.15.18-new/src/xml/dom/qdom_p.h
+--- qtbase-everywhere-src-5.15.18/src/xml/dom/qdom_p.h	2025-06-05 16:07:26.000000000 +0200
++++ qtbase-everywhere-src-5.15.18-new/src/xml/dom/qdom_p.h	2026-10-25 12:16:52.890840980 +0100
+@@ -144,7 +144,9 @@ public:
+ 
+     virtual QDomNode::NodeType nodeType() const { return QDomNode::BaseNode; }
+ 
+-    virtual void save(QTextStream &, int, int) const;
++    void saveSubTree(const QDomNodePrivate *n, QTextStream &s, int depth, int indent) const;
++    virtual void save(QTextStream &, int, int) const {}
++    virtual void afterSave(QTextStream &, int, int) const {}
+ 
+     void setLocation(int lineNumber, int columnNumber);
+ 
+@@ -363,6 +365,7 @@ public:
+     QDomNode::NodeType nodeType() const override { return QDomNode::ElementNode; }
+     QDomNodePrivate *cloneNode(bool deep = true) override;
+     virtual void save(QTextStream &s, int, int) const override;
++    virtual void afterSave(QTextStream &s, int, int) const override;
+ 
+     // Variables
+     QDomNamedNodeMapPrivate *m_attr;
+diff -rupN --no-dereference qtbase-everywhere-src-5.15.18/tests/auto/xml/dom/qdom/testdata/deeply-nested.svg qtbase-everywhere-src-5.15.18-new/tests/auto/xml/dom/qdom/testdata/deeply-nested.svg
+--- qtbase-everywhere-src-5.15.18/tests/auto/xml/dom/qdom/testdata/deeply-nested.svg	1970-01-01 01:00:00.000000000 +0100
++++ qtbase-everywhere-src-5.15.18-new/tests/auto/xml/dom/qdom/testdata/deeply-nested.svg	2026-10-25 12:16:52.891403032 +0100
+@@ -0,0 +1,396 @@
++<?xml version="1.0" encoding="iso-8859-1"?>
++<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
++  xmlns:xlink="http://www.w3.org/1999/xlink"
++  xml:space="preserve" viewBox="0 0 300 300">
++  <g fill="#CB8252">
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++    <g><rect x="25" y="220" width="50" height="50" />
++      <!-- 376 -->
++    </g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g>
++    </g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g>
++    </g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g>
++    </g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g>
++    </g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g>
++    </g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g>
++    </g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g>
++    </g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g>
++    </g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g>
++    </g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g></g>
++</svg>
+diff -rupN --no-dereference qtbase-everywhere-src-5.15.18/tests/auto/xml/dom/qdom/tst_qdom.cpp qtbase-everywhere-src-5.15.18-new/tests/auto/xml/dom/qdom/tst_qdom.cpp
+--- qtbase-everywhere-src-5.15.18/tests/auto/xml/dom/qdom/tst_qdom.cpp	2026-10-25 12:16:52.885810068 +0100
++++ qtbase-everywhere-src-5.15.18-new/tests/auto/xml/dom/qdom/tst_qdom.cpp	2026-10-25 12:16:52.891655002 +0100
+@@ -121,6 +121,7 @@ private slots:
+     void DTDInternalSubset() const;
+     void DTDInternalSubset_data() const;
+     void QTBUG49113_dontCrashWithNegativeIndex() const;
++    void noCrashOnDeepNesting() const
+ 
+     void cleanupTestCase() const;
+ 
+@@ -2259,5 +2260,21 @@ void tst_QDom::noCrashOnDeepNesting_impl
+     print(timer, operation);
+ }
+ 
++// The fix of QTBUG-131151 crash
++void tst_QDom::noCrashOnDeepNesting() const
++{
++    const QString prefix = QFINDTESTDATA("testdata/");
++    if (prefix.isEmpty())
++        QFAIL("Cannot find testdata directory!");
++
++    QFile file(prefix + "/deeply-nested.svg");
++    QVERIFY(file.open(QIODevice::ReadOnly));
++    QDomDocument doc;
++    doc.setContent(&file);
++    QByteArray array = doc.toByteArray();
++    QVERIFY(array.size());
++    file.close();
++}
++
+ QTEST_MAIN(tst_QDom)
+ #include "tst_qdom.moc"

diff --git a/CVE-2026-19248.patch b/CVE-2026-19248.patch
new file mode 100644
index 0000000..bed1e2c
--- /dev/null
+++ b/CVE-2026-19248.patch
@@ -0,0 +1,107 @@
+diff -rupN --no-dereference qtbase-everywhere-src-5.15.18/src/xml/dom/qdom.cpp qtbase-everywhere-src-5.15.18-new/src/xml/dom/qdom.cpp
+--- qtbase-everywhere-src-5.15.18/src/xml/dom/qdom.cpp	2025-06-05 16:07:26.000000000 +0200
++++ qtbase-everywhere-src-5.15.18-new/src/xml/dom/qdom.cpp	2026-10-25 12:16:51.763297186 +0100
+@@ -992,16 +992,21 @@ QDomNodePrivate::QDomNodePrivate(QDomNod
+ 
+ QDomNodePrivate::~QDomNodePrivate()
+ {
+-    QDomNodePrivate* p = first;
+-    QDomNodePrivate* n;
++    QDomNodePrivate *p = this;
+ 
+-    while (p) {
+-        n = p->next;
+-        if (!p->ref.deref())
+-            delete p;
+-        else
+-            p->setNoParent();
+-        p = n;
++    // post-order depth-first-search; visitation is deletion (avoids recursion)
++    while (true) {
++        if (QDomNodePrivate *c = p->first) {
++            p->first = c->next;          // peel firstChild off p
++            if (c->ref.deref())
++                c->setNoParent();        // survivor: detach, don't descend
++            else
++                p = c;                   // descend; c's parent() remembers p
++        } else {                         // p ran out of children (= is a leaf now)
++            if (p == this)
++                break;                   // we're done, don't `delete this`
++            delete std::exchange(p, p->parent());  // deletes and ascends
++        }
+     }
+     first = nullptr;
+     last = nullptr;
+diff -rupN --no-dereference qtbase-everywhere-src-5.15.18/tests/auto/xml/dom/qdom/tst_qdom.cpp qtbase-everywhere-src-5.15.18-new/tests/auto/xml/dom/qdom/tst_qdom.cpp
+--- qtbase-everywhere-src-5.15.18/tests/auto/xml/dom/qdom/tst_qdom.cpp	2025-06-05 16:07:26.000000000 +0200
++++ qtbase-everywhere-src-5.15.18-new/tests/auto/xml/dom/qdom/tst_qdom.cpp	2026-10-25 12:16:51.764438325 +0100
+@@ -133,6 +133,14 @@ private:
+     static QString onNullWarning(const char *const functionName);
+     static bool isDeepEqual(const QDomNode &n1, const QDomNode &n2);
+     static bool isFakeXMLDeclaration(const QDomNode &node);
++    enum class DeepNestingOp {
++        Dtor,
++        Clear,
++    };
++    static constexpr size_t DeepNestingDepth = 250'000;
++    static void noCrashOnDeepNesting_impl(DeepNestingOp op);
++    static void noCrashOnDeepNestingDtor() const { noCrashOnDeepNesting_impl(DeepNestingOp::Dtor); }
++    static void noCrashOnDeepNestingClear() const { noCrashOnDeepNesting_impl(DeepNestingOp::Clear); }
+ 
+     QList<QByteArray> m_testCodecs;
+ };
+@@ -2202,5 +2210,54 @@ void tst_QDom::DTDInternalSubset_data()
+        << internalSubset0;
+ }
+ 
++static QDomDocument makeNested(size_t depth)
++{
++    QDomDocument doc;
++    if (!depth)
++        return doc;
++
++    // Need to build it bottom-up (QTBUG-147190)...
++
++    QDomElement a = doc.createElement("a");
++    for (size_t i = 1; i < depth; ++i) {
++        QDomElement parent = doc.createElement("a");
++        parent.appendChild(std::exchange(a, parent));
++    }
++
++    doc.appendChild(a); // only now associate it with the doc (QTBUG-147190)
++
++    return doc;
++}
++
++// QTBUG-146936: dtor
++void tst_QDom::noCrashOnDeepNesting_impl(DeepNestingOp op)
++{
++    const auto print = [](const QElapsedTimer &timer, const char *operation) {
++        std::chrono::duration<double> secs = timer.durationElapsed();
++        qDebug("%s %llu-deep document in %fs", operation,
++               qulonglong(DeepNestingDepth), secs.count());
++    };
++
++    QElapsedTimer timer;
++    timer.start();
++    std::optional doc = makeNested(DeepNestingDepth);
++    print(timer, "created");
++
++    timer.restart();
++    const char *operation;
++    // the actual test is that it doesn't run off the stack and crashes (QTBUG-146936):
++    switch (op) {
++    case DeepNestingOp::Dtor:
++        operation = "destroyed";
++        doc.reset();
++        break;
++    case DeepNestingOp::Clear:
++        operation = "cleared";
++        doc->clear();
++        break;
++    }
++    print(timer, operation);
++}
++
+ QTEST_MAIN(tst_QDom)
+ #include "tst_qdom.moc"

diff --git a/mingw-qt5-qtbase.spec b/mingw-qt5-qtbase.spec
index 0e62729..ccbae98 100644
--- a/mingw-qt5-qtbase.spec
+++ b/mingw-qt5-qtbase.spec
@@ -25,7 +25,7 @@
 
 Name:           mingw-qt5-qtbase
 Version:        5.15.18
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Qt5 for Windows - QtBase component
 
 # See LGPL_EXCEPTIONS.txt, for exception details
@@ -103,6 +103,13 @@ Patch19:        qtbase-5.15.8-fix-missing-qtsan-include.patch
 # Fix linking against static harfbuzz
 Patch20:        qtbase-fix-linking-against-static-harfbuzz.patch
 
+# Backport fix for CVE-2026-19248
+Patch21:        CVE-2026-19248.patch
+
+# Backport fix for CVE-2026-11573
+Patch22:        CVE-2026-11573.patch
+
+
 # https://invent.kde.org/qt/qt/qtbase, kde/5.15 branch
 # git diff v5.15.15-lts-lgpl..HEAD | gzip > kde-5.15-rollup-$(date +%Y%m%d).patch.gz
 # patch100 in lookaside cache due to large'ish size -- rdieter
@@ -818,6 +825,9 @@ ln -s %{mingw64_target}-qmake-qt5 %{buildroot}%{_bindir}/mingw64-qmake-qt5
 
 
 %changelog
+* Sun Oct 25 2026 Sandro Mani <manisandro@gmail.com> - 5.15.18-4
+- Backport fixes for CVE-2026-19248 and CVE-2026-11573
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.18-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

                 reply	other threads:[~2026-10-25 13:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179293523103.1.1694662235481698685.rpms-mingw-qt5-qtbase-993f8f2f37c5@fedoraproject.org \
    --to=manisandro@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox