Skip to content

libssh2: fix CVE-2026-66032, CVE-2026-66033, CVE-2026-66034, CVE-2026-66035

Jaipaul Cheernam openembedded-core 3 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/24 patches 0 repliesNew
  2. v2 posting 1/24 patches 0 repliesSuperseded
  3. v11 patch 0 repliesSuperseded

Changes in v2 from the cover letter

- Added CVE-2026-66032 fix

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4libssh2: fix CVE-2026-66032meta/recipes-support/libssh2/libssh2/CVE-2026-66032.patch meta/recipes-support/libssh2/libssh2_1.11.1.bb+37 -00 replies
2/4libssh2: fix CVE-2026-66033meta/recipes-support/libssh2/libssh2/CVE-2026-66033.patch meta/recipes-support/libssh2/libssh2_1.11.1.bb+46 -00 replies
3/4libssh2: fix CVE-2026-66034meta/recipes-support/libssh2/libssh2/CVE-2026-66034.patch meta/recipes-support/libssh2/libssh2_1.11.1.bb+41 -00 replies
4/4libssh2: fix CVE-2026-66035meta/recipes-support/libssh2/libssh2/CVE-2026-66035.patch meta/recipes-support/libssh2/libssh2_1.11.1.bb+57 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [wrynose][PATCH v2 0/4] libssh2: fix CVE-2026-66032, CVE-2026-66033, CVE-2026-66034, CVE-2026-66035

Fix four CVEs in libssh2 1.11.1 by backporting upstream fixes:

- CVE-2026-66032: dangling pointer in sftp_open after free
- CVE-2026-66033: potential OOB read/write with AES-GCM in ssh2_cipher_crypt()
- CVE-2026-66034: potential OOB read in libssh2_publickey_list_fetch()
- CVE-2026-66035: potential heap overflow on ETM decrypt

Backport adaptations:
- CVE-2026-66032: upstream uses SSH2_FREE() renamed from LIBSSH2_FREE() in newer libssh2. Context adjusted for 1.11.1.
- CVE-2026-66034: upstream uses ssh2_err() which is not available in 1.11.1, replaced with _libssh2_error().
- CVE-2026-66035: upstream uses SSH2_SAFEFREE() (not in 1.11.1), replaced with LIBSSH2_FREE() + NULL reset. Also upstream renames decrypt() to transport_decrypt(), retained original name.

Changes since v1:
- Added CVE-2026-66032 fix

libssh2 ptest results (qemux86-64):
before: PASSED: 1 FAILED: 0 SKIPPED: 0
after: PASSED: 1 FAILED: 0 SKIPPED: 0

Jaipaul Cheernam (4):
libssh2: fix CVE-2026-66032
libssh2: fix CVE-2026-66033
libssh2: fix CVE-2026-66034
libssh2: fix CVE-2026-66035

 .../libssh2/libssh2/CVE-2026-66032.patch      | 36 ++++++++++++
 .../libssh2/libssh2/CVE-2026-66033.patch      | 45 +++++++++++++++
 .../libssh2/libssh2/CVE-2026-66034.patch      | 40 +++++++++++++
 .../libssh2/libssh2/CVE-2026-66035.patch      | 56 +++++++++++++++++++
 .../recipes-support/libssh2/libssh2_1.11.1.bb |  4 ++
 5 files changed, 181 insertions(+)
 create mode 100644 meta/recipes-support/libssh2/libssh2/CVE-2026-66032.patch
 create mode 100644 meta/recipes-support/libssh2/libssh2/CVE-2026-66033.patch
 create mode 100644 meta/recipes-support/libssh2/libssh2/CVE-2026-66034.patch
 create mode 100644 meta/recipes-support/libssh2/libssh2/CVE-2026-66035.patch