CVE-2025-25199
published high CVSS 3.1 · 7.5BCryptGenerateSymmetricKey memory leak
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| microsoft | — | go-crypto-winnative< 1.23.6-2 · < 1.22.12-2 · < 0.0.0-20250211154640-f49c8e1379ea | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbaarch64 | Advisory build | 0.0.20250312T181707-1.1 | OPENSUSE-SU-2025:14889-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbppc64le | Advisory build | 0.0.20250312T181707-1.1 | OPENSUSE-SU-2025:14889-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbs390x | Advisory build | 0.0.20250312T181707-1.1 | OPENSUSE-SU-2025:14889-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbx86_64 | Advisory build | 0.0.20250312T181707-1.1 | OPENSUSE-SU-2025:14889-1 |
Description
go-crypto-winnative Go crypto backend for Windows using Cryptography API: Next Generation (CNG). Prior to commit f49c8e1379ea4b147d5bff1b3be5b0ff45792e41, calls to `cng.TLS1PRF` don't release the key handle, producing a small memory leak every time. Commit f49c8e1379ea4b147d5bff1b3be5b0ff45792e41 contains a fix for the issue. The fix is included in versions 1.23.6-2 and 1.22.12-2 of the Microsoft build of go, as well as in the pseudoversion 0.0.0-20250211154640-f49c8e1379ea of the `github.com/microsoft/go-crypto-winnative` Go package.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| microsoft | go-crypto-winnative | < 1.23.6-2 (affected)< 1.22.12-2 (affected)< 0.0.0-20250211154640-f49c8e1379ea (affected) | GitHub_M · cna |
Weaknesses
1- CWE-401 CWE-401: Missing Release of Memory after Effective Lifetime
References
2Provider assertions
2GitHub_M · cna
BCryptGenerateSymmetricKey memory leak
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0a81d3e564a9fd5d473a1c0a65fdd087c3e539b28b7a53bc9593ccc8238b9d66
- Ingested
- 23 Sep 2026, 08:41:57 UTC
- Source record
- Official CVE record