• 公告ID (KylinSec-SA-2024-2724)

摘要:

A memory leak flaw was found in Golang in the RSA encrypting/decrypting code, which might lead to a resource exhaustion vulnerability using attacker-controlled inputs​. The memory leak happens in github.com/golang-fips/openssl/openssl/rsa.go#L113. The objects leaked are pkey​ and ctx​. That function uses named return parameters to free pkey​ and ctx​ if there is an error initializing the context or setting the different properties. All return statements related to error cases follow the "return nil, nil, fail(...)" pattern, meaning that pkey​ and ctx​ will be nil inside the deferred function that should free them.

安全等级: Low

公告ID: KylinSec-SA-2024-2724

发布日期: 2024年6月14日

关联CVE: CVE-2024-1394  

  • 详细介绍

1. 漏洞描述

   

A memory leak flaw was found in Golang in the RSA encrypting/decrypting code, which might lead to a resource exhaustion vulnerability using attacker-controlled inputs​. The memory leak happens in github.com/golang-fips/openssl/openssl/rsa.go#L113. The objects leaked are pkey​ and ctx​. That function uses named return parameters to free pkey​ and ctx​ if there is an error initializing the context or setting the different properties. All return statements related to error cases follow the "return nil, nil, fail(...)" pattern, meaning that pkey​ and ctx​ will be nil inside the deferred function that should free them.

2. 影响范围

cve名称 产品 组件 是否受影响
CVE-2024-1394 KY3.4-5A openssl Unaffected
CVE-2024-1394 KY3.5.2 openssl Unaffected
CVE-2024-1394 V6 openssl Unaffected

3. 影响组件

    无

4. 修复版本

    无

5. 修复方法

   无

6. 下载链接

    无
上一篇:KylinSec-SA-2024-2723 下一篇:KylinSec-SA-2024-2725