summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-devtools')
-rw-r--r--meta-networking/recipes-devtools/libcoap/libcoap/CVE-2024-0962.patch45
-rw-r--r--meta-networking/recipes-devtools/libcoap/libcoap_4.3.5.bb (renamed from meta-networking/recipes-devtools/libcoap/libcoap_4.3.4.bb)17
-rw-r--r--meta-networking/recipes-devtools/python/python3-scapy_2.6.0.bb (renamed from meta-networking/recipes-devtools/python/python3-scapy_2.5.0.bb)5
3 files changed, 10 insertions, 57 deletions
diff --git a/meta-networking/recipes-devtools/libcoap/libcoap/CVE-2024-0962.patch b/meta-networking/recipes-devtools/libcoap/libcoap/CVE-2024-0962.patch
deleted file mode 100644
index add52483b7..0000000000
--- a/meta-networking/recipes-devtools/libcoap/libcoap/CVE-2024-0962.patch
+++ /dev/null
@@ -1,45 +0,0 @@
1From bf6a303883bde40cf96b960c8574cddd89e71701 Mon Sep 17 00:00:00 2001
2From: Jon Shallow <supjps-libcoap@jpshallow.com>
3Date: Thu, 25 Jan 2024 18:03:17 +0000
4Subject: [PATCH] coap_oscore.c: Fix parsing OSCORE configuration information
5
6A vulnerability was found in obgm libcoap 4.3.4. It has been rated as critical.
7Affected by this issue is the function get_split_entry of the file src/coap_oscore.c of the component Configuration File Handler.
8The manipulation leads to stack-based buffer overflow.
9
10CVE: CVE-2024-0962
11
12Upstream-Status: Backport [https://github.com/obgm/libcoap/pull/1311]
13
14Signed-off-by: alperak <alperyasinak1@gmail.com>
15---
16 src/coap_oscore.c | 5 +++--
17 1 file changed, 3 insertions(+), 2 deletions(-)
18
19diff --git a/src/coap_oscore.c b/src/coap_oscore.c
20index 83f785c92..e0fb22947 100644
21--- a/src/coap_oscore.c
22+++ b/src/coap_oscore.c
23@@ -1678,11 +1678,12 @@ get_split_entry(const char **start,
24 oscore_value_t *value) {
25 const char *begin = *start;
26 const char *end;
27+ const char *kend;
28 const char *split;
29 size_t i;
30
31 retry:
32- end = memchr(begin, '\n', size);
33+ kend = end = memchr(begin, '\n', size);
34 if (end == NULL)
35 return 0;
36
37@@ -1693,7 +1694,7 @@ get_split_entry(const char **start,
38
39 if (begin[0] == '#' || (end - begin) == 0) {
40 /* Skip comment / blank line */
41- size -= end - begin + 1;
42+ size -= kend - begin + 1;
43 begin = *start;
44 goto retry;
45 }
diff --git a/meta-networking/recipes-devtools/libcoap/libcoap_4.3.4.bb b/meta-networking/recipes-devtools/libcoap/libcoap_4.3.5.bb
index 2f5d192a77..a4e5f5ca46 100644
--- a/meta-networking/recipes-devtools/libcoap/libcoap_4.3.4.bb
+++ b/meta-networking/recipes-devtools/libcoap/libcoap_4.3.5.bb
@@ -2,18 +2,16 @@ SUMMARY = "A C implementation of the Constrained Application Protocol"
2DESCRIPTION = "libcoap implements a lightweight application-protocol for \ 2DESCRIPTION = "libcoap implements a lightweight application-protocol for \
3devices that are constrained their resources such as computing power, \ 3devices that are constrained their resources such as computing power, \
4RF range, memory, bandwith, or network packet sizes." 4RF range, memory, bandwith, or network packet sizes."
5HOMEPAGE ="https://libcoap.net/" 5HOMEPAGE = "https://libcoap.net/"
6 6
7LICENSE = "BSD-2-Clause & BSD-3-Clause" 7LICENSE = "BSD-2-Clause & BSD-3-Clause"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=1978dbc41673ab1c20e64b287c8317bc" 8LIC_FILES_CHKSUM = "file://LICENSE;md5=9aa68c0f6785376aa8ec7f4f1aa6ae3c"
9 9
10SRC_URI = "git://github.com/obgm/libcoap.git;branch=main;protocol=https \ 10SRC_URI = "git://github.com/obgm/libcoap.git;branch=main;protocol=https \
11 file://run-ptest \ 11 file://run-ptest \
12 file://CVE-2024-0962.patch \
13 " 12 "
14SRCREV = "5fd2f89ef068214130e5d60b7087ef48711fa615" 13SRCREV = "7cf7465b784baded4de183290c547d582becfd28"
15 14
16S = "${WORKDIR}/git"
17 15
18inherit autotools manpages pkgconfig ptest 16inherit autotools manpages pkgconfig ptest
19 17
@@ -24,13 +22,14 @@ PACKAGECONFIG ?= "\
24 ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \ 22 ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \
25" 23"
26PACKAGECONFIG[async] = "--enable-async,--disable-async" 24PACKAGECONFIG[async] = "--enable-async,--disable-async"
27PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls,,,openssl mbedtls" 25PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls,,,openssl mbedtls wolfssl"
28PACKAGECONFIG[manpages] = "--enable-documentation --enable-doxygen --enable-manpages,--disable-documentation,asciidoc-native doxygen-native graphviz-native" 26PACKAGECONFIG[manpages] = "--enable-documentation --enable-doxygen --enable-manpages,--disable-documentation,asciidoc-native doxygen-native graphviz-native"
29PACKAGECONFIG[mbedtls] = "--with-mbedtls,--without-mbedtls,mbedtls,,,gnutls openssl" 27PACKAGECONFIG[mbedtls] = "--with-mbedtls,--without-mbedtls,mbedtls,,,gnutls openssl wolfssl"
30PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl,,,gnutls mbedtls" 28PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl,,,gnutls mbedtls wolfssl"
31PACKAGECONFIG[small-stack] = "--enable-small-stack,--disable-small-stack" 29PACKAGECONFIG[small-stack] = "--enable-small-stack,--disable-small-stack"
32PACKAGECONFIG[tcp] = "--enable-tcp,--disable-tcp" 30PACKAGECONFIG[tcp] = "--enable-tcp,--disable-tcp"
33PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,cunit" 31PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,cunit"
32PACKAGECONFIG[wolfssl] = "--with-wolfssl,--without-wolfssl,wolfssl,,,gnutls mbedtls openssl"
34 33
35EXTRA_OECONF = "\ 34EXTRA_OECONF = "\
36 --with-epoll --enable-add-default-names \ 35 --with-epoll --enable-add-default-names \
@@ -43,7 +42,7 @@ python () {
43 d.setVar('DISABLE_STATIC', '') 42 d.setVar('DISABLE_STATIC', '')
44} 43}
45 44
46export SGML_CATALOG_FILES="file://${STAGING_ETCDIR_NATIVE}/xml/catalog" 45export SGML_CATALOG_FILES = "file://${STAGING_ETCDIR_NATIVE}/xml/catalog"
47 46
48do_compile:prepend() { 47do_compile:prepend() {
49 oe_runmake update-map-file 48 oe_runmake update-map-file
diff --git a/meta-networking/recipes-devtools/python/python3-scapy_2.5.0.bb b/meta-networking/recipes-devtools/python/python3-scapy_2.6.0.bb
index d57cb977e4..fdef5473ef 100644
--- a/meta-networking/recipes-devtools/python/python3-scapy_2.5.0.bb
+++ b/meta-networking/recipes-devtools/python/python3-scapy_2.6.0.bb
@@ -16,15 +16,14 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
16# If you want ptest support, use the git repo 16# If you want ptest support, use the git repo
17# UTscapy does not exist in the pypi pkg 17# UTscapy does not exist in the pypi pkg
18# 18#
19SRCREV = "0474c37bf1d147c969173d52ab3ac76d2404d981" 19SRCREV = "f7a64114b35fd8ee63ce07290f8a2dffd52b215f"
20SRC_URI = "git://github.com/secdev/scapy.git;branch=master;protocol=https \ 20SRC_URI = "git://github.com/secdev/scapy.git;branch=master;protocol=https \
21 file://run-ptest" 21 file://run-ptest"
22 22
23S = "${WORKDIR}/git"
24 23
25UPSTREAM_CHECK_COMMITS = "1" 24UPSTREAM_CHECK_COMMITS = "1"
26 25
27inherit setuptools3 ptest 26inherit python_setuptools_build_meta ptest
28 27
29do_install:append() { 28do_install:append() {
30 mv ${D}${bindir}/scapy ${D}${bindir}/scapy3 29 mv ${D}${bindir}/scapy ${D}${bindir}/scapy3