Skip to contentSkip to conversation

libsodium: mark CVE-2025-69277 patched

PATCH In review Gyorgy Sarvari 2 participants 8 messages Mar 17 – Mar 18

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 libsodium: mark CVE-2025-69277 patched

Details: https://nvd.nist.gov/vuln/detail/CVE-2025-69277

The vulnerability has been fixed[1] since version 1.0.20, but NVD tracks it without version info. Mark it patched explicitly.

[1]: https://github.com/jedisct1/libsodium/commit/f2da4cd8cb26599a0285a6ab0c02948e361a674a

---
 meta-oe/recipes-crypto/libsodium/libsodium_1.0.21.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-crypto/libsodium/libsodium_1.0.21.bb +2 -0
index 9f07634c41..a1647d2a30 100644
@@ -13,3 +13,5 @@ SRC_URI[sha256sum] = "9e4285c7a419e82dedb0be63a72eea357d6943bc3e28e6735bf600dd48
 inherit autotools
 
 BBCLASSEXTEND = "native nativesdk"
+
+CVE_STATUS[CVE-2025-69277] = "fixed-version: fixed in 1.0.20"
#1 lore raw

PATCH 2/7 libde265: patch CVE-2025-61147

Details: https://nvd.nist.gov/vuln/detail/CVE-2025-61147

Backport the patch that is referenced by the NVD advisory.

---
 .../libde265/libde265/CVE-2025-61147.patch    | 103 ++++++++++++++++++
 .../libde265/libde265_1.0.16.bb               |   4 +-
 2 files changed, 106 insertions(+), 1 deletion(-)
 create mode 100644 meta-multimedia/recipes-multimedia/libde265/libde265/CVE-2025-61147.patch
meta-multimedia/recipes-multimedia/libde265/libde265/CVE-2025-61147.patch new file +103 -0
new file mode 100644
index 0000000000..56d48f2a7d
@@ -0,0 +1,103 @@
+From d73508b7578964f2115ddf051b8fe9b4445978d4 Mon Sep 17 00:00:00 2001
+From: Dirk Farin <[email protected]>
+Date: Tue, 9 Sep 2025 15:14:05 +0200
+Subject: [PATCH] check for valid integer command line parameters (#484)
+
+CVE: CVE-2025-61147
+Upstream-Status: Backport [https://github.com/strukturag/libde265/commit/8b17e0930f77db07f55e0b89399a8f054ddbecf7]
+Signed-off-by: Gyorgy Sarvari <[email protected]>
+---
+ CMakeLists.txt   |  2 +-
+ dec265/dec265.cc | 44 +++++++++++++++++++++++++++++++++++++++++---
+ 2 files changed, 42 insertions(+), 4 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4da99216..997945a9 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -5,7 +5,7 @@ project (libde265
+     VERSION 1.0.16
+ )
+ 
+-set(CMAKE_CXX_STANDARD 11)
++set(CMAKE_CXX_STANDARD 17)
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
+ set(CMAKE_CXX_EXTENSIONS OFF)
+ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+diff --git a/dec265/dec265.cc b/dec265/dec265.cc
+index 79f67cd3..ecf5d131 100644
+--- a/dec265/dec265.cc
++++ b/dec265/dec265.cc
+@@ -27,6 +27,10 @@
+ #define DO_MEMORY_LOGGING 0
+ 
+ #include "de265.h"
++#include <stdexcept>
++#include <iostream>
++#include <optional>
++
+ #ifdef HAVE_CONFIG_H
+ #include "config.h"
+ #endif
+@@ -563,6 +567,40 @@ void (*volatile __malloc_initialize_hook)(void) = init_my_hooks;
+ #endif
+ 
+ 
++int parse_param(const char* arg, std::optional<int> lower_bound, std::optional<int> upper_bound, const char* arg_name)
++{
++  int value;
++
++  try {
++    size_t len;
++    value = std::stoi(optarg, &len);
++    if (arg[len] != 0) {
++      std::cerr << "invalid argument to " << arg_name << "\n";
++      exit(5);
++    }
++  } catch (std::invalid_argument const& ex) {
++    std::cerr << "invalid argument to " << arg_name << "\n";
++    exit(5);
++  }
++  catch (std::out_of_range const& ex) {
++    std::cerr << "argument to -T is out of range\n";
++    exit(5);
++  }
++
++  if (lower_bound && value < *lower_bound) {
++    std::cerr << "argument to " << arg_name << " may not be smaller than " << *lower_bound << "\n";
++    exit(5);
++  }
++
++  if (upper_bound && value > *upper_bound) {
++    std::cerr << "argument to " << arg_name << " may not be larger than " << *upper_bound << "\n";
++    exit(5);
++  }
++
++  return value;
++}
++
++
+ int main(int argc, char** argv)
+ {
+   while (1) {
+@@ -578,9 +616,9 @@ int main(int argc, char** argv)
+ 
+     switch (c) {
+     case 'q': quiet++; break;
+-    case 't': nThreads=atoi(optarg); break;
++    case 't': nThreads=parse_param(optarg, 0, std::nullopt, "-t"); break;
+     case 'c': check_hash=true; break;
+-    case 'f': max_frames=atoi(optarg); break;
++    case 'f': max_frames=parse_param(optarg, 1, std::nullopt, "-f"); break;
+     case 'o': write_yuv=true; output_filename=optarg; break;
+     case 'h': show_help=true; break;
+     case 'd': dump_headers=true; break;
+@@ -592,7 +630,7 @@ int main(int argc, char** argv)
+     case 'm': measure_quality=true; reference_filename=optarg; break;
+     case 's': show_ssim_map=true; break;
+     case 'e': show_psnr_map=true; break;
+-    case 'T': highestTID=atoi(optarg); break;
++    case 'T': highestTID = parse_param(optarg, 0, std::nullopt, "-T"); break;
+     case 'v': verbosity++; break;
+     }
+   }
meta-multimedia/recipes-multimedia/libde265/libde265_1.0.16.bb +3 -1
index 40910633e8..701f0e5f69 100644
@@ -8,7 +8,9 @@ LICENSE = "LGPL-3.0-only & MIT"
 LICENSE_FLAGS = "commercial"
 LIC_FILES_CHKSUM = "file://COPYING;md5=695b556799abb2435c97a113cdca512f"
 
-SRC_URI = "git://github.com/strukturag/libde265.git;branch=master;protocol=https;tag=v${PV}"
+SRC_URI = "git://github.com/strukturag/libde265.git;branch=master;protocol=https;tag=v${PV} \
+           file://CVE-2025-61147.patch \
+           "
 SRCREV = "7ba65889d3d6d8a0d99b5360b028243ba843be3a"
 
 
#2 lore raw

Re: [oe] [meta-multimedia][PATCH 2/7] libde265: patch CVE-2025-61147

Quoted 5 lines · Gyorgy Sarvari via lists.openembedded.org

Details: https://nvd.nist.gov/vuln/detail/CVE-2025-61147

Backport the patch that is referenced by the NVD advisory.

New version 1.0.17 is available which includes fix for this CVE. We can drop this patch and upgrade the recipe[1]

[1] https://lists.openembedded.org/g/openembedded-devel/message/125336

cheers
Ankur

Quoted 140 lines
---
 .../libde265/libde265/CVE-2025-61147.patch    | 103 ++++++++++++++++++
 .../libde265/libde265_1.0.16.bb               |   4 +-
 2 files changed, 106 insertions(+), 1 deletion(-)
 create mode 100644 meta-multimedia/recipes-multimedia/libde265/libde265/CVE-2025-61147.patch
meta-multimedia/recipes-multimedia/libde265/libde265/CVE-2025-61147.patch new file +103 -0
new file mode 100644
index 0000000000..56d48f2a7d
@@ -0,0 +1,103 @@
+From d73508b7578964f2115ddf051b8fe9b4445978d4 Mon Sep 17 00:00:00 2001
+From: Dirk Farin <[email protected]>
+Date: Tue, 9 Sep 2025 15:14:05 +0200
+Subject: [PATCH] check for valid integer command line parameters (#484)
+
+CVE: CVE-2025-61147
+Upstream-Status: Backport [https://github.com/strukturag/libde265/commit/8b17e0930f77db07f55e0b89399a8f054ddbecf7]
+Signed-off-by: Gyorgy Sarvari <[email protected]>
+---
+ CMakeLists.txt   |  2 +-
+ dec265/dec265.cc | 44 +++++++++++++++++++++++++++++++++++++++++---
+ 2 files changed, 42 insertions(+), 4 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4da99216..997945a9 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -5,7 +5,7 @@ project (libde265
+     VERSION 1.0.16
+ )
+
+-set(CMAKE_CXX_STANDARD 11)
++set(CMAKE_CXX_STANDARD 17)
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
+ set(CMAKE_CXX_EXTENSIONS OFF)
+ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+diff --git a/dec265/dec265.cc b/dec265/dec265.cc
+index 79f67cd3..ecf5d131 100644
+--- a/dec265/dec265.cc
++++ b/dec265/dec265.cc
+@@ -27,6 +27,10 @@
+ #define DO_MEMORY_LOGGING 0
+
+ #include "de265.h"
++#include <stdexcept>
++#include <iostream>
++#include <optional>
++
+ #ifdef HAVE_CONFIG_H
+ #include "config.h"
+ #endif
+@@ -563,6 +567,40 @@ void (*volatile __malloc_initialize_hook)(void) = init_my_hooks;
+ #endif
+
+
++int parse_param(const char* arg, std::optional<int> lower_bound, std::optional<int> upper_bound, const char* arg_name)
++{
++  int value;
++
++  try {
++    size_t len;
++    value = std::stoi(optarg, &len);
++    if (arg[len] != 0) {
++      std::cerr << "invalid argument to " << arg_name << "\n";
++      exit(5);
++    }
++  } catch (std::invalid_argument const& ex) {
++    std::cerr << "invalid argument to " << arg_name << "\n";
++    exit(5);
++  }
++  catch (std::out_of_range const& ex) {
++    std::cerr << "argument to -T is out of range\n";
++    exit(5);
++  }
++
++  if (lower_bound && value < *lower_bound) {
++    std::cerr << "argument to " << arg_name << " may not be smaller than " << *lower_bound << "\n";
++    exit(5);
++  }
++
++  if (upper_bound && value > *upper_bound) {
++    std::cerr << "argument to " << arg_name << " may not be larger than " << *upper_bound << "\n";
++    exit(5);
++  }
++
++  return value;
++}
++
++
+ int main(int argc, char** argv)
+ {
+   while (1) {
+@@ -578,9 +616,9 @@ int main(int argc, char** argv)
+
+     switch (c) {
+     case 'q': quiet++; break;
+-    case 't': nThreads=atoi(optarg); break;
++    case 't': nThreads=parse_param(optarg, 0, std::nullopt, "-t"); break;
+     case 'c': check_hash=true; break;
+-    case 'f': max_frames=atoi(optarg); break;
++    case 'f': max_frames=parse_param(optarg, 1, std::nullopt, "-f"); break;
+     case 'o': write_yuv=true; output_filename=optarg; break;
+     case 'h': show_help=true; break;
+     case 'd': dump_headers=true; break;
+@@ -592,7 +630,7 @@ int main(int argc, char** argv)
+     case 'm': measure_quality=true; reference_filename=optarg; break;
+     case 's': show_ssim_map=true; break;
+     case 'e': show_psnr_map=true; break;
+-    case 'T': highestTID=atoi(optarg); break;
++    case 'T': highestTID = parse_param(optarg, 0, std::nullopt, "-T"); break;
+     case 'v': verbosity++; break;
+     }
+   }
meta-multimedia/recipes-multimedia/libde265/libde265_1.0.16.bb +3 -2
index 40910633e8..701f0e5f69 100644
@@ -8,7 +8,9 @@ LICENSE = "LGPL-3.0-only & MIT"
 LICENSE_FLAGS = "commercial"
 LIC_FILES_CHKSUM = "file://COPYING;md5=695b556799abb2435c97a113cdca512f"
 
-SRC_URI = "git://github.com/strukturag/libde265.git;branch=master;protocol=https;tag=v${PV}"
+SRC_URI = "git://github.com/strukturag/libde265.git;branch=master;protocol=https;tag=v${PV} \
+           file://CVE-2025-61147.patch \
+           "
 SRCREV = "7ba65889d3d6d8a0d99b5360b028243ba843be3a"
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#125324): https://lists.openembedded.org/g/openembedded-devel/message/125324
Mute This Topic: https://lists.openembedded.org/mt/118368211/3619737
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

PATCH 3/7 exiv2: mark CVE-2026-27631 patched

In reply to Gyorgy Sarvari

Details: https://nvd.nist.gov/vuln/detail/CVE-2026-27631

Though NVD indicates that 0.28.8 is still vulnerable, that does not seem to be the case: the fix that is referenced by the advisory has been backported[1] to this verison. Due to this, mark this CVE as patched.

[1]: https://github.com/Exiv2/exiv2/commit/21d129c842212c198dd887dbaafc5ce734e9dfad

---
 meta-oe/recipes-support/exiv2/exiv2_0.28.8.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-support/exiv2/exiv2_0.28.8.bb +2 -0
index df0e72f5d6..9369daa805 100644
@@ -36,3 +36,5 @@ do_install_ptest(){
     install -d ${D}${PTEST_PATH}/src
     install ${S}/src/canonmn_int.cpp ${D}${PTEST_PATH}/src
 }
+
+CVE_STATUS[CVE-2026-27631] = "fixed-version: fixed in 0.28.8"
#4 lore raw

PATCH 4/7 ettercap: fix typo in CVE ID

In reply to Gyorgy Sarvari

The CVE fix is correct, but the CVE ID contains a typo. The correct ID is CVE-2026-3606.

---
 .../ettercap/{CVE-2026-3603.patch => CVE-2026-3606.patch}       | 0
 meta-networking/recipes-support/ettercap/ettercap_0.8.4.bb      | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename meta-networking/recipes-support/ettercap/ettercap/{CVE-2026-3603.patch => CVE-2026-3606.patch} (100%)
meta-networking/recipes-support/ettercap/ettercap/CVE-2026-3606.patch renamed from meta-networking/recipes-support/ettercap/ettercap/CVE-2026-3603.patch +0 -0
similarity index 100%
rename from meta-networking/recipes-support/ettercap/ettercap/CVE-2026-3603.patch
rename to meta-networking/recipes-support/ettercap/ettercap/CVE-2026-3606.patch
meta-networking/recipes-support/ettercap/ettercap_0.8.4.bb +1 -1
index b806a77164..6fac3a0b84 100644
@@ -22,7 +22,7 @@ DEPENDS += "ethtool \
 RDEPENDS:${PN} += "bash ethtool libgcc"
 
 SRC_URI = "gitsm://github.com/Ettercap/ettercap;branch=master;protocol=https;tag=v${PV} \
-           file://CVE-2026-3603.patch \
+           file://CVE-2026-3606.patch \
            "
 
 SRCREV = "41da65f4026a9e4cea928e61941b976d9279f508"
#5 lore raw

PATCH 5/7 python-pyjwt: upgrade 2.11.0 -> 2.12.1

In reply to Gyorgy Sarvari

Contains fix for CVE-2026-32597. Since NVD tracks this CVE without version info, mark the CVE explicitly patched.

Changes:
2.12.1:
Add typing_extensions dependency for Python < 3.11

2.12.0:
chore(docs): fix docs build
Annotate PyJWKSet.keys for pyright
fix: close HTTPError to prevent ResourceWarning on Python 3.14
chore: remove superfluous constants
chore(tests): enable mypy
Bump actions/download-artifact from 7 to 8
fix: do not store reference to algorithms dict on PyJWK
Use PyJWK algorithm when encoding without explicit algorithm
Validate the crit (Critical) Header Parameter defined in RFC 7515 §4.1.11. (CVE-2026-32597)

---
 .../{python3-pyjwt_2.11.0.bb => python3-pyjwt_2.12.1.bb}      | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pyjwt_2.11.0.bb => python3-pyjwt_2.12.1.bb} (80%)
meta-python/recipes-devtools/python/python3-pyjwt_2.12.1.bb renamed from meta-python/recipes-devtools/python/python3-pyjwt_2.11.0.bb +3 -1
similarity index 80%
rename from meta-python/recipes-devtools/python/python3-pyjwt_2.11.0.bb
rename to meta-python/recipes-devtools/python/python3-pyjwt_2.12.1.bb
index 4e81efe45f..28eceece97 100644
@@ -5,11 +5,12 @@ HOMEPAGE = "https://github.com/jpadilla/pyjwt"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=e4b56d2c9973d8cf54655555be06e551"
 
-SRC_URI[sha256sum] = "35f95c1f0fbe5d5ba6e43f00271c275f7a1a4db1dab27bf708073b75318ea623"
+SRC_URI[sha256sum] = "c74a7a2adf861c04d002db713dd85f84beb242228e671280bf709d765b03672b"
 
 PYPI_PACKAGE = "pyjwt"
 CVE_PRODUCT = "pyjwt"
 CVE_STATUS[CVE-2025-45768] = "disputed: vulnerability can be avoided if the library is used correctly"
+CVE_STATUS[CVE-2026-32597] = "fixed-version: fixed in 2.12.0"
 
 inherit pypi python_setuptools_build_meta
 
@@ -19,3 +20,4 @@ RDEPENDS:${PN} = "\
 "
 
 BBCLASSEXTEND = "native nativesdk"
+
#6 lore raw

PATCH 6/7 unixodbc: mark CVE-2024-1013 patched

In reply to Gyorgy Sarvari

Details: https://nvd.nist.gov/vuln/detail/CVE-2024-1013

The vulnerability has been patched since 2.3.13[1], however NVD tracks it without version info.

Due to this, mark it patched explicitly.

[1]: https://github.com/lurcher/unixODBC/commit/249bfcc511e89431b910ce2c62ae0b62bb9cc214

---
 meta-oe/recipes-support/unixodbc/unixodbc_2.3.14.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-support/unixodbc/unixodbc_2.3.14.bb +2 -0
index 6f26f7b174..62992f6f50 100644
@@ -46,3 +46,5 @@ do_install:prepend() {
 do_install:append() {
     oe_multilib_header unixodbc.h unixODBC/unixodbc_conf.h
 }
+
+CVE_STATUS[CVE-2024-1013] = "fixed-version: fixed in 2.3.13"
#7 lore raw

PATCH 7/7 libheif: CVE-2026-3949

In reply to Gyorgy Sarvari

Details: https://nvd.nist.gov/vuln/detail/CVE-2026-3949

Backport the patch that is referenced by the NVD report (in the description)

---
 .../libheif/libheif/CVE-2026-3949.patch       | 50 +++++++++++++++++++
 .../libheif/libheif_1.21.2.bb                 |  4 +-
 2 files changed, 53 insertions(+), 1 deletion(-)
 create mode 100644 meta-multimedia/recipes-multimedia/libheif/libheif/CVE-2026-3949.patch
meta-multimedia/recipes-multimedia/libheif/libheif/CVE-2026-3949.patch new file +50 -0
new file mode 100644
index 0000000000..ef5d9c1ee4
@@ -0,0 +1,50 @@
+From cba59e7671a36a78e31c0490efe74ec226918580 Mon Sep 17 00:00:00 2001
+From: Dirk Farin <[email protected]>
+Date: Tue, 24 Feb 2026 00:32:48 +0100
+Subject: [PATCH] vvdec: check that NAL size does not exceed data size (#1712)
+
+CVE: CVE-2026-3949
+Upstream-Status: Backport [https://github.com/strukturag/libheif/commit/b97c8b5f198b27f375127cd597a35f2113544d03]
+Signed-off-by: Gyorgy Sarvari <[email protected]>
+---
+ libheif/plugins/decoder_vvdec.cc | 17 +++++++++++++++++
+ 1 file changed, 17 insertions(+)
+
+diff --git a/libheif/plugins/decoder_vvdec.cc b/libheif/plugins/decoder_vvdec.cc
+index 09515720..14b3e9fd 100644
+--- a/libheif/plugins/decoder_vvdec.cc
++++ b/libheif/plugins/decoder_vvdec.cc
+@@ -55,6 +55,7 @@ struct vvdec_decoder
+   std::string error_message;
+ };
+ 
++static const char kEmptyString[] = "";
+ static const char kSuccess[] = "Success";
+ 
+ static const int VVDEC_PLUGIN_PRIORITY = 100;
+@@ -179,9 +180,25 @@ heif_error vvdec_push_data2(void* decoder_raw, const void* frame_data, size_t fr
+ 
+   const auto* data = (const uint8_t*) frame_data;
+ 
++  if (frame_size < 4) {
++    return {
++      heif_error_Decoder_plugin_error,
++      heif_suberror_End_of_data,
++      kEmptyString
++    };
++  }
++
+   for (;;) {
+     uint32_t size = four_bytes_to_uint32(data[0], data[1], data[2], data[3]);
+ 
++    if (frame_size < 4 + size) {
++      return {
++        heif_error_Decoder_plugin_error,
++        heif_suberror_End_of_data,
++        kEmptyString
++      };
++    }
++
+     data += 4;
+ 
+     std::vector<uint8_t> nalu;
meta-multimedia/recipes-multimedia/libheif/libheif_1.21.2.bb +3 -1
index 7ccac771dc..ab29fa3b02 100644
@@ -6,7 +6,9 @@ LICENSE_FLAGS = "commercial"
 
 COMPATIBLE_MACHINE:powerpc64le = "null"
 
-SRC_URI = "git://github.com/strukturag/libheif.git;protocol=https;branch=master;tag=v${PV}"
+SRC_URI = "git://github.com/strukturag/libheif.git;protocol=https;branch=master;tag=v${PV} \
+           file://CVE-2026-3949.patch \
+           "
 
 SRCREV = "62f1b8c76ed4d8305071fdacbe74ef9717bacac5"