diff options
Diffstat (limited to 'meta-networking/recipes-devtools')
-rw-r--r-- | meta-networking/recipes-devtools/libcoap/libcoap/CVE-2024-0962.patch | 45 | ||||
-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 @@ | |||
1 | From bf6a303883bde40cf96b960c8574cddd89e71701 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jon Shallow <supjps-libcoap@jpshallow.com> | ||
3 | Date: Thu, 25 Jan 2024 18:03:17 +0000 | ||
4 | Subject: [PATCH] coap_oscore.c: Fix parsing OSCORE configuration information | ||
5 | |||
6 | A vulnerability was found in obgm libcoap 4.3.4. It has been rated as critical. | ||
7 | Affected by this issue is the function get_split_entry of the file src/coap_oscore.c of the component Configuration File Handler. | ||
8 | The manipulation leads to stack-based buffer overflow. | ||
9 | |||
10 | CVE: CVE-2024-0962 | ||
11 | |||
12 | Upstream-Status: Backport [https://github.com/obgm/libcoap/pull/1311] | ||
13 | |||
14 | Signed-off-by: alperak <alperyasinak1@gmail.com> | ||
15 | --- | ||
16 | src/coap_oscore.c | 5 +++-- | ||
17 | 1 file changed, 3 insertions(+), 2 deletions(-) | ||
18 | |||
19 | diff --git a/src/coap_oscore.c b/src/coap_oscore.c | ||
20 | index 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" | |||
2 | DESCRIPTION = "libcoap implements a lightweight application-protocol for \ | 2 | DESCRIPTION = "libcoap implements a lightweight application-protocol for \ |
3 | devices that are constrained their resources such as computing power, \ | 3 | devices that are constrained their resources such as computing power, \ |
4 | RF range, memory, bandwith, or network packet sizes." | 4 | RF range, memory, bandwith, or network packet sizes." |
5 | HOMEPAGE ="https://libcoap.net/" | 5 | HOMEPAGE = "https://libcoap.net/" |
6 | 6 | ||
7 | LICENSE = "BSD-2-Clause & BSD-3-Clause" | 7 | LICENSE = "BSD-2-Clause & BSD-3-Clause" |
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1978dbc41673ab1c20e64b287c8317bc" | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=9aa68c0f6785376aa8ec7f4f1aa6ae3c" |
9 | 9 | ||
10 | SRC_URI = "git://github.com/obgm/libcoap.git;branch=main;protocol=https \ | 10 | SRC_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 | " |
14 | SRCREV = "5fd2f89ef068214130e5d60b7087ef48711fa615" | 13 | SRCREV = "7cf7465b784baded4de183290c547d582becfd28" |
15 | 14 | ||
16 | S = "${WORKDIR}/git" | ||
17 | 15 | ||
18 | inherit autotools manpages pkgconfig ptest | 16 | inherit 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 | " |
26 | PACKAGECONFIG[async] = "--enable-async,--disable-async" | 24 | PACKAGECONFIG[async] = "--enable-async,--disable-async" |
27 | PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls,,,openssl mbedtls" | 25 | PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls,,,openssl mbedtls wolfssl" |
28 | PACKAGECONFIG[manpages] = "--enable-documentation --enable-doxygen --enable-manpages,--disable-documentation,asciidoc-native doxygen-native graphviz-native" | 26 | PACKAGECONFIG[manpages] = "--enable-documentation --enable-doxygen --enable-manpages,--disable-documentation,asciidoc-native doxygen-native graphviz-native" |
29 | PACKAGECONFIG[mbedtls] = "--with-mbedtls,--without-mbedtls,mbedtls,,,gnutls openssl" | 27 | PACKAGECONFIG[mbedtls] = "--with-mbedtls,--without-mbedtls,mbedtls,,,gnutls openssl wolfssl" |
30 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl,,,gnutls mbedtls" | 28 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl,,,gnutls mbedtls wolfssl" |
31 | PACKAGECONFIG[small-stack] = "--enable-small-stack,--disable-small-stack" | 29 | PACKAGECONFIG[small-stack] = "--enable-small-stack,--disable-small-stack" |
32 | PACKAGECONFIG[tcp] = "--enable-tcp,--disable-tcp" | 30 | PACKAGECONFIG[tcp] = "--enable-tcp,--disable-tcp" |
33 | PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,cunit" | 31 | PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,cunit" |
32 | PACKAGECONFIG[wolfssl] = "--with-wolfssl,--without-wolfssl,wolfssl,,,gnutls mbedtls openssl" | ||
34 | 33 | ||
35 | EXTRA_OECONF = "\ | 34 | EXTRA_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 | ||
46 | export SGML_CATALOG_FILES="file://${STAGING_ETCDIR_NATIVE}/xml/catalog" | 45 | export SGML_CATALOG_FILES = "file://${STAGING_ETCDIR_NATIVE}/xml/catalog" |
47 | 46 | ||
48 | do_compile:prepend() { | 47 | do_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 | # |
19 | SRCREV = "0474c37bf1d147c969173d52ab3ac76d2404d981" | 19 | SRCREV = "f7a64114b35fd8ee63ce07290f8a2dffd52b215f" |
20 | SRC_URI = "git://github.com/secdev/scapy.git;branch=master;protocol=https \ | 20 | SRC_URI = "git://github.com/secdev/scapy.git;branch=master;protocol=https \ |
21 | file://run-ptest" | 21 | file://run-ptest" |
22 | 22 | ||
23 | S = "${WORKDIR}/git" | ||
24 | 23 | ||
25 | UPSTREAM_CHECK_COMMITS = "1" | 24 | UPSTREAM_CHECK_COMMITS = "1" |
26 | 25 | ||
27 | inherit setuptools3 ptest | 26 | inherit python_setuptools_build_meta ptest |
28 | 27 | ||
29 | do_install:append() { | 28 | do_install:append() { |
30 | mv ${D}${bindir}/scapy ${D}${bindir}/scapy3 | 29 | mv ${D}${bindir}/scapy ${D}${bindir}/scapy3 |