curl: Security Fix for CVE-2026-13608
PATCH 1/6 curl: Security Fix for CVE-2026-13608
From: Siddharth Doshi <[email protected]>
Picking patch as per [1], and same patch is mentioned in [2]
[1] https://curl.se/docs/CVE-2026-13608.html
[2] https://security-tracker.debian.org/tracker/CVE-2026-13608
--- .../curl/curl/CVE-2026-13608.patch | 48 +++++++++++++++++++ meta/recipes-support/curl/curl_8.19.0.bb | 1 + 2 files changed, 49 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-13608.patch
meta/recipes-support/curl/curl/CVE-2026-13608.patch new file +48 -0
@@ -0,0 +1,48 @@ +From 25df759f0f0c1aeaee066a4502bb36a8a86fb22e Mon Sep 17 00:00:00 2001 +From: Daniel Stenberg <[email protected]> +Date: Mon, 29 Jun 2026 10:44:47 +0200 +Subject: [PATCH 1/5] openldap: handle Curl_sasl_continue() returns better + +Similar to how it gets treated already in other protocol handlers. + +Follow-up to eeca818b1e8d1e61c2d4 + +Reported-by: Eunsoo Kim +Closes #22213 + +Upstream-Status: Backport [https://github.com/curl/curl/commit/ea71c3b6b60e563651ea8596a975aef0c8199519] +CVE: CVE-2026-13608 +Signed-off-by: Siddharth Doshi <[email protected]> +--- + lib/openldap.c | 15 +++++++++++++-- + 1 file changed, 13 insertions(+), 2 deletions(-) + +diff --git a/lib/openldap.c b/lib/openldap.c +index 95f7681..4a1e93a 100644 +--- a/lib/openldap.c ++++ b/lib/openldap.c +@@ -778,8 +778,19 @@ static CURLcode oldap_state_sasl_resp(struct Curl_easy *data, + } + else { + result = Curl_sasl_continue(&li->sasl, data, code, &progress); +- if(!result && progress != SASL_INPROGRESS) +- oldap_state(data, li, OLDAP_STOP); ++ if(!result) { ++ switch(progress) { ++ case SASL_DONE: ++ oldap_state(data, li, OLDAP_STOP); /* Authenticated */ ++ break; ++ case SASL_IDLE: /* No mechanism left after cancellation */ ++ failf(data, "Authentication cancelled"); ++ result = CURLE_LOGIN_DENIED; ++ break; ++ default: ++ break; ++ } ++ } + } + + if(li->servercred) +-- +2.34.1 +
meta/recipes-support/curl/curl_8.19.0.bb +1 -0
@@ -27,6 +27,7 @@ SRC_URI = " \ file://CVE-2026-8927.patch \ file://CVE-2026-8932-dependent.patch \ file://CVE-2026-8932.patch \ + file://CVE-2026-13608.patch \ " SRC_URI:append:class-nativesdk = " \
Signature · 1 line
2.34.1
PATCH 2/6 curl: Security Fix for CVE-2026-18924
From: Siddharth Doshi <[email protected]>
Picking patch as per [1], and same patch is mentioned in [2]
[1] https://curl.se/docs/CVE-2026-18924.html
[2] https://security-tracker.debian.org/tracker/CVE-2026-18924
--- .../curl/curl/CVE-2026-18924.patch | 39 +++++++++++++++++++ meta/recipes-support/curl/curl_8.19.0.bb | 1 + 2 files changed, 40 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-18924.patch
meta/recipes-support/curl/curl/CVE-2026-18924.patch new file +39 -0
@@ -0,0 +1,39 @@ +From 90325ff0444cbdff368bda5d26d6405a0bb6ee43 Mon Sep 17 00:00:00 2001 +From: Daniel Stenberg <[email protected]> +Date: Wed, 5 Aug 2026 10:02:53 +0200 +Subject: [PATCH] http2: make server push transfers inherit share from parent + +Reported-by: Stephan Zeisberg +Closes #22488 + +Upstream-Status: Backport [https://github.com/curl/curl/commit/90325ff0444cbdff368bda5d26d6405a0bb6ee43] +CVE: CVE-2026-18924 +Signed-off-by: Siddharth Doshi <[email protected]> +--- + lib/http2.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/lib/http2.c b/lib/http2.c +index e1c5798..2ef1c28 100644 +--- a/lib/http2.c ++++ b/lib/http2.c +@@ -46,6 +46,7 @@ + #include "bufref.h" + #include "curlx/dynbuf.h" + #include "headers.h" ++#include "curl_share.h" + + #if (NGHTTP2_VERSION_NUM < 0x010c00) + #error too old nghttp2 version, upgrade! +@@ -709,6 +710,8 @@ static struct Curl_easy *h2_duphandle(struct Curl_cfilter *cf, + struct h2_stream_ctx *second_stream; + http2_data_setup(cf, second, &second_stream); + second->state.priority.weight = data->state.priority.weight; ++ if(data->share) ++ (void)Curl_share_easy_link(second, data->share); + } + return second; + } +-- +2.34.1 +
meta/recipes-support/curl/curl_8.19.0.bb +1 -0
@@ -28,6 +28,7 @@ SRC_URI = " \ file://CVE-2026-8932-dependent.patch \ file://CVE-2026-8932.patch \ file://CVE-2026-13608.patch \ + file://CVE-2026-18924.patch \ " SRC_URI:append:class-nativesdk = " \
Signature · 1 line
2.34.1
Re: [OE-core][wrynose][PATCH 2/6] curl: Security Fix for CVE-2026-18924
Quoted 7 lines · Siddharth Doshi via lists.openembedded.org
From: Siddharth Doshi <[email protected]>
Picking patch as per [1], and same patch is mentioned in [2]
[1] https://curl.se/docs/CVE-2026-18924.html
[2] https://security-tracker.debian.org/tracker/CVE-2026-18924
Quoted 6 lines
Signed-off-by Siddharth Doshi <[email protected]>--- .../curl/curl/CVE-2026-18924.patch | 39 +++++++++++++++++++ meta/recipes-support/curl/curl_8.19.0.bb | 1 + 2 files changed, 40 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-18924.patch
Hello,
I could reproduce the same issue as the scarthgap patch, I dropped this
wrynose patch from my branch:
See https://lore.kernel.org/all/CA%2BchaQdq4NaDUJN7Zuxnmdv6EH0%[email protected]/
If/when sending a fixed series, be mindful of the recent merges on wrynose, I took the patches in the series I could apply.
Regards,
Signature · 2 lines
Yoann Congal Smile ECS
PATCH 3/6 curl: Security Fix for CVE-2026-80229
In reply to SiddharthFrom: Siddharth Doshi <[email protected]>
Picking patch as per [1], and same patch is mentioned in [2]
[1] https://curl.se/docs/CVE-2026-80229.html
[2] https://security-tracker.debian.org/tracker/CVE-2026-80229
--- .../curl/curl/CVE-2026-80229.patch | 35 +++++++++++++++++++ meta/recipes-support/curl/curl_8.19.0.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-80229.patch
meta/recipes-support/curl/curl/CVE-2026-80229.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 272d5928188bc2171fdeba81027b24145a033fb2 Mon Sep 17 00:00:00 2001 +From: Daniel Stenberg <[email protected]> +Date: Tue, 25 Aug 2026 11:14:30 +0200 +Subject: [PATCH 3/5] openssl: avoid conn reuse if provider is used + +Reported-by: Stanislav Fort + +Closes #22665 + +Upstream-Status: Backport [https://github.com/curl/curl/commit/7ea37abc6ac0120ba5f6d94be8d196f7cf1506bb] +CVE: CVE-2026-80229 +Signed-off-by: Siddharth Doshi <[email protected]> +--- + lib/vtls/openssl.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c +index 9cbab14..1d0f7b7 100644 +--- a/lib/vtls/openssl.c ++++ b/lib/vtls/openssl.c +@@ -3753,6 +3753,11 @@ CURLcode Curl_ossl_ctx_init(struct ossl_ctx *octx, + ossl_strerror(ERR_peek_error(), error_buffer, sizeof(error_buffer))); + return CURLE_OUT_OF_MEMORY; + } ++#ifdef OPENSSL_HAS_PROVIDERS ++ if(data->state.libctx) ++ /* forbid connection reuse with provider/engine use */ ++ connclose(data->conn, "forbid connection reuse with provider/engine use"); ++#endif + + if(cb_setup) { + result = cb_setup(cf, data, cb_user_data); +-- +2.34.1 +
meta/recipes-support/curl/curl_8.19.0.bb +1 -0
@@ -29,6 +29,7 @@ SRC_URI = " \ file://CVE-2026-8932.patch \ file://CVE-2026-13608.patch \ file://CVE-2026-18924.patch \ + file://CVE-2026-80229.patch \ " SRC_URI:append:class-nativesdk = " \
Signature · 1 line
2.34.1
PATCH 4/6 curl: Security Fix for CVE-2026-80255
In reply to SiddharthFrom: Siddharth Doshi <[email protected]>
Picking patch as per [1], and same patch is mentioned in [2]
[1] https://curl.se/docs/CVE-2026-80255.html
[2] https://security-tracker.debian.org/tracker/CVE-2026-80255
--- .../curl/curl/CVE-2026-80255.patch | 106 ++++++++++++++++++ meta/recipes-support/curl/curl_8.19.0.bb | 1 + 2 files changed, 107 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-80255.patch
meta/recipes-support/curl/curl/CVE-2026-80255.patch new file +106 -0
@@ -0,0 +1,106 @@ +From 4f6aa41a0145e930e766775dbe860883d350aa0a Mon Sep 17 00:00:00 2001 +From: Daniel Stenberg <[email protected]> +Date: Thu, 27 Aug 2026 08:33:30 +0200 +Subject: [PATCH] cookie: improve TAB handling + +For entries with a leading tab. Verified in test 2885. + +Reported-by: Stanislav Fort +Closes #22699 + +Upstream-Status: Backport [https://github.com/curl/curl/commit/4f6aa41a0145e930e766775dbe860883d350aa0a] +CVE: CVE-2026-80255 +Signed-off-by: Siddharth Doshi <[email protected]> +--- + lib/cookie.c | 2 +- + tests/data/Makefile.am | 1 + + tests/data/test2885 | 52 ++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 54 insertions(+), 1 deletion(-) + create mode 100644 tests/data/test2885 + +diff --git a/lib/cookie.c b/lib/cookie.c +index 4d53cc4..30ec890 100644 +--- a/lib/cookie.c ++++ b/lib/cookie.c +@@ -453,7 +453,7 @@ parse_cookie_header(struct Curl_easy *data, + struct Curl_str val; + + /* we have a <name>=<value> pair or a stand-alone word here */ +- if(!curlx_str_cspn(&ptr, &name, ";\t\r\n=")) { ++ if(!curlx_str_cspn(&ptr, &name, ";\r\n=")) { + bool sep = FALSE; + curlx_str_trimblanks(&name); + +diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am +index f9d20a9..8bf374f 100644 +--- a/tests/data/Makefile.am ++++ b/tests/data/Makefile.am +@@ -272,6 +272,7 @@ test2600 test2601 test2602 test2603 test2604 test2605 \ + test2700 test2701 test2702 test2703 test2704 test2705 test2706 test2707 \ + test2708 test2709 test2710 test2711 test2712 test2713 test2714 test2715 \ + test2716 test2717 test2718 test2719 test2720 test2721 test2722 test2723 \ ++test2885 \ + \ + test3000 test3001 test3002 test3003 test3004 test3005 test3006 test3007 \ + test3008 test3009 test3010 test3011 test3012 test3013 test3014 test3015 \ +diff --git a/tests/data/test2885 b/tests/data/test2885 +new file mode 100644 +index 0000000..456224f +--- /dev/null ++++ b/tests/data/test2885 +@@ -0,0 +1,52 @@ ++<?xml version="1.0" encoding="US-ASCII"?> ++<testcase> ++<info> ++<keywords> ++HTTP ++cookies ++</keywords> ++</info> ++ ++<reply> ++<data crlf="headers"> ++HTTP/1.1 200 OK ++Content-Length: 0 ++Set-Cookie: thisis=SECRET;%TABSecure ++Set-Cookie: also=notab; Secure ++ ++</data> ++</reply> ++ ++<client> ++<features> ++cookies ++</features> ++<server> ++https ++</server> ++<name> ++Cookies with TAB before 'secure' ++</name> ++<command> ++https://cookie.example:%HTTPSPORT/%TESTNUMBER -c %LOGDIR/cookies.txt --resolve cookie.example:%HTTPSPORT:%HOSTIP --insecure ++</command> ++</client> ++ ++<verify> ++<protocol crlf="headers"> ++GET /%TESTNUMBER HTTP/1.1 ++Host: cookie.example:%HTTPSPORT ++User-Agent: curl/%VERSION ++Accept: */* ++ ++</protocol> ++<file name="%LOGDIR/cookies.txt" mode="text"> ++# Netscape HTTP Cookie File ++# https://curl.se/docs/http-cookies.html ++# This file was generated by libcurl! Edit at your own risk. ++ ++cookie.example%TABFALSE%TAB/%TABTRUE%TAB0%TABalso%TABnotab ++cookie.example%TABFALSE%TAB/%TABTRUE%TAB0%TABthisis%TABSECRET ++</file> ++</verify> ++</testcase> +-- +2.34.1 +
meta/recipes-support/curl/curl_8.19.0.bb +1 -0
@@ -30,6 +30,7 @@ SRC_URI = " \ file://CVE-2026-13608.patch \ file://CVE-2026-18924.patch \ file://CVE-2026-80229.patch \ + file://CVE-2026-80255.patch \ " SRC_URI:append:class-nativesdk = " \
Signature · 1 line
2.34.1
Re: [OE-core][wrynose][PATCH 4/6] curl: Security Fix for CVE-2026-80255
Quoted 29 lines · Siddharth Doshi via lists.openembedded.org
From: Siddharth Doshi <[email protected]>
Picking patch as per [1], and same patch is mentioned in [2]
[1] https://curl.se/docs/CVE-2026-80255.html
[2] https://security-tracker.debian.org/tracker/CVE-2026-80255Signed-off-by Siddharth Doshi <[email protected]>--- .../curl/curl/CVE-2026-80255.patch | 106 ++++++++++++++++++ meta/recipes-support/curl/curl_8.19.0.bb | 1 + 2 files changed, 107 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-80255.patchmeta/recipes-support/curl/curl/CVE-2026-80255.patch new file +9
-0@@ -0,0 +1,106 @@ +From 4f6aa41a0145e930e766775dbe860883d350aa0a Mon Sep 17 00:00:00 2001 +From: Daniel Stenberg <[email protected]> +Date: Thu, 27 Aug 2026 08:33:30 +0200 +Subject: [PATCH] cookie: improve TAB handling + +For entries with a leading tab. Verified in test 2885. + +Reported-by: Stanislav Fort +Closes #22699
meta/recipes-support/curl/curl/CVE-2026-80255.patch line 19
Quoted 10 lines
meta/recipes-support/curl/curl/CVE-2026-80255.patch new file +10
-0+ +Upstream-Status: Backport [https://github.com/curl/curl/commit/4f6aa41a0145e930e766775dbe860883d350aa0a] +CVE: CVE-2026-80255 +Signed-off-by: Siddharth Doshi <[email protected]> +--- + lib/cookie.c | 2 +- + tests/data/Makefile.am | 1 + + tests/data/test2885 | 52 ++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 54 insertions(+), 1 deletion(-) + create mode 100644 tests/data/test2885
Hello,
I believe this patch is responsible for ptests failures:
qemux86-64-ptest debian12-vk-8 wrynose completed at 2026-09-14 22:47:23+00:00
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/73/builds/4557
qemuarm64-ptest ubuntu2404-vk-arm2 wrynose completed at 2026-09-14 23:24:50+00:00
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/61/builds/4530
qemuriscv64-ptest alma9-vk-2 wrynose completed at 2026-09-15 00:01:40+00:00
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/56/builds/2408
qemuarm64-musl-ptest stream10-vk-arm1 wrynose completed at 2026-09-14 22:49:53+00:00
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/109/builds/1202
qemux86-64-musl-ptest fedora43-vk-2 wrynose completed at 2026-09-14 22:48:49+00:00
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/110/builds/1185
Failed ptests:
{'curl': ['1105_-_HTTP_with_cookie_parser_and_header_recording_-_output']}
I could reproduce this locally with
bitbake core-image-ptest-curl && bitbake core-image-ptest-curl -c testimage
Can you look into this?
In the meantime, I'll keep 1-3,5-6/6 in my branch.
Regards,
Signature · 2 lines
Yoann Congal Smile ECS
Re: [wrynose][PATCH 4/6] curl: Security Fix for CVE-2026-80255
Quoted 6 lines
Failed ptests:
{'curl': ['1105_-_HTTP_with_cookie_parser_and_header_recording_-_output']}
Intresting !! the same test ran successfully for me
Quoted 5 lines
I could reproduce this locally with
bitbake core-image-ptest-curl && bitbake core-image-ptest-curl -c testimage
I will run a fresh build and check it again.
PATCH 5/6 curl: set CVE_STATUS for CVE-2026-82208
In reply to SiddharthFrom: Siddharth Doshi <[email protected]>
Analysis:
- The problem only exists when curl is built to use the wolfSSL TLS backend.[1]
- The recipe is built with OpenSSL and not wolfSSL.
- Hence, ignoring the CVE for this recipe.
Reference:
[1] https://curl.se/docs/CVE-2026-82208.html
--- meta/recipes-support/curl/curl_8.19.0.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-support/curl/curl_8.19.0.bb +1 -0
@@ -46,6 +46,7 @@ CVE_STATUS[CVE-2026-8924] = "not-applicable-config: public suffix list support i CVE_STATUS[CVE-2026-10536] = "${@bb.utils.contains('PACKAGECONFIG', 'nghttp2', 'unpatched', 'not-applicable-config: applicable only with HTTP/2', d)}" CVE_STATUS[CVE-2026-9547] = "not-applicable-config: vulnerable libssh backend is not enabled by the recipe" CVE_STATUS[CVE-2026-12064] = "${@bb.utils.contains('PACKAGECONFIG', 'libssh2', 'unpatched', 'not-applicable-config: SCP/SFTP support is not enabled in PACKAGECONFIG', d)}" +CVE_STATUS[CVE-2026-82208] = "not-applicable-config: vulnerable wolfSSL backend is not enabled by the recipe" inherit autotools pkgconfig binconfig multilib_header ptest
Signature · 1 line
2.34.1
Re: [OE-core][wrynose][PATCH 5/6] curl: set CVE_STATUS for CVE-2026-82208
Quoted 20 lines · Siddharth Doshi via lists.openembedded.org
From: Siddharth Doshi <[email protected]>
Analysis:
- The problem only exists when curl is built to use the wolfSSL TLS backend.[1]
- The recipe is built with OpenSSL and not wolfSSL.
- Hence, ignoring the CVE for this recipe.Reference:
[1] https://curl.se/docs/CVE-2026-82208.htmlSigned-off-by Siddharth Doshi <[email protected]>--- meta/recipes-support/curl/curl_8.19.0.bb | 1 + 1 file changed, 1 insertion(+)meta/recipes-support/curl/curl_8.19.0.bb +0
-0
meta/recipes-support/curl/curl_8.19.0.bb CVE_STATUS[CVE-2026-8924] = "not-applicable-config: public suffix list support i · line 52
Quoted 7 lines
meta/recipes-support/curl/curl_8.19.0.bb +1
-0@@ -46,6 +46,7 @@ CVE_STATUS[CVE-2026-8924] = "not-applicable-config: public suffix list support i CVE_STATUS[CVE-2026-10536] = "${@bb.utils.contains('PACKAGECONFIG', 'nghttp2', 'unpatched', 'not-applicable-config: applicable only with HTTP/2', d)}" CVE_STATUS[CVE-2026-9547] = "not-applicable-config: vulnerable libssh backend is not enabled by the recipe" CVE_STATUS[CVE-2026-12064] = "${@bb.utils.contains('PACKAGECONFIG', 'libssh2', 'unpatched', 'not-applicable-config: SCP/SFTP support is not enabled in PACKAGECONFIG', d)}" +CVE_STATUS[CVE-2026-82208] = "not-applicable-config: vulnerable wolfSSL backend is not enabled by the recipe" inherit autotools pkgconfig binconfig multilib_header ptest
Hello,
We can't do that, as there are users of the wolfssl backend in the OE
ecosystem: https://github.com/wolfSSL/meta-wolfssl/blob/master/recipes-support/curl/curl_%25.bbappend
The fix does not seem very complex, can we backport it instead?
https://github.com/curl/curl/commit/ed0338befd1d865a8ea1fbaa90
Maybe CC meta-wolfssl maintainers on the patch so that they are aware/have a chance to review/test it.
Thanks!
Signature · 2 lines
Yoann Congal Smile ECS
Re: [wrynose][PATCH 5/6] curl: set CVE_STATUS for CVE-2026-82208
Sure, I will work on the backport and send v2.
PATCH 6/6 curl: set CVE_STATUS for CVE-2026-82209
In reply to SiddharthFrom: Siddharth Doshi <[email protected]>
Analysis:
- The problem only exists when curl is built with libpsl support enabled.[1]
- The recipe is built with "--without-libpsl" option.
- Hence, ignoring the CVE for this recipe.
Reference:
[1] https://curl.se/docs/CVE-2026-82209.html
--- meta/recipes-support/curl/curl_8.19.0.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-support/curl/curl_8.19.0.bb +1 -0
@@ -47,6 +47,7 @@ CVE_STATUS[CVE-2026-10536] = "${@bb.utils.contains('PACKAGECONFIG', 'nghttp2', ' CVE_STATUS[CVE-2026-9547] = "not-applicable-config: vulnerable libssh backend is not enabled by the recipe" CVE_STATUS[CVE-2026-12064] = "${@bb.utils.contains('PACKAGECONFIG', 'libssh2', 'unpatched', 'not-applicable-config: SCP/SFTP support is not enabled in PACKAGECONFIG', d)}" CVE_STATUS[CVE-2026-82208] = "not-applicable-config: vulnerable wolfSSL backend is not enabled by the recipe" +CVE_STATUS[CVE-2026-82209] = "not-applicable-config: public suffix list support is disabled by the recipe with --without-libpsl" inherit autotools pkgconfig binconfig multilib_header ptest
Signature · 1 line
2.34.1