All of lore.kernel.org
 help / color / mirror / Atom feed
* [OE-core][scarthgap][PATCH 0/3] curl: Security fixes
@ 2026-11-04 10:56 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
  2026-11-04 10:56 ` [OE-core][scarthgap][PATCH 1/3] curl: set CVE_STATUS for CVE-2026-19931 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-04 10:56 UTC (permalink / raw)
  To: openembedded-core; +Cc: Darsh Kelaiya

From: Darsh Kelaiya <dkelaiya@cisco.com>

Update curl 8.7.1 on Scarthgap with the CVE-2026-18924 HTTP/2
server push fix. Record conditional status for CVE-2026-19931 and
Linux platform status for CVE-2026-80231.

This series is based on Jaipaul Cheernam's CVE-2026-80230 curl
patch in the Scarthgap pull request [3]. Apply that patch first.

The CVE-2026-18924 patch replaces the earlier Scarthgap submission [1]
rejected for compilation failure, as documented in the review of
that failure [2]. The backport used Curl_share_easy_link(), which is
absent from curl 8.7.1. The replacement uses curl_easy_setopt()
with CURLOPT_SHARE to retain the share setter's reference counting
and cleanup handling.

For CVE-2026-19931, record not-applicable-config unless both krb5
and negotiate-auth are enabled in PACKAGECONFIG; otherwise retain
unpatched status.

[1] https://lists.openembedded.org/g/openembedded-core/message/245542
[2] https://lists.openembedded.org/g/openembedded-core/message/246572
[3] https://lists.openembedded.org/g/openembedded-core/message/249301

Darsh Kelaiya (3):
  curl: set CVE_STATUS for CVE-2026-19931
  curl: fix CVE-2026-18924
  curl: set CVE_STATUS for CVE-2026-80231

 .../curl/curl/CVE-2026-18924.patch            | 56 +++++++++++++++++++
 meta/recipes-support/curl/curl_8.7.1.bb       |  3 +
 2 files changed, 59 insertions(+)
 create mode 100644 meta/recipes-support/curl/curl/CVE-2026-18924.patch

-- 
2.35.6

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [OE-core][scarthgap][PATCH 1/3] curl: set CVE_STATUS for CVE-2026-19931
  2026-11-04 10:56 [OE-core][scarthgap][PATCH 0/3] curl: Security fixes Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
@ 2026-11-04 10:56 ` Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
  2026-11-04 10:56 ` [OE-core][scarthgap][PATCH 2/3] curl: fix CVE-2026-18924 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
  2026-11-04 10:56 ` [OE-core][scarthgap][PATCH 3/3] curl: set CVE_STATUS for CVE-2026-80231 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
  2 siblings, 0 replies; 5+ messages in thread
From: Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-04 10:56 UTC (permalink / raw)
  To: openembedded-core; +Cc: Darsh Kelaiya

From: Darsh Kelaiya <dkelaiya@cisco.com>

Analysis:
- The advisory [1] names [2] as its fixed-in commit. It moves
  connection maintenance to admin handles, preserving the identity
  used by authentication reuse checks.
- Earlier, [4] added Negotiate/NTLM connection reuse checks,
  including an SSPI ambient-user check using recent_conn_id.
  Later, [5] removed that SSPI check; the other checks remain.
- Curl 8.7.1 predates [4]. Applying [2] alone would not reproduce
  the later upstream behavior; a source fix needs backport analysis.
- The advisory describes Negotiate reuse with empty credentials and
  lists curl 8.7.1 within the affected range [1].
- On Linux, this requires krb5 and negotiate-auth. Scarthgap enables
  negotiate-auth but leaves krb5 disabled by default.
- Follow the merged GSS-API configuration check in [3]. Set
  not-applicable-config if either option is absent; otherwise keep
  unpatched while the source backport is deferred.
- Record the CVE as not-applicable-config unless both required
  PACKAGECONFIG options are enabled; otherwise retain unpatched status.
  The CVE_STATUS decision is conditional, not hardcoded.

Reference:
[1] https://curl.se/docs/CVE-2026-19931.html
[2] https://github.com/curl/curl/commit/7103a93b05bc69ea98ed9d05d02fa9eeba533f2f
[3] https://github.com/openembedded/openembedded-core/commit/93c410c455b92a2b1fe3b77347e57d02f344056b
[4] https://github.com/curl/curl/commit/1a17959fc7a80864c9c9b37097856bdb4a465cf8
[5] https://github.com/curl/curl/commit/1c58877705b172da892cb9c18c5edb572f2d1d73

Signed-off-by: Darsh Kelaiya <dkelaiya@cisco.com>
---
 meta/recipes-support/curl/curl_8.7.1.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-support/curl/curl_8.7.1.bb b/meta/recipes-support/curl/curl_8.7.1.bb
index ab33d4aa77..b308aa1e3f 100644
--- a/meta/recipes-support/curl/curl_8.7.1.bb
+++ b/meta/recipes-support/curl/curl_8.7.1.bb
@@ -64,6 +64,7 @@ CVE_STATUS[CVE-2026-8458] = "${@bb.utils.contains('PACKAGECONFIG', 'krb5 negotia
 CVE_STATUS[CVE-2026-9547] = "not-applicable-config: vulnerable libssh 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"
 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-19931] = "${@bb.utils.contains('PACKAGECONFIG', 'krb5 negotiate-auth', 'unpatched', 'not-applicable-config: GSS-API Negotiate is disabled', d)}"
 
 inherit autotools pkgconfig binconfig multilib_header ptest
 
-- 
2.35.6

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [OE-core][scarthgap][PATCH 2/3] curl: fix CVE-2026-18924
  2026-11-04 10:56 [OE-core][scarthgap][PATCH 0/3] curl: Security fixes Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
  2026-11-04 10:56 ` [OE-core][scarthgap][PATCH 1/3] curl: set CVE_STATUS for CVE-2026-19931 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
@ 2026-11-04 10:56 ` Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
  2026-11-04 10:56 ` [OE-core][scarthgap][PATCH 3/3] curl: set CVE_STATUS for CVE-2026-80231 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
  2 siblings, 0 replies; 5+ messages in thread
From: Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-04 10:56 UTC (permalink / raw)
  To: openembedded-core; +Cc: Darsh Kelaiya

From: Darsh Kelaiya <dkelaiya@cisco.com>

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

Make accepted HTTP/2 push handles inherit their parent's share object.
Use the curl 8.7.1 share setter to retain its locking, reference
counting and shared-cache handling during cleanup.

Retain curl_easy_duphandle() instead of the later creation change in
[3]. In 8.7.1, duplication leaves the share and connection-cache
pointers NULL. The share setter increments its use count before the
push callback and multi addition; cleanup releases it. Share cleanup
is blocked while this reference remains. Keep the documented
inheritance of parent options.

[1] https://github.com/curl/curl/commit/90325ff0444cbdff368bda5d26d6405a0bb6ee43
[2] https://curl.se/docs/CVE-2026-18924.html
[3] https://github.com/curl/curl/commit/fad90b666df98c93ee165341b0c8101c7b10ad7b

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

diff --git a/meta/recipes-support/curl/curl/CVE-2026-18924.patch b/meta/recipes-support/curl/curl/CVE-2026-18924.patch
new file mode 100644
index 0000000000..cf8a3a6290
--- /dev/null
+++ b/meta/recipes-support/curl/curl/CVE-2026-18924.patch
@@ -0,0 +1,56 @@
+From 90325ff0444cbdff368bda5d26d6405a0bb6ee43 Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+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
+
+CVE: CVE-2026-18924
+Upstream-Status: Backport [https://github.com/curl/curl/commit/90325ff0444cbdff368bda5d26d6405a0bb6ee43]
+
+Backport Changes:
+- Use share.h because curl 8.7.1 does not have curl_share.h.
+- Use curl_easy_setopt(second, CURLOPT_SHARE, data->share)
+  instead of Curl_share_easy_link(), which is absent from curl 8.7.1.
+  The setter locks the share, updates its dirty counter and links
+  shared caches.
+- Retain curl_easy_duphandle() instead of the later curl_easy_init()
+  change in [1], preserving curl 8.7.1's documented push-option
+  inheritance. In 8.7.1, duplication leaves share and state.conn_cache
+  NULL. The share setter increments share->dirty before the push
+  callback and Curl_multi_add_perform(). Curl_close() drops the use
+  count on rejection or cleanup; curl_share_cleanup() refuses to free
+  a share still in use. The share lifetime fix therefore does not
+  require the later handle-creation change.
+
+[1] https://github.com/curl/curl/commit/fad90b666df98c93ee165341b0c8101c7b10ad7b
+
+(cherry picked from commit 90325ff0444cbdff368bda5d26d6405a0bb6ee43)
+Signed-off-by: Darsh Kelaiya <dkelaiya@cisco.com>
+---
+ lib/http2.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/lib/http2.c b/lib/http2.c
+index 99d7f3b0e2..694900fd8c 100644
+--- a/lib/http2.c
++++ b/lib/http2.c
+@@ -47,6 +47,7 @@
+ #include "transfer.h"
+ #include "dynbuf.h"
+ #include "headers.h"
++#include "share.h"
+ /* The last 3 #include files should be in this order */
+ #include "curl_printf.h"
+ #include "curl_memory.h"
+@@ -776,6 +777,8 @@ static struct Curl_easy *h2_duphandle(struct Curl_cfilter *cf,
+       second->req.p.http = http;
+       http2_data_setup(cf, second, &second_stream);
+       second->state.priority.weight = data->state.priority.weight;
++      if(data->share)
++        (void)curl_easy_setopt(second, CURLOPT_SHARE, data->share);
+     }
+   }
+   return second;
diff --git a/meta/recipes-support/curl/curl_8.7.1.bb b/meta/recipes-support/curl/curl_8.7.1.bb
index b308aa1e3f..33265f0f25 100644
--- a/meta/recipes-support/curl/curl_8.7.1.bb
+++ b/meta/recipes-support/curl/curl_8.7.1.bb
@@ -43,6 +43,7 @@ SRC_URI = "https://curl.se/download/${BP}.tar.xz \
            file://CVE-2026-13608.patch \
            file://CVE-2026-8286.patch \
            file://CVE-2026-80230.patch \
+           file://CVE-2026-18924.patch \
            "
 
 SRC_URI:append:class-nativesdk = " \
-- 
2.35.6

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [OE-core][scarthgap][PATCH 3/3] curl: set CVE_STATUS for CVE-2026-80231
  2026-11-04 10:56 [OE-core][scarthgap][PATCH 0/3] curl: Security fixes Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
  2026-11-04 10:56 ` [OE-core][scarthgap][PATCH 1/3] curl: set CVE_STATUS for CVE-2026-19931 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
  2026-11-04 10:56 ` [OE-core][scarthgap][PATCH 2/3] curl: fix CVE-2026-18924 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
@ 2026-11-04 10:56 ` Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
  2026-11-18 10:54   ` Bastien Jauny
  2 siblings, 1 reply; 5+ messages in thread
From: Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-04 10:56 UTC (permalink / raw)
  To: openembedded-core; +Cc: Darsh Kelaiya

From: Darsh Kelaiya <dkelaiya@cisco.com>

Analysis:
- Select the native CA connection-reuse fix in [2], identified by
  the advisory [1]. It compares the effective native CA setting.
- The advisory limits the issue to Windows and macOS [1]. Scarthgap
  builds curl, curl-native and nativesdk-curl for Linux.
- In curl 8.7.1, native_ca_store is derived from CURLSSLOPT_NATIVE_CA.
  The same flag is retained in ssl_primary_config.ssl_options,
  which is cloned and compared for connection reuse.
- The later implicit native CA selection in [3] is absent from the
  Scarthgap source. Do not import the Wrynose TLS configuration patch.
- Hence ignoring the CVE using not-applicable-platform for Linux.
  Reassess if the SDK platform or native CA configuration changes.

Reference:
[1] https://curl.se/docs/CVE-2026-80231.html
[2] https://github.com/curl/curl/commit/7be1e70cb6bcd83e130ecfe8cb91b6a7dcdeff42
[3] https://github.com/curl/curl/commit/eefd03c572996e5de4dec4fe295ad6f103e0eefc

Signed-off-by: Darsh Kelaiya <dkelaiya@cisco.com>
---
 meta/recipes-support/curl/curl_8.7.1.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-support/curl/curl_8.7.1.bb b/meta/recipes-support/curl/curl_8.7.1.bb
index 33265f0f25..28d834abb2 100644
--- a/meta/recipes-support/curl/curl_8.7.1.bb
+++ b/meta/recipes-support/curl/curl_8.7.1.bb
@@ -66,6 +66,7 @@ CVE_STATUS[CVE-2026-9547] = "not-applicable-config: vulnerable libssh backend is
 CVE_STATUS[CVE-2026-82209] = "not-applicable-config: public suffix list support is disabled by the recipe with --without-libpsl"
 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-19931] = "${@bb.utils.contains('PACKAGECONFIG', 'krb5 negotiate-auth', 'unpatched', 'not-applicable-config: GSS-API Negotiate is disabled', d)}"
+CVE_STATUS[CVE-2026-80231] = "not-applicable-platform: native CA reuse issue affects Windows and macOS, not Linux"
 
 inherit autotools pkgconfig binconfig multilib_header ptest
 
-- 
2.35.6

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [OE-core][scarthgap][PATCH 3/3] curl: set CVE_STATUS for CVE-2026-80231
  2026-11-04 10:56 ` [OE-core][scarthgap][PATCH 3/3] curl: set CVE_STATUS for CVE-2026-80231 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
@ 2026-11-18 10:54   ` Bastien Jauny
  0 siblings, 0 replies; 5+ messages in thread
From: Bastien Jauny @ 2026-11-18 10:54 UTC (permalink / raw)
  To: dkelaiya, openembedded-core

On Wed Nov 4, 2026 at 11:56 AM CET, Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco) via openembedded-core wrote:
> From: Darsh Kelaiya <dkelaiya@cisco.com>
>
> Analysis:
> - Select the native CA connection-reuse fix in [2], identified by
>   the advisory [1]. It compares the effective native CA setting.
> - The advisory limits the issue to Windows and macOS [1]. Scarthgap
>   builds curl, curl-native and nativesdk-curl for Linux.
> - In curl 8.7.1, native_ca_store is derived from CURLSSLOPT_NATIVE_CA.
>   The same flag is retained in ssl_primary_config.ssl_options,
>   which is cloned and compared for connection reuse.
> - The later implicit native CA selection in [3] is absent from the
>   Scarthgap source. Do not import the Wrynose TLS configuration patch.
> - Hence ignoring the CVE using not-applicable-platform for Linux.
>   Reassess if the SDK platform or native CA configuration changes.
>
> Reference:
> [1] https://curl.se/docs/CVE-2026-80231.html
> [2] https://github.com/curl/curl/commit/7be1e70cb6bcd83e130ecfe8cb91b6a7dcdeff42
> [3] https://github.com/curl/curl/commit/eefd03c572996e5de4dec4fe295ad6f103e0eefc
>
> Signed-off-by: Darsh Kelaiya <dkelaiya@cisco.com>
> ---
>  meta/recipes-support/curl/curl_8.7.1.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-support/curl/curl_8.7.1.bb b/meta/recipes-support/curl/curl_8.7.1.bb
> index 33265f0f25..28d834abb2 100644
> --- a/meta/recipes-support/curl/curl_8.7.1.bb
> +++ b/meta/recipes-support/curl/curl_8.7.1.bb
> @@ -66,6 +66,7 @@ CVE_STATUS[CVE-2026-9547] = "not-applicable-config: vulnerable libssh backend is
>  CVE_STATUS[CVE-2026-82209] = "not-applicable-config: public suffix list support is disabled by the recipe with --without-libpsl"
>  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-19931] = "${@bb.utils.contains('PACKAGECONFIG', 'krb5 negotiate-auth', 'unpatched', 'not-applicable-config: GSS-API Negotiate is disabled', d)}"
> +CVE_STATUS[CVE-2026-80231] = "not-applicable-platform: native CA reuse issue affects Windows and macOS, not Linux"
>  
>  inherit autotools pkgconfig binconfig multilib_header ptest
>  

Hi Darsh,

This will need to be addressed upstream first. I see that this CVE is
already discussed in wrynose so we'll put this patch on hold for now.

Thanks,
-- 
Bastien Jauny
Smile


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-18 10:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-04 10:56 [OE-core][scarthgap][PATCH 0/3] curl: Security fixes Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04 10:56 ` [OE-core][scarthgap][PATCH 1/3] curl: set CVE_STATUS for CVE-2026-19931 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04 10:56 ` [OE-core][scarthgap][PATCH 2/3] curl: fix CVE-2026-18924 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04 10:56 ` [OE-core][scarthgap][PATCH 3/3] curl: set CVE_STATUS for CVE-2026-80231 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-18 10:54   ` Bastien Jauny

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.