#1152892 qt6-base: CVE-2026-105924

Package:
src:qt6-base
Source:
src:qt6-base
Submitter:
Moritz Mühlenhoff
Date:
2026-11-10 18:07:03 UTC
Severity:
normal
Tags:
#1152892#5
Date:
2026-11-02 21:45:35 UTC
From:
To:
Hi,

The following vulnerability was published for qt6-base.

CVE-2026-105924[0]:
| A NULL pointer dereference vulnerability in the Qt QCborValue to
| JSON conversion of the Qt Core module.

The wiki page isn't backfilled yet:
https://codereview.qt-project.org/c/qt/qtbase/+/766809 (not public yet)

And the code review link is restricted as well:
https://wiki.qt.io/List_of_known_vulnerabilities_in_Qt_products#CVE-2026-105924



If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-105924
https://www.cve.org/CVERecord?id=CVE-2026-105924

Please adjust the affected versions in the BTS as needed.

#1152892#12
Date:
2026-11-03 13:27:30 UTC
From:
To:
Hi,

The Qt wiki entry has now been filled in: CVE-2026-105924 affects Qt
5.12.0 to 6.8.9 and 6.9.0 to 6.11.2, and is fixed in 6.8.10, 6.11.3 and
6.12.1.

Upstream fix, in the public qt/qtbase GitHub mirror:
"JSON/CBOR: fix crash converting an empty URL tag to JSON"
(Fixes: QTBUG-149841)
dev: 9e9988ee57c0210a5ba57435182b094f50b50f28
6.11: 08c5ae85586ef9ef6b3f80f98f367de48c6db3d0 (contained in tag v6.11.3)
https://www.google.com/url?q=https://github.com/qt/qtbase/commit/08c5ae85586ef9ef6b3f80f98f367de48c6db3d0&source=gmail&ust=1793798850075000&sa=E

The cause: a CBOR URL (tag 32) wrapping an empty text string has no
ByteData after QCborValue::fromCbor(), so d->byteData(1) is nullptr in
convertExtendedTypeToJson() (src/corelib/serialization/qjsoncbor.cpp),
and it is dereferenced unconditionally.

The library hunk (qjsoncbor.cpp only, 1 hunk) applies cleanly with
patch --dry-run to the source of:
6.11.2+dfsg-7 (sid), 6.8.2+dfsg-9+deb13u2 (trixie), 6.4.2+dfsg-10
(bookworm)

Confirmed on Debian's library, using the same input as the test row the
fix adds upstream, add(QCborValue(QUrl()), QUrl(), QString()):

QCborValue direct{QUrl()}; // encodes as d8 20 60
QCborValue decoded = QCborValue::fromCbor(direct.toCbor());
direct.toJsonValue(); // ok
decoded.toJsonValue(); // SIGSEGV

With libqt6core6t64 6.11.2+dfsg-5 (amd64) the program exits with signal
11 at decoded.toJsonValue(). So an application that decodes untrusted
CBOR and converts it to JSON can be crashed by the three bytes d8 20 60.
I have not built a patched qt6-base, so the fix itself is not
runtime-tested here.

qtbase-opensource-src (Qt 5) has the same code and crashes the same way
with 5.15.19+dfsg-5. The upstream hunk does not apply there, so I am
filing a separate bug against it with a small Qt 5 version of the fix.

Regards

#1152892#19
Date:
2026-11-03 21:09:57 UTC
From:
To:
Hi,
and
v6.11.3)
08c5ae85586ef9ef6b3f80f98f367de48c6db3d0

Are you sure that's the correct one ? Because
08c5ae85586ef9ef6b3f80f98f367de48c6db3d0 is the fix for CVE-2026-107157:
https://security-tracker.debian.org/tracker/CVE-2026-107157

#1152892#24
Date:
2026-11-03 22:03:30 UTC
From:
To:
Hi Patrick,
08c5ae85586e is the CVE-2026-105924 fix. I think the "Fixed by" note on
CVE-2026-107157 in the security tracker is the mistake.

1. What the commit fixes. It is "JSON/CBOR: fix crash converting an
empty URL tag to JSON" (QTBUG-149841): a tag-32 URL wrapping an
empty string has no ByteData after fromCbor(), and
convertExtendedTypeToJson() in qjsoncbor.cpp dereferences the NULL
byteData(). The Qt wiki describes the two CVEs as:
CVE-2026-105924: "NULL pointer dereference vulnerability in
QCborValue to JSON conversion"
CVE-2026-107157: "Out-of-bounds read vulnerability in
QCborValue::fromCbor()" (64-bit platforms only)
The commit only touches qjsoncbor.cpp and the qcborvalue_json test,
not the decoder in qcborvalue.cpp.

2. The 6.12 release timing rules out 107157. The wiki lists 107157 as
fixed in 6.12.0, but 105924 as affecting 6.12.0 and fixed only in
6.12.1. This fix's 6.12 cherry-pick, a2cd9d2a7057, is on the 6.12
branch but in no tag yet, so it is not in v6.12.0. If it were the
107157 fix, 6.12.0 could not be listed as fixed.
(Lineage: dev 9e9988ee57c0 -> 6.12 a2cd9d2a7057 -> 6.11 08c5ae85586e,
in v6.11.3.)

I couldn't identify the 107157 fix from the public commits. No commit
between v6.11.2 and v6.11.3 mentions it, and its Gerrit change (745719)
isn't readable for me. So for #1152890 it's best not to rely on
08c5ae85586e.

What I said in my earlier mail still stands for #1152892: the patch
applies to sid/trixie/bookworm, and I confirmed the crash on 6.11.2
using upstream's regression test. I'll also send a note to the
security tracker list about the 107157 entry.

Regards,
Sumit

#1152892#29
Date:
2026-11-06 22:54:02 UTC
From:
To:
Can we nudge someone in Qt to open up https://codereview.qt-project.org/c/qt/qtbase/+/766809 ?

Cheers,
        Moritz

#1152892#34
Date:
2026-11-08 18:05:43 UTC
From:
To:
Hi Moritz,

Am Freitag, 6. November 2026, 23:54:02 Mitteleuropäische Normalzeit
schrieb Moritz Mühlenhoff:
[...]

I asked in the chat. Let's see how they answer.

#1152892#39
Date:
2026-11-08 18:34:26 UTC
From:
To:
Hi Moritz,

Am Freitag, 6. November 2026, 23:54:02 Mitteleuropäische Normalzeit
schrieb Moritz Mühlenhoff:
[...]

https://codereview.qt-project.org/c/qt/qtbase/+/778089 is the correct
one for the 6.11 branch.

#1152892#44
Date:
2026-11-10 18:05:16 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
qt6-base, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1152892@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Patrick Franz <deltaone@debian.org> (supplier of updated qt6-base package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 10 Nov 2026 17:41:17 +0100
Source: qt6-base
Architecture: source
Version: 6.11.2+dfsg-8
Distribution: unstable
Urgency: medium
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Patrick Franz <deltaone@debian.org>
Closes: 1152890 1152892 1153218
Changes:
 qt6-base (6.11.2+dfsg-8) unstable; urgency=medium
 .
   [ Patrick Franz ]
   * Backport patches to fix the following CVEs (Closes: #1152890):
     - CVE-2026-95620
     - CVE-2026-96432
     - CVE-2026-105923
   * Backport patch to fix CVE-2026-105924 (Closes: #1152892).
   * Add Breaks+Replaces for qmake6-bin against qmake6 (Closes:
     #1153218).
Checksums-Sha1:
 90e15a6de7f6722ab1ad9992107a5101fae2eb3d 6020 qt6-base_6.11.2+dfsg-8.dsc
 320812a854da49227f312bcf485452e21c4518a4 215328 qt6-base_6.11.2+dfsg-8.debian.tar.xz
 675d457499064cc396b47aec082ef6e1aaa67ddb 9440 qt6-base_6.11.2+dfsg-8_source.buildinfo
Checksums-Sha256:
 8c57a8555ae801bba70b11e0108cd8863864741438b655b58333476b05c80c07 6020 qt6-base_6.11.2+dfsg-8.dsc
 35e56ccf22fb10dd9f222cfe5121e5091977c35a91391d9bf97e15ddb5b8573a 215328 qt6-base_6.11.2+dfsg-8.debian.tar.xz
 23f9f5928549b32752ba6a7a1e88ec9d2875ee8d0e1924ee9b3306749fe9ff37 9440 qt6-base_6.11.2+dfsg-8_source.buildinfo
Files:
 5c2da4416269723dd4ddd3d6e55a2a6c 6020 libs optional qt6-base_6.11.2+dfsg-8.dsc
 56e5e2d286e4c8404e7c9466d40e41a3 215328 libs optional qt6-base_6.11.2+dfsg-8.debian.tar.xz
 ffd7d22f126968585b1ff99f344f055b 9440 libs optional qt6-base_6.11.2+dfsg-8_source.buildinfo
-----BEGIN PGP SIGNATURE-----

wsG7BAEBCgBvBYJq81jWCRCen3pgMHf+VkcUAAAAAAAeACBzYWx0QG5vdGF0aW9u
cy5zZXF1b2lhLXBncC5vcmdzXsL2/4Ow2mescaZw8EAA8J/5QOGzb6BY70LES/ta
FRYhBGKHQVw0evHMWR7typ6femAwd/5WAAC2xg/9EVwqpowsfchEUnUIeqri/o1v
lTOcFE2vuvqh5lA+mbFJZuB3pVFcAnCQAIznjVUYkZ4pqw3iFlYUJ9yKl4kNS4O1
E/O+UHyHVI17GYnNGRfhUwhHT18pAkVTxuskB15/WdXxVomZBNQFt6kmy++KunrA
WqxwKnwUPYA/0+4kg55jjAo55UQpCrKuqGcBgf1xQ8wCsIy8FcoaPs01nQhzjv5k
87VBQlp8IdnoBRavM5xeYHl4ryUxE6jaMrTMRQgoPa5D40QNzZCt5z727QVYZFK7
tUAzlOe2fCeVPD1R0H1kp/BEHJR6J3JRe57/T94vMKOFkv6A104C/xOvDt65CqJ4
DqKPUXBYQWgUMhopeKqdu4z1q5LxHWJ1Xmu/oKKxuBH64zzX6LmPJJXN0L4VUeEF
aqkIw7Fm0NCpFEOrMsFDtrA2SIuIvFX5Lu03TKqzRdgaf+Ql0Go2mg08AIkkPjYQ
/8CO1bYFIFC3czxr8ZJJBarDrlfDjmPpR0wKvK8oy+fzjUXvF6NH1+cl31Dw5tqv
HOyNWE3UoDmAvOOoyMW47GWSnDYZEDo3sl7ucOGTXwUanSEX/11Iq/oXG8G72F4U
8NALSwCvvkp63Hph9FTULK9KuIorQe8VKLbG2gf9jE6vsN1sXl4cfXeLSHcJwVsX
UQszcwvtbAAxckojw98=
=rgb4
-----END PGP SIGNATURE-----