CVE-2022-29242
Linux Debian vulnerability analysis and mitigation

Overview

GOST engine, a reference implementation of Russian GOST crypto algorithms for OpenSSL, was found to contain a buffer overflow vulnerability (CVE-2022-29242) discovered in May 2022. The vulnerability specifically affects TLS clients using GOST engine when the ciphersuite TLS_GOSTR341112_256_WITH_KUZNYECHIK_CTR_OMAC is agreed upon and the server uses 512-bit GOST secret keys (GitHub Advisory).

Technical details

The vulnerability stems from improper buffer size handling when creating key transport blobs. According to RFC 9189 section 4.2.4, there are two variants of GOST key wrap into blob, both requiring the same approach for checking passed values. While OpenSSL passes a sufficiently large buffer for the variant described in section 4.2.4.2, it fails to provide an adequate buffer for section 4.2.4.1, leading to a potential buffer overflow condition. The vulnerability has been assigned a CVSS v3.1 score of 7.5 HIGH (NVD).

Impact

When exploited, this vulnerability could lead to buffer overflow in the client when the server has 512-bit keys and a KUZNYECHIK-based ciphersuite is in use. This could potentially result in memory corruption and possible code execution (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in GOST engine version 3.0.1. Users are advised to update to this version. As a temporary workaround, users can disable the ciphersuite TLS_GOSTR341112_256_WITH_KUZNYECHIK_CTR_OMAC (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59030HIGH7.5
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-59029MEDIUM5.3
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-modules-internal
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management