Skip to contentSkip to conversation

libwebsockets: upgrade 4.3.5 -> 4.5.2

PATCH New Peter Marko 1 participant 1 message Dec 15, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 libwebsockets: upgrade 4.3.5 -> 4.5.2

From: Peter Marko <[email protected]>

Handles CVE-2025-11677, CVE-2025-11678, CVE-2025-11679 and CVE-2025-11680.

* drop patches included in this release
* update license
* add packageconfig for examples as those don't build

License-Update: added new license, see:
https://libwebsockets.org/git/libwebsockets/commit?id=e3dca87f23e8f783e1008b54829b39f9d7b083df

---
v2: added additional CVE reference

 .../0001-sll_protocol-may-be-be16.patch       |   29 -
 .../0002-allow-build-with-cmake-4.patch       | 1554 -----------------
 ...ockets_4.3.5.bb => libwebsockets_4.5.2.bb} |   12 +-
 3 files changed, 5 insertions(+), 1590 deletions(-)
 delete mode 100644 meta-oe/recipes-connectivity/libwebsockets/libwebsockets/0001-sll_protocol-may-be-be16.patch
 delete mode 100644 meta-oe/recipes-connectivity/libwebsockets/libwebsockets/0002-allow-build-with-cmake-4.patch
 rename meta-oe/recipes-connectivity/libwebsockets/{libwebsockets_4.3.5.bb => libwebsockets_4.5.2.bb} (91%)
meta-oe/recipes-connectivity/libwebsockets/libwebsockets/0001-sll_protocol-may-be-be16.patch deleted +0 -29
deleted file mode 100644
index c27644ef7d..0000000000
@@ -1,29 +0,0 @@
-From 99e3ad14c60599e5d73e4d5597c95c3b91780547 Mon Sep 17 00:00:00 2001
-From: Andy Green <[email protected]>
-Date: Wed, 22 Jan 2025 10:08:55 +0000
-Subject: [PATCH] sll_protocol may be be16
-
-Google's fuzzer platform blows a warning
-
-/src/libwebsockets/lib/plat/unix/unix-sockets.c:497:21: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to '__be16' (aka 'unsigned short') [-Wimplicit-int-conversion]
-  497 |         sll.sll_protocol = (uint32_t)(htons((uint16_t)0x800));
-
-Upstream-Status: Backport [https://github.com/warmcat/libwebsockets/commit/2ffb8c6d5eaab509a133f3a6d922e170ae95dd59]
-Signed-off-by: Khem Raj <[email protected]>
----
- lib/plat/unix/unix-sockets.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/lib/plat/unix/unix-sockets.c b/lib/plat/unix/unix-sockets.c
-index 1a40c9cf..61292ff8 100644
---- a/lib/plat/unix/unix-sockets.c
-+++ b/lib/plat/unix/unix-sockets.c
-@@ -453,7 +453,7 @@ lws_plat_rawudp_broadcast(uint8_t *p, const uint8_t *canned, size_t canned_len,
- 
- 	memset(&sll, 0, sizeof(sll));
- 	sll.sll_family = AF_PACKET;
--	sll.sll_protocol = (uint32_t)(htons((uint16_t)0x800));
-+	sll.sll_protocol = (uint16_t)(htons((uint16_t)0x800));
- 	sll.sll_halen = 6;
- 	sll.sll_ifindex = (int)if_nametoindex(iface);
- 	memset(sll.sll_addr, 0xff, 6);
meta-oe/recipes-connectivity/libwebsockets/libwebsockets/0002-allow-build-with-cmake-4.patch deleted +0 -1554

1,554 lines not on this page · raw message

meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.5.2.bb renamed from meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.5.bb +5 -7
similarity index 91%
rename from meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.5.bb
rename to meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.5.2.bb
index afe2124f65..19ac6be8eb 100644
@@ -1,16 +1,13 @@
 SUMMARY = "Canonical libwebsockets.org websocket library"
 HOMEPAGE = "https://libwebsockets.org/"
-LICENSE = "MIT & Zlib & BSD-3-Clause & Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=382bfdf329e774859fd401eaf850d29b"
+LICENSE = "MIT & Zlib & BSD-3-Clause & Apache-2.0 & OFL-1.1"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b5d391cc7929bcba238f9ba6805f7574"
 
 DEPENDS = "zlib"
 DEPENDS:append:class-native = " libcap-native"
 
-SRCREV = "ab9df9cfc39de7a49967f18387b6b76310947442"
-SRC_URI = "git://github.com/warmcat/libwebsockets.git;protocol=https;branch=v4.3-stable \
-           file://0001-sll_protocol-may-be-be16.patch \
-           file://0002-allow-build-with-cmake-4.patch \
-           "
+SRCREV = "85c6f7959fd40d8aaf7a50be3c9b75f08389a01c"
+SRC_URI = "git://github.com/warmcat/libwebsockets.git;protocol=https;branch=v4.5-stable;tag=v${PV}"
 
 UPSTREAM_CHECK_URI = "https://github.com/warmcat/${BPN}/releases"
 UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
@@ -28,6 +25,7 @@ PACKAGECONFIG[server] = "-DLWS_WITHOUT_SERVER=OFF,-DLWS_WITHOUT_SERVER=ON,"
 PACKAGECONFIG[ssl] = "-DLWS_WITH_SSL=ON,-DLWS_WITH_SSL=OFF,openssl"
 PACKAGECONFIG[static] = "-DLWS_WITH_STATIC=ON,-DLWS_WITH_STATIC=OFF -DLWS_LINK_TESTAPPS_DYNAMIC=ON,"
 PACKAGECONFIG[systemd] = "-DLWS_WITH_SDEVENT=ON,-DLWS_WITH_SDEVENT=OFF,systemd"
+PACKAGECONFIG[examples] = "-DLWS_WITH_MINIMAL_EXAMPLES=ON,-DLWS_WITH_MINIMAL_EXAMPLES=OFF"
 
 python __anonymous() {
   if bb.utils.contains('PACKAGECONFIG', 'systemd', True, False, d) and not bb.utils.contains('DISTRO_FEATURES', 'systemd', True, False, d):