summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libssh
diff options
context:
space:
mode:
authorAnil Dongare <adongare@cisco.com>2025-09-19 03:30:35 -0700
committerAnuj Mittal <anuj.mittal@intel.com>2025-09-23 10:08:04 +0800
commit49aa81f2d5861bbae3c0886a2a0e39bdf7a16e18 (patch)
treecff89f40b59c8ab4f4744da8100a01d1a94230e9 /meta-oe/recipes-support/libssh
parent385b1baa2b2aa5d65d0db5852b3dbefa94f57abf (diff)
downloadmeta-openembedded-49aa81f2d5861bbae3c0886a2a0e39bdf7a16e18.tar.gz
libssh 0.10.6: Fix CVE-2025-8114
Upstream Repository: https://git.libssh.org/projects/libssh.git/ Bug Details: https://nvd.nist.gov/vuln/detail/CVE-2025-8114 Type: Security Fix CVE: CVE-2025-8114 Score: 4.7 Patch: https://git.libssh.org/projects/libssh.git/commit/?id=53ac23ded4cb Signed-off-by: Anil Dongare <adongare@cisco.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'meta-oe/recipes-support/libssh')
-rw-r--r--meta-oe/recipes-support/libssh/libssh/CVE-2025-8114.patch49
-rw-r--r--meta-oe/recipes-support/libssh/libssh_0.10.6.bb1
2 files changed, 50 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libssh/libssh/CVE-2025-8114.patch b/meta-oe/recipes-support/libssh/libssh/CVE-2025-8114.patch
new file mode 100644
index 0000000000..10bbbcb114
--- /dev/null
+++ b/meta-oe/recipes-support/libssh/libssh/CVE-2025-8114.patch
@@ -0,0 +1,49 @@
1From 5f4950367c027aa91fcea240df354a856a4a0025 Mon Sep 17 00:00:00 2001
2From: Andreas Schneider <asn@cryptomilk.org>
3Date: Wed, 6 Aug 2025 15:17:59 +0200
4Subject: [PATCH] CVE-2025-8114: Fix NULL pointer dereference after allocation
5 failure
6
7CVE: CVE-2025-8114
8Upstream-Status: Backport [https://git.libssh.org/projects/libssh.git/commit/?id=53ac23ded4cb]
9
10Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
11Reviewed-by: Jakub Jelen <jjelen@redhat.com>
12(cherry picked from commit 53ac23ded4cb2c5463f6c4cd1525331bd578812d)
13Signed-off-by: Anil Dongare <adongare@cisco.com>
14---
15 src/kex.c | 4 ++++
16 1 file changed, 4 insertions(+)
17
18diff --git a/src/kex.c b/src/kex.c
19index fbc70cf4..b4bab277 100644
20--- a/src/kex.c
21+++ b/src/kex.c
22@@ -1391,6 +1391,8 @@ int ssh_make_sessionid(ssh_session session)
23 ssh_log_hexdump("hash buffer", ssh_buffer_get(buf), ssh_buffer_get_len(buf));
24 #endif
25
26+ /* Set rc for the following switch statement in case we goto error. */
27+ rc = SSH_ERROR;
28 switch (session->next_crypto->kex_type) {
29 case SSH_KEX_DH_GROUP1_SHA1:
30 case SSH_KEX_DH_GROUP14_SHA1:
31@@ -1450,6 +1452,7 @@ int ssh_make_sessionid(ssh_session session)
32 session->next_crypto->secret_hash);
33 break;
34 }
35+
36 /* During the first kex, secret hash and session ID are equal. However, after
37 * a key re-exchange, a new secret hash is calculated. This hash will not replace
38 * but complement existing session id.
39@@ -1458,6 +1461,7 @@ int ssh_make_sessionid(ssh_session session)
40 session->next_crypto->session_id = malloc(session->next_crypto->digest_len);
41 if (session->next_crypto->session_id == NULL) {
42 ssh_set_error_oom(session);
43+ rc = SSH_ERROR;
44 goto error;
45 }
46 memcpy(session->next_crypto->session_id, session->next_crypto->secret_hash,
47--
482.43.5
49
diff --git a/meta-oe/recipes-support/libssh/libssh_0.10.6.bb b/meta-oe/recipes-support/libssh/libssh_0.10.6.bb
index bf91e69bc8..602e01fce6 100644
--- a/meta-oe/recipes-support/libssh/libssh_0.10.6.bb
+++ b/meta-oe/recipes-support/libssh/libssh_0.10.6.bb
@@ -17,6 +17,7 @@ SRC_URI = "git://git.libssh.org/projects/libssh.git;protocol=https;branch=stable
17 file://CVE-2025-4878-0001.patch \ 17 file://CVE-2025-4878-0001.patch \
18 file://CVE-2025-4878-0002.patch \ 18 file://CVE-2025-4878-0002.patch \
19 file://CVE-2025-5987.patch \ 19 file://CVE-2025-5987.patch \
20 file://CVE-2025-8114.patch \
20 " 21 "
21SRCREV = "10e09e273f69e149389b3e0e5d44b8c221c2e7f6" 22SRCREV = "10e09e273f69e149389b3e0e5d44b8c221c2e7f6"
22 23