---
title: "CVE-2021-3711"
canonical_url: "https://pkgseek.com/security/CVE-2021-3711"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "critical"
---

# CVE-2021-3711

In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Typically an application will call this function twice. The first time, on entry, the "out" parameter can be NULL and, on exit, the "outlen" parameter is populated with the buffer size required to hold the decrypted plaintext. The application can then allocate a sufficiently sized buffer and call EVP_PKEY_decrypt() again, but this time passing a non-NULL value for the "out" parameter. A bug in the implementation of the SM2 decryption code means that the calculation of the buffer size …

CVE-2021-3711 严重级别为 CRITICAL (9.8)，共索引 4 条受影响软件包构建记录，涉及 1 个发行版。

- **级别 / 评分**: CRITICAL (9.8)
- **受影响构建数**: 4
- **涉及发行版**: 1
- **已标明修复版本发行版**: Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Ubuntu | focal | libssl1.1 | 1.1.1f-1ubuntu2 | 1.1.1f-1ubuntu2.8 |
| Ubuntu | focal | libssl-dev | 1.1.1f-1ubuntu2 | 1.1.1f-1ubuntu2.8 |
| Ubuntu | focal | libssl-doc | 1.1.1f-1ubuntu2 | 1.1.1f-1ubuntu2.8 |
| Ubuntu | focal | openssl | 1.1.1f-1ubuntu2 | 1.1.1f-1ubuntu2.8 |
