Skip to contentSkip to conversation

ez-ipupdate: patch CVE-2003-0887

PATCH New Gyorgy Sarvari 1 participant 5 messages Feb 13

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 ez-ipupdate: patch CVE-2003-0887

Details: https://nvd.nist.gov/vuln/detail/CVE-2003-0887

The vulnerability is about the default (example) configurations, which place cache files into the /tmp folder, that is world-writeable. The recommendation would be to place them to a more secure folder.

The recipe however does not install these example configurations, and as such it is not vulnerable either.

Just to make sure, patch these folders to a non-tmp folder (and also install that folder, empty).

Some more discussion about the vulnerability:
https://bugzilla.suse.com/show_bug.cgi?id=48161

(cherry picked from commit dd81ffdb685bd9c2ce1b27d0e5ff3f8e5551e3ad)
---
 .../ez-ipupdate/ez-ipupdate_3.0.11b7.bb       |   7 +
 .../ez-ipupdate/files/CVE-2003-0887.patch     | 158 ++++++++++++++++++
 2 files changed, 165 insertions(+)
 create mode 100644 meta-networking/recipes-connectivity/ez-ipupdate/files/CVE-2003-0887.patch
meta-networking/recipes-connectivity/ez-ipupdate/ez-ipupdate_3.0.11b7.bb +7 -0
index 8648f2e0e6..4287bf7d3d 100644
@@ -9,8 +9,15 @@ SRC_URI = "http://sourceforge.net/projects/ez-ipupdate/files/${BPN}/${PV}/${BPN}
     file://cache_file.c.patch \
     file://conf_file.c.patch \
     file://wformat.patch \
+    file://CVE-2003-0887.patch \
     "
 SRC_URI[md5sum] = "525be4550b4461fdf105aed8e753b020"
 SRC_URI[sha256sum] = "a15ec0dc0b78ec7578360987c68e43a67bc8d3591cbf528a323588830ae22c20"
 
 inherit autotools pkgconfig
+
+do_install:append(){
+    install -m 0744 -d ${D}${localstatedir}/lib/ez-ipupdate
+}
+
+FILES:${PN} += "${localstatedir}/lib/ez-ipupdate"
meta-networking/recipes-connectivity/ez-ipupdate/files/CVE-2003-0887.patch new file +158 -0

158 lines not on this page · raw message

#1 lore raw

PATCH 2/5 libeml: patch CVE-2015-8791

Details: https://nvd.nist.gov/vuln/detail/CVE-2015-8791

Backport the patch that is referenced by the NVD advisory.

---
 .../libebml/libebml/CVE-2015-8791.patch       | 29 +++++++++++++++++++
 .../recipes-mkv/libebml/libebml_1.3.0.bb      | 10 +++----
 2 files changed, 34 insertions(+), 5 deletions(-)
 create mode 100644 meta-multimedia/recipes-mkv/libebml/libebml/CVE-2015-8791.patch
meta-multimedia/recipes-mkv/libebml/libebml/CVE-2015-8791.patch new file +29 -0
new file mode 100644
index 0000000000..e007e2fb92
@@ -0,0 +1,29 @@
+From 22b87d8217606d891e73fc59a598bae830e61d65 Mon Sep 17 00:00:00 2001
+From: Moritz Bunkus <[email protected]>
+Date: Tue, 20 Oct 2015 14:49:44 +0200
+Subject: [PATCH] EbmlElement: don't read beyond end of buffer when reading
+ variable length integers
+
+CVE: CVE-2015-8791
+Upstream-Status: Backport [https://github.com/Matroska-Org/libebml/commit/24e5cd7c666b1ddd85619d60486db0a5481c1b90]
+Signed-off-by: Gyorgy Sarvari <[email protected]>
+---
+ src/EbmlElement.cpp | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/EbmlElement.cpp b/src/EbmlElement.cpp
+index 4b96d06..0969468 100644
+--- a/src/EbmlElement.cpp
++++ b/src/EbmlElement.cpp
+@@ -149,6 +149,11 @@ uint64 ReadCodedSizeValue(const binary * InBuffer, uint32 & BufferSize, uint64 &
+ 			// ID found
+ 			PossibleSizeLength = SizeIdx + 1;
+ 			SizeBitMask >>= SizeIdx;
++
++			// Guard against invalid memory accesses with incomplete IDs.
++			if (PossibleSizeLength > BufferSize)
++				break;
++
+ 			for (SizeIdx = 0; SizeIdx < PossibleSizeLength; SizeIdx++) {
+ 				PossibleSize[SizeIdx] = InBuffer[SizeIdx];
+ 			}
meta-multimedia/recipes-mkv/libebml/libebml_1.3.0.bb +5 -5
index 744486fa2a..9caf25205b 100644
@@ -2,11 +2,11 @@ SUMMARY = "libebml is a C++ libary to parse EBML files"
 LICENSE = "LGPL-2.1-only"
 LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=7fbc338309ac38fefcd64b04bb903e34"
 
-SRC_URI = "\
-    http://dl.matroska.org/downloads/libebml/libebml-${PV}.tar.bz2 \
-    file://ldflags.patch \
-    file://override-uname.patch \
-"
+SRC_URI = "http://dl.matroska.org/downloads/libebml/libebml-${PV}.tar.bz2 \
+           file://ldflags.patch \
+           file://override-uname.patch \
+           file://CVE-2015-8791.patch \
+           "
 SRC_URI[md5sum] = "efec729bf5a51e649e1d9d1f61c0ae7a"
 SRC_URI[sha256sum] = "83b074d6b62715aa0080406ea84d33df2e44b5d874096640233a4db49b8096de"
 
#2 lore raw

PATCH 3/5 mercurial: ignore CVE-2022-43410

In reply to Gyorgy Sarvari

Details: https://nvd.nist.gov/vuln/detail/CVE-2022-43410

The vulnerability affects only the Mercurial Jenkins plugin, which is a different project. This CVE can be ignored in this recipe.

---
 meta-oe/recipes-devtools/mercurial/mercurial_6.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-devtools/mercurial/mercurial_6.1.bb +2 -0
index 3abecc3054..d118fed6ad 100644
@@ -35,3 +35,5 @@ FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}"
 
 FILES:${PN}-python = "${nonarch_libdir}/${PYTHON_DIR}"
 
+# The CVE is for Jenkins plugin, not the SCM
+CVE_CHECK_IGNORE = "CVE-2022-43410"
#3 lore raw

PATCH 4/5 python3-django: upgrade 4.2.27 -> 4.2.28

In reply to Gyorgy Sarvari

Contains fixes for CVE-2025-13473, CVE-2025-14550, CVE-2026-1207, CVE-2026-1285, CVE-2026-1287 and CVE-2026-1312

---
 .../0001-add-back-setuptools-support.patch                      | 0
 .../{python3-django_4.2.27.bb => python3-django_4.2.28.bb}      | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-django-4.2.27 => python3-django-4.2.28}/0001-add-back-setuptools-support.patch (100%)
 rename meta-python/recipes-devtools/python/{python3-django_4.2.27.bb => python3-django_4.2.28.bb} (83%)
meta-python/recipes-devtools/python/python3-django-4.2.28/0001-add-back-setuptools-support.patch renamed from meta-python/recipes-devtools/python/python3-django-4.2.27/0001-add-back-setuptools-support.patch +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-django-4.2.27/0001-add-back-setuptools-support.patch
rename to meta-python/recipes-devtools/python/python3-django-4.2.28/0001-add-back-setuptools-support.patch
meta-python/recipes-devtools/python/python3-django_4.2.28.bb renamed from meta-python/recipes-devtools/python/python3-django_4.2.27.bb +1 -1
similarity index 83%
rename from meta-python/recipes-devtools/python/python3-django_4.2.27.bb
rename to meta-python/recipes-devtools/python/python3-django_4.2.28.bb
index fba21cd75f..5357d12338 100644
@@ -3,7 +3,7 @@ require python-django.inc
 inherit pypi setuptools3
 
 SRC_URI += "file://0001-add-back-setuptools-support.patch"
-SRC_URI[sha256sum] = "b865fbe0f4a3d1ee36594c5efa42b20db3c8bbb10dff0736face1c6e4bda5b92"
+SRC_URI[sha256sum] = "a4b9cd881991add394cafa8bb3b11ad1742d1e1470ba99c3ef53dc540316ccfe"
 
 RDEPENDS:${PN} += "\
     ${PYTHON_PN}-sqlparse \
#4 lore raw

PATCH 5/5 poppler: mark CVE-2022-38171 patched

In reply to Gyorgy Sarvari

Details: https://nvd.nist.gov/vuln/detail/CVE-2022-38171

This is the same as CVE-2021-30860, but that one was primarily filed against Apple software (and some other related projects).

The patch that fixes this vulenrability is already added to the recipe, just extend its CVE tag

---
 .../poppler/0001-JBIG2Stream-Fix-crash-on-broken-file.patch     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/poppler/poppler/0001-JBIG2Stream-Fix-crash-on-broken-file.patch +1 -1
index 4a8ea233c8..3990f4766b 100644
@@ -7,7 +7,7 @@ https://github.com/jeffssh/CVE-2021-30860
 
 Thanks to David Warren for the heads up
 
-CVE: CVE-2021-30860
+CVE: CVE-2021-30860 CVE-2022-38171
 
 References:
 https://nvd.nist.gov/vuln/detail/CVE-2021-30860