All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)" <dkelaiya@cisco.com>
To: openembedded-core@lists.openembedded.org
Cc: Darsh Kelaiya <dkelaiya@cisco.com>
Subject: [OE-core][wrynose][PATCH 04/12] curl: fix CVE-2026-92387
Date: Tue,  3 Nov 2026 23:36:19 -0800	[thread overview]
Message-ID: <20261104073627.302002-5-dkelaiya@cisco.com> (raw)
In-Reply-To: <20261104073627.302002-1-dkelaiya@cisco.com>

From: Darsh Kelaiya <dkelaiya@cisco.com>

This patch applies the upstream fix as referenced in [2],
using the commit shown in [1].

Limit each Curl_pp_readresp() call to ten new socket reads so an
unfinished response cannot monopolize the multi interface.

[1] https://github.com/curl/curl/commit/753735af87f5c30cb6f60a70342f8bc4bc5fd5db
[2] https://curl.se/docs/CVE-2026-92387.html

Signed-off-by: Darsh Kelaiya <dkelaiya@cisco.com>
---
 .../curl/curl/CVE-2026-92387.patch            | 43 +++++++++++++++++++
 meta/recipes-support/curl/curl_8.19.0.bb      |  1 +
 2 files changed, 44 insertions(+)
 create mode 100644 meta/recipes-support/curl/curl/CVE-2026-92387.patch

diff --git a/meta/recipes-support/curl/curl/CVE-2026-92387.patch b/meta/recipes-support/curl/curl/CVE-2026-92387.patch
new file mode 100644
index 00000000000..d997aa478a3
--- /dev/null
+++ b/meta/recipes-support/curl/curl/CVE-2026-92387.patch
@@ -0,0 +1,43 @@
+From 753735af87f5c30cb6f60a70342f8bc4bc5fd5db Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+Date: Sun, 13 Sep 2026 16:12:01 +0200
+Subject: [PATCH] pingpong: add a max loop counter for Curl_pp_readresp
+
+To make sure it cannot get stuck in this function.
+
+Reported-by: Joshua Rogers
+Closes #22932
+
+CVE: CVE-2026-92387
+Upstream-Status: Backport [https://github.com/curl/curl/commit/753735af87f5c30cb6f60a70342f8bc4bc5fd5db]
+
+(cherry picked from commit 753735af87f5c30cb6f60a70342f8bc4bc5fd5db)
+Signed-off-by: Darsh Kelaiya <dkelaiya@cisco.com>
+---
+ lib/pingpong.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/lib/pingpong.c b/lib/pingpong.c
+index 4ede0a5..b32651a 100644
+--- a/lib/pingpong.c
++++ b/lib/pingpong.c
+@@ -253,6 +253,7 @@ CURLcode Curl_pp_readresp(struct Curl_easy *data,
+   CURLcode result = CURLE_OK;
+   size_t gotbytes;
+   char buffer[900];
++  int maxloops = 10;
+ 
+   *code = 0; /* 0 for errors or not done */
+   *size = 0;
+@@ -270,6 +271,9 @@ CURLcode Curl_pp_readresp(struct Curl_easy *data,
+       pp->nfinal = 0; /* now gone */
+     }
+     if(!pp->overflow) {
++      if(!maxloops--) /* don't get stuck */
++        return CURLE_OK;
++
+       result = pingpong_read(data, sockindex, buffer, sizeof(buffer),
+                              &gotbytes);
+       if(result == CURLE_AGAIN)
+-- 
+2.35.6
diff --git a/meta/recipes-support/curl/curl_8.19.0.bb b/meta/recipes-support/curl/curl_8.19.0.bb
index 3828c26f507..c4a1167d1ba 100644
--- a/meta/recipes-support/curl/curl_8.19.0.bb
+++ b/meta/recipes-support/curl/curl_8.19.0.bb
@@ -51,6 +51,7 @@ SRC_URI = "https://curl.se/download/${BP}.tar.xz \
            file://CVE-2026-86414.patch \
            file://CVE-2026-86409.patch \
            file://CVE-2026-87862.patch \
+           file://CVE-2026-92387.patch \
            "
 
 SRC_URI:append:class-nativesdk = " \
-- 
2.35.6

  parent reply	other threads:[~2026-11-04  7:36 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-04  7:36 [OE-core][wrynose][PATCH 00/12] curl: Security fixes Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04  7:36 ` [OE-core][wrynose][PATCH 01/12] curl: fix CVE-2026-86414 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04  7:36 ` [OE-core][wrynose][PATCH 02/12] curl: fix CVE-2026-86409 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04  7:36 ` [OE-core][wrynose][PATCH 03/12] curl: fix CVE-2026-87862 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04  7:36 ` Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco) [this message]
2026-11-04  7:36 ` [OE-core][wrynose][PATCH 05/12] curl: fix CVE-2026-86412 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04  7:36 ` [OE-core][wrynose][PATCH 06/12] curl: fix CVE-2026-92386 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-23 17:03   ` Yoann Congal
2026-11-24 17:29     ` [wrynose][PATCH " Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04  7:36 ` [OE-core][wrynose][PATCH 07/12] curl: fix CVE-2026-107928 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04  7:36 ` [OE-core][wrynose][PATCH 08/12] curl: fix CVE-2026-87864 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04  7:36 ` [OE-core][wrynose][PATCH 09/12] curl: fix CVE-2026-92389 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04  7:36 ` [OE-core][wrynose][PATCH 10/12] curl: fix CVE-2026-87865 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-23 16:56   ` Yoann Congal
2026-11-24 10:16     ` [wrynose][PATCH " Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04  7:36 ` [OE-core][wrynose][PATCH 11/12] curl: set CVE_STATUS for CVE-2026-19931 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04  7:36 ` [OE-core][wrynose][PATCH 12/12] curl: fix CVE-2026-18924 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-16  0:14 ` [OE-core][wrynose][PATCH 00/12] curl: Security fixes Yoann Congal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261104073627.302002-5-dkelaiya@cisco.com \
    --to=dkelaiya@cisco.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.