diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2026-04-30 18:48:34 +0800 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-05-12 01:06:50 -0700 |
| commit | 6fc78f37ee51e7924f11056c84d6559e95131ed5 (patch) | |
| tree | e0ff5e3fe7493b423b5d9af946425a8d3ed0fd26 | |
| parent | e10b2658b2b9f7bc88387b5e553eed281df297e4 (diff) | |
| download | meta-openembedded-6fc78f37ee51e7924f11056c84d6559e95131ed5.tar.gz | |
lcms: upgrade 2.18 -> 2.19
CVE-2026-41254_1.patch
CVE-2026-41254_2.patch
removed since they're included in 2.19
Changes:
========
- CMake build system. Thanks to Vlad Erium for the initial implementation and
kmilos for improvements.
- Large files support to use profiles up to 4Gb
- Black point compensation works on multi-channel profiles
- Added more test platforms/architectures in GitHub tests, Cygwin and MSYS are
now fully checked.
- jpgicc banner is not shown on normal operation, only when help is requested.
- Added a way to access internal transform pipelines. For read only.
- Add a way to retrieve the CMM signature
- Added extra checks on postscript undocumented functions
- Added guard on integer overflow when reading .cube files
- Added unneeded checks as a try to get rid of spam reports about
"vulnerabilities" that are not real.
- Utility program names generated by Visual Studio 2026 are now same as all
other platforms.
- Creating an output profile by cmsTransform2DeviceLink does not propagate
correctly the colorant table. Fixed.
- Added some profile class definitions from iccMAX
- Deprecated uint16 and uint32 types removed from tifdiff
- fixed generation of tifdiff on Cmake and meson
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
| -rw-r--r-- | meta-oe/recipes-support/lcms/lcms/CVE-2026-41254_1.patch | 28 | ||||
| -rw-r--r-- | meta-oe/recipes-support/lcms/lcms/CVE-2026-41254_2.patch | 34 | ||||
| -rw-r--r-- | meta-oe/recipes-support/lcms/lcms_2.19.bb (renamed from meta-oe/recipes-support/lcms/lcms_2.18.bb) | 7 |
3 files changed, 2 insertions, 67 deletions
diff --git a/meta-oe/recipes-support/lcms/lcms/CVE-2026-41254_1.patch b/meta-oe/recipes-support/lcms/lcms/CVE-2026-41254_1.patch deleted file mode 100644 index 2ed8e9f587..0000000000 --- a/meta-oe/recipes-support/lcms/lcms/CVE-2026-41254_1.patch +++ /dev/null | |||
| @@ -1,28 +0,0 @@ | |||
| 1 | From c83cfcd249d06950a307cee8d1e22b7f6a78a8a7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Marti Maria <marti.maria@littlecms.com> | ||
| 3 | Date: Thu, 19 Feb 2026 09:07:20 +0100 | ||
| 4 | Subject: [PATCH] Fix integer overflow in CubeSize() | ||
| 5 | |||
| 6 | Thanks to @zerojackyi for reporting | ||
| 7 | |||
| 8 | CVE: CVE-2026-41254 | ||
| 9 | Upstream-Status: Backport [https://github.com/mm2/Little-CMS/commit/da6110b1d14abc394633a388209abd5ebedd7ab0] | ||
| 10 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 11 | --- | ||
| 12 | src/cmslut.c | 3 ++- | ||
| 13 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/src/cmslut.c b/src/cmslut.c | ||
| 16 | index 1089148..b245209 100644 | ||
| 17 | --- a/src/cmslut.c | ||
| 18 | +++ b/src/cmslut.c | ||
| 19 | @@ -460,7 +460,8 @@ void EvaluateCLUTfloatIn16(const cmsFloat32Number In[], cmsFloat32Number Out[], | ||
| 20 | static | ||
| 21 | cmsUInt32Number CubeSize(const cmsUInt32Number Dims[], cmsUInt32Number b) | ||
| 22 | { | ||
| 23 | - cmsUInt32Number rv, dim; | ||
| 24 | + cmsUInt32Number dim; | ||
| 25 | + cmsUInt64Number rv; | ||
| 26 | |||
| 27 | _cmsAssert(Dims != NULL); | ||
| 28 | |||
diff --git a/meta-oe/recipes-support/lcms/lcms/CVE-2026-41254_2.patch b/meta-oe/recipes-support/lcms/lcms/CVE-2026-41254_2.patch deleted file mode 100644 index be8c759a6f..0000000000 --- a/meta-oe/recipes-support/lcms/lcms/CVE-2026-41254_2.patch +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | From f5994aea02d5620f3182cafdcf116ffe9d6c9fd2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Marti Maria <marti.maria@littlecms.com> | ||
| 3 | Date: Thu, 12 Mar 2026 22:57:35 +0100 | ||
| 4 | Subject: [PATCH] check for overflow | ||
| 5 | |||
| 6 | Thanks to Guanni Qu for detecting & reporting the issue | ||
| 7 | |||
| 8 | CVE: CVE-2026-41254 | ||
| 9 | Upstream-Status: Backport [https://github.com/mm2/Little-CMS/commit/e0641b1828d0a1af5ecb1b11fe22f24fceefd4bc] | ||
| 10 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 11 | --- | ||
| 12 | src/cmslut.c | 6 +++--- | ||
| 13 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/src/cmslut.c b/src/cmslut.c | ||
| 16 | index b245209..c1dbb32 100644 | ||
| 17 | --- a/src/cmslut.c | ||
| 18 | +++ b/src/cmslut.c | ||
| 19 | @@ -468,12 +468,12 @@ cmsUInt32Number CubeSize(const cmsUInt32Number Dims[], cmsUInt32Number b) | ||
| 20 | for (rv = 1; b > 0; b--) { | ||
| 21 | |||
| 22 | dim = Dims[b-1]; | ||
| 23 | - if (dim <= 1) return 0; // Error | ||
| 24 | - | ||
| 25 | - rv *= dim; | ||
| 26 | + if (dim <= 1) return 0; | ||
| 27 | |||
| 28 | // Check for overflow | ||
| 29 | if (rv > UINT_MAX / dim) return 0; | ||
| 30 | + | ||
| 31 | + rv *= dim; | ||
| 32 | } | ||
| 33 | |||
| 34 | // Again, prevent overflow | ||
diff --git a/meta-oe/recipes-support/lcms/lcms_2.18.bb b/meta-oe/recipes-support/lcms/lcms_2.19.bb index 1ff3b3908f..fa33678b18 100644 --- a/meta-oe/recipes-support/lcms/lcms_2.18.bb +++ b/meta-oe/recipes-support/lcms/lcms_2.19.bb | |||
| @@ -3,11 +3,8 @@ SECTION = "libs" | |||
| 3 | LICENSE = "MIT" | 3 | LICENSE = "MIT" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e9ce323c4b71c943a785db90142b228a" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e9ce323c4b71c943a785db90142b228a" |
| 5 | 5 | ||
| 6 | SRC_URI = "${SOURCEFORGE_MIRROR}/lcms/lcms2-${PV}.tar.gz \ | 6 | SRC_URI = "${SOURCEFORGE_MIRROR}/lcms/lcms2-${PV}.tar.gz" |
| 7 | file://CVE-2026-41254_1.patch \ | 7 | SRC_URI[sha256sum] = "49e7e134e4299733dd0eda434fa468997a28ab3d33fa397c642b03644f552216" |
| 8 | file://CVE-2026-41254_2.patch \ | ||
| 9 | " | ||
| 10 | SRC_URI[sha256sum] = "ee67be3566f459362c1ee094fde2c159d33fa0390aa4ed5f5af676f9e5004347" | ||
| 11 | 8 | ||
| 12 | DEPENDS = "tiff" | 9 | DEPENDS = "tiff" |
| 13 | 10 | ||
