package/sqlite: patch CVE-2025-70873
PATCH 1/1 package/sqlite: patch CVE-2025-70873
- CVE-2025-70873:
An information disclosure issue in the zipfileInflate function in the zipfile extension in SQLite v3.51.1 and earlier allows attackers to obtain heap memory via supplying a crafted ZIP file.
For more information, see:
- https://www.cve.org/CVERecord?id=CVE-2025-70873
- https://sqlite.org/src/info/9766b47beb9ec72f
- https://github.com/sqlite/sqlite/commit/5a05c59d4d75c03f23d5fb70feac9f789954bf8a
--- package/sqlite/0002-CVE-2025-70873.patch | 30 ++++++++++++++++++++++++ package/sqlite/sqlite.mk | 3 +++ 2 files changed, 33 insertions(+) create mode 100644 package/sqlite/0002-CVE-2025-70873.patch
package/sqlite/0002-CVE-2025-70873.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 5a05c59d4d75c03f23d5fb70feac9f789954bf8a Mon Sep 17 00:00:00 2001 +From: drh <> +Date: Sat, 6 Dec 2025 20:41:24 +0000 +Subject: [PATCH] In the zipfile extension, only return as many bytes as + Inflate actually generated. [forum:/forumpost/761eac3c82|Forum post + 761eac3c82]. Adjust ./configure so that it builds zipfile into testfixture if + ZLIB is available, so that tests get run on unix platforms. + +Upstream: https://sqlite.org/src/info/9766b47beb9ec72f +Upstream: https://github.com/sqlite/sqlite/commit/5a05c59d4d75c03f23d5fb70feac9f789954bf8a +CVE: CVE-2025-70873 +[thomas: backport to 3.50.4] +Signed-off-by: Thomas Perale <[email protected]> +--- + shell.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/shell.c b/shell.c +index de401b89ec..e2640fd874 100644 +--- a/shell.c ++++ b/shell.c +@@ -11184,7 +11184,7 @@ static void zipfileInflate( + if( err!=Z_STREAM_END ){ + zipfileCtxErrorMsg(pCtx, "inflate() failed (%d)", err); + }else{ +- sqlite3_result_blob(pCtx, aRes, nOut, zipfileFree); ++ sqlite3_result_blob(pCtx, aRes, (int)str.total_out, zipfileFree); + aRes = 0; + } + }
package/sqlite/sqlite.mk +3 -0
@@ -13,6 +13,9 @@ SQLITE_LICENSE_FILES = tea/license.terms SQLITE_CPE_ID_VENDOR = sqlite SQLITE_INSTALL_STAGING = YES +# 0002-CVE-2025-70873.patch +SQLITE_IGNORE_CVES += CVE-2025-70873 + ifeq ($(BR2_PACKAGE_SQLITE_STAT4),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_STAT4 endif
Signature · 6 lines
2.54.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 1/1 package/lcms2: patch CVE-2026-41254, CVE-2026-42798
- CVE-2026-41254:
Little CMS (lcms2) through 2.18 has an integer overflow in CubeSize in cmslut.c because the overflow check is performed after the multiplication.
For more information, see:
- https://www.cve.org/CVERecord?id=CVE-2026-41254
- https://github.com/mm2/Little-CMS/commit/da6110b1d14abc394633a388209abd5ebedd7ab0
- https://github.com/mm2/Little-CMS/commit/e0641b1828d0a1af5ecb1b11fe22f24fceefd4bc
- CVE-2026-42798:
Little CMS (lcms2) 2.16 through 2.18 before 2.19 has an integer overflow in ParseCube in cmscgats.c.
For more information, see:
- https://www.cve.org/CVERecord?id=CVE-2026-42798
- https://github.com/mm2/Little-CMS/commit/6a686019825a89b715d16671f18d049523354176
--- ...001-Fix-integer-overflow-in-CubeSize.patch | 28 ++++++++++++++ package/lcms2/0002-check-overflow.patch | 34 +++++++++++++++++ ...e-integer-overflow-in-LUT-allocation.patch | 38 +++++++++++++++++++ package/lcms2/lcms2.mk | 7 ++++ 4 files changed, 107 insertions(+) create mode 100644 package/lcms2/0001-Fix-integer-overflow-in-CubeSize.patch create mode 100644 package/lcms2/0002-check-overflow.patch create mode 100644 package/lcms2/0003-Fix-for-ParseCube-integer-overflow-in-LUT-allocation.patch
package/lcms2/0001-Fix-integer-overflow-in-CubeSize.patch new file +28 -0
@@ -0,0 +1,28 @@ +From da6110b1d14abc394633a388209abd5ebedd7ab0 Mon Sep 17 00:00:00 2001 +From: Marti Maria <[email protected]> +Date: Thu, 19 Feb 2026 09:07:20 +0100 +Subject: [PATCH] Fix integer overflow in CubeSize() + +Thanks to @zerojackyi for reporting + +CVE: CVE-2026-41254 +Upstream: https://github.com/mm2/Little-CMS/commit/da6110b1d14abc394633a388209abd5ebedd7ab0 +Signed-off-by: Thomas Perale <[email protected]> +--- + src/cmslut.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/cmslut.c b/src/cmslut.c +index 10891486..b2452090 100644 +--- a/src/cmslut.c ++++ b/src/cmslut.c +@@ -460,7 +460,8 @@ void EvaluateCLUTfloatIn16(const cmsFloat32Number In[], cmsFloat32Number Out[], + static + cmsUInt32Number CubeSize(const cmsUInt32Number Dims[], cmsUInt32Number b) + { +- cmsUInt32Number rv, dim; ++ cmsUInt32Number dim; ++ cmsUInt64Number rv; + + _cmsAssert(Dims != NULL); +
package/lcms2/0002-check-overflow.patch new file +34 -0
@@ -0,0 +1,34 @@ +From e0641b1828d0a1af5ecb1b11fe22f24fceefd4bc Mon Sep 17 00:00:00 2001 +From: Marti Maria <[email protected]> +Date: Thu, 12 Mar 2026 22:57:35 +0100 +Subject: [PATCH] check for overflow + +Thanks to Guanni Qu for detecting & reporting the issue + +CVE: CVE-2026-41254 +Upstream: https://github.com/mm2/Little-CMS/commit/e0641b1828d0a1af5ecb1b11fe22f24fceefd4bc +Signed-off-by: Thomas Perale <[email protected]> +--- + src/cmslut.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/cmslut.c b/src/cmslut.c +index a60baf98..65c935fc 100644 +--- a/src/cmslut.c ++++ b/src/cmslut.c +@@ -468,12 +468,12 @@ cmsUInt32Number CubeSize(const cmsUInt32Number Dims[], cmsUInt32Number b) + for (rv = 1; b > 0; b--) { + + dim = Dims[b-1]; +- if (dim <= 1) return 0; // Error +- +- rv *= dim; ++ if (dim <= 1) return 0; + + // Check for overflow + if (rv > UINT_MAX / dim) return 0; ++ ++ rv *= dim; + } + + // Again, prevent overflow
package/lcms2/0003-Fix-for-ParseCube-integer-overflow-in-LUT-allocation.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 6a686019825a89b715d16671f18d049523354176 Mon Sep 17 00:00:00 2001 +From: Marti Maria <[email protected]> +Date: Thu, 19 Feb 2026 08:48:50 +0100 +Subject: [PATCH] Fix for ParseCube integer overflow in LUT allocation + +thanks to @zerojackyi for reporting + + +CVE: CVE-2026-42798 +Upstream: https://github.com/mm2/Little-CMS/commit/6a686019825a89b715d16671f18d049523354176 +[thomas: backport to 2.16] +Signed-off-by: Thomas Perale <[email protected]> +--- + src/cmscgats.c | 11 ++++++++++- + 1 file changed, 10 insertions(+), 1 deletion(-) + +diff --git a/src/cmscgats.c b/src/cmscgats.c +index 252db22d..3d819fad 100644 +--- a/src/cmscgats.c ++++ b/src/cmscgats.c +@@ -3128,7 +3128,16 @@ cmsBool ParseCube(cmsIT8* cube, cmsStage** Shaper, cmsStage** CLUT, char title[] + + if (lut_size > 0) { + +- int nodes = lut_size * lut_size * lut_size; ++ int nodes; ++ ++ /** ++ * Professional LUT‑generation tools (e.g., Nobe LutBake) list 65×65×65 as their highest supported size. ++ */ ++ if (lut_size > 65) ++ return SynError(cube, "LUT size '%d' is over maximum of 65", lut_size); ++ ++ nodes = lut_size * lut_size * lut_size; ++ + + cmsFloat32Number* lut_table = _cmsMalloc(cube->ContextID, nodes * 3 * sizeof(cmsFloat32Number)); + if (lut_table == NULL) return FALSE;
package/lcms2/lcms2.mk +7 -0
@@ -14,6 +14,13 @@ LCMS2_INSTALL_STAGING = YES # tiff is only used by tificc sample LCMS2_CONF_OPTS = --without-tiff +# 0001-Fix-integer-overflow-in-CubeSize.patch +# 0002-check-overflow.patch +LCMS2_IGNORE_CVES += CVE-2026-41254 + +# 0003-Fix-for-ParseCube-integer-overflow-in-LUT-allocation.patch +LCMS2_IGNORE_CVES += CVE-2026-42798 + ifeq ($(BR2_PACKAGE_JPEG),y) LCMS2_CONF_OPTS += --with-jpeg LCMS2_DEPENDENCIES += jpeg
Signature · 6 lines
2.54.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 1/1 package/libinput: ignore CVE-2026-3509{3, 4}
In reply to Thomas Perale via buildrootThe vulnerable code was introduced starting version 1.29.901 & 1.30.0
[1] and thus doesn't affect 2025.02.x version 1.27.0.
For more information, see the NVD entry [2].
[1] https://gitlab.freedesktop.org/libinput/libinput/-/commit/9e37bc0cfa4d975291e5a2899e148fb83526d4a2
[2] https://nvd.nist.gov/vuln/detail/CVE-2026-35093
--- package/libinput/libinput.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/libinput/libinput.mk +4 -0
@@ -15,6 +15,10 @@ LIBINPUT_CPE_ID_VENDOR = freedesktop # Tests need fork, so just disable them everywhere. LIBINPUT_CONF_OPTS = -Dtests=false -Dlibwacom=false -Ddocumentation=false +# Code not present in 1.27.0, see +# https://gitlab.freedesktop.org/libinput/libinput/-/commit/9e37bc0cfa4d975291e5a2899e148fb83526d4a2 +LIBINPUT_IGNORE_CVES += CVE-2026-35093 CVE-2026-35094 + ifeq ($(BR2_PACKAGE_LIBGTK3),y) LIBINPUT_CONF_OPTS += -Ddebug-gui=true LIBINPUT_DEPENDENCIES += libgtk3
Signature · 6 lines
2.54.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedRe: [Buildroot] [PATCH 2025.02.x] package/libinput: ignore CVE-2026-3509{3, 4}
In reply of:
Quoted 9 lines
The vulnerable code was introduced starting version 1.29.901 & 1.30.0
[1] and thus doesn't affect 2025.02.x version 1.27.0.For more information, see the NVD entry [2].
[1] https://gitlab.freedesktop.org/libinput/libinput/-/commit/9e37bc0cfa4d975291e5a2899e148fb83526d4a2
[2] https://nvd.nist.gov/vuln/detail/CVE-2026-35093Signed-off-by Thomas Perale <[email protected]>
Applied to 2025.02.x. Thanks
Quoted 26 lines
--- package/libinput/libinput.mk | 4 ++++ 1 file changed, 4 insertions(+)package/libinput/libinput.mk +4
-0@@ -15,6 +15,10 @@ LIBINPUT_CPE_ID_VENDOR = freedesktop # Tests need fork, so just disable them everywhere. LIBINPUT_CONF_OPTS = -Dtests=false -Dlibwacom=false -Ddocumentation=false +# Code not present in 1.27.0, see +# https://gitlab.freedesktop.org/libinput/libinput/-/commit/9e37bc0cfa4d975291e5a2899e148fb83526d4a2 +LIBINPUT_IGNORE_CVES += CVE-2026-35093 CVE-2026-35094 + ifeq ($(BR2_PACKAGE_LIBGTK3),y) LIBINPUT_CONF_OPTS += -Ddebug-gui=true LIBINPUT_DEPENDENCIES += libgtk3Signature · 6 lines
2.54.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedIn reply of:
Quoted 11 lines
- CVE-2025-70873:
An information disclosure issue in the zipfileInflate function in the zipfile extension in SQLite v3.51.1 and earlier allows attackers to obtain heap memory via supplying a crafted ZIP file.For more information, see:
- https://www.cve.org/CVERecord?id=CVE-2025-70873
- https://sqlite.org/src/info/9766b47beb9ec72f
- https://github.com/sqlite/sqlite/commit/5a05c59d4d75c03f23d5fb70feac9f789954bf8aSigned-off-by Thomas Perale <[email protected]>
Applied to 2025.02.x. Thanks
Quoted 63 lines
--- package/sqlite/0002-CVE-2025-70873.patch | 30 ++++++++++++++++++++++++ package/sqlite/sqlite.mk | 3 +++ 2 files changed, 33 insertions(+) create mode 100644 package/sqlite/0002-CVE-2025-70873.patchpackage/sqlite/0002-CVE-2025-70873.patch new file +30
-0@@ -0,0 +1,30 @@ +From 5a05c59d4d75c03f23d5fb70feac9f789954bf8a Mon Sep 17 00:00:00 2001 +From: drh <> +Date: Sat, 6 Dec 2025 20:41:24 +0000 +Subject: [PATCH] In the zipfile extension, only return as many bytes as + Inflate actually generated. [forum:/forumpost/761eac3c82|Forum post + 761eac3c82]. Adjust ./configure so that it builds zipfile into testfixture if + ZLIB is available, so that tests get run on unix platforms. + +Upstream: https://sqlite.org/src/info/9766b47beb9ec72f +Upstream: https://github.com/sqlite/sqlite/commit/5a05c59d4d75c03f23d5fb70feac9f789954bf8a +CVE: CVE-2025-70873 +[thomas: backport to 3.50.4] +Signed-off-by: Thomas Perale <[email protected]> +--- + shell.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/shell.c b/shell.c +index de401b89ec..e2640fd874 100644 +--- a/shell.c ++++ b/shell.c +@@ -11184,7 +11184,7 @@ static void zipfileInflate( + if( err!=Z_STREAM_END ){ + zipfileCtxErrorMsg(pCtx, "inflate() failed (%d)", err); + }else{ +- sqlite3_result_blob(pCtx, aRes, nOut, zipfileFree); ++ sqlite3_result_blob(pCtx, aRes, (int)str.total_out, zipfileFree); + aRes = 0; + } + }package/sqlite/sqlite.mk +3
-0@@ -13,6 +13,9 @@ SQLITE_LICENSE_FILES = tea/license.terms SQLITE_CPE_ID_VENDOR = sqlite SQLITE_INSTALL_STAGING = YES +# 0002-CVE-2025-70873.patch +SQLITE_IGNORE_CVES += CVE-2025-70873 + ifeq ($(BR2_PACKAGE_SQLITE_STAT4),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_STAT4 endifSignature · 6 lines
2.54.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot