crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init
In the Linux kernel, the following vulnerability has been resolved: crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init When the mpi_ec_ctx structure is initialized, some fields are not cleared, causing a crash when referencing the field when the structure was released. Initially, this issue was ignored because memory for mpi_ec_ctx is allocated with the __GFP_ZERO flag. For example, this error will be triggered when calculating the Za value for SM2 separately.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.210, 5.15.149, 6.1.79, 6.6.15, 6.7.3
- CVEs
- CVE-2023-52616
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 11:53 UTC · Revision 1
Source evidence
crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init
core-osv · Original sourcePublished 18 Mar 2024, 10:14 UTC
In the Linux kernel, the following vulnerability has been resolved: crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init When the mpi_ec_ctx structure is initialized, some fields are not cleared, causing a crash when referencing the field when the structure was released. Initially, this issue was ignored because memory for mpi_ec_ctx is allocated with the __GFP_ZERO flag. For example, this error will be triggered when calculating the Za value for SM2 separately.
osv:CVE-2023-52616
Kernel
Fixed versions: 5.10.210, 5.15.149, 6.1.79, 6.6.15, 6.7.3
Complete source record
{
"id": "c1ea21b282af3c0b6309073a0ca4741ec16f5176f9b939bfae08c081c65e8869",
"url": "https://osv.dev/vulnerability/CVE-2023-52616",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init",
"summary": "In the Linux kernel, the following vulnerability has been resolved: crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init When the mpi_ec_ctx structure is initialized, some fields are not cleared, causing a crash when referencing the field when the structure was released. Initially, this issue was ignored because memory for mpi_ec_ctx is allocated with the __GFP_ZERO flag. For example, this error will be triggered when calculating the Za value for SM2 separately.",
"evidence": "osv:CVE-2023-52616",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.210",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.149",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.79",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.15",
"evidence": "/affected/1/ranges"
},
{
"value": "6.7.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2023-52616",
"aliases": [
"CVE-2023-52616"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "d58bb7e55a8a65894cc02f27c3e2bf9403e7c40f"
},
{
"fixed": "0c3687822259a7628c85cd21a3445cbe3c367165"
},
{
"fixed": "2bb86817b33c9d704e127f92b838035a72c315b6"
},
{
"fixed": "bb44477d4506e52785693a39f03cdc6a2c5e8598"
},
{
"fixed": "7ebf812b7019fd2d4d5a7ca45ef4bf3a6f4bda0a"
},
{
"fixed": "7abdfd45a650c714d5ebab564bb1b988f14d9b49"
},
{
"fixed": "ba3c5574203034781ac4231acf117da917efcd2a"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52616.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.10.0"
},
{
"fixed": "5.10.210"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.149"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.79"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.15"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.7.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52616.json"
}
}
],
"modified": "2026-10-28T02:30:35.304533068Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0c3687822259a7628c85cd21a3445cbe3c367165",
"https://git.kernel.org/stable/c/2bb86817b33c9d704e127f92b838035a72c315b6",
"https://git.kernel.org/stable/c/7abdfd45a650c714d5ebab564bb1b988f14d9b49",
"https://git.kernel.org/stable/c/7ebf812b7019fd2d4d5a7ca45ef4bf3a6f4bda0a",
"https://git.kernel.org/stable/c/ba3c5574203034781ac4231acf117da917efcd2a",
"https://git.kernel.org/stable/c/bb44477d4506e52785693a39f03cdc6a2c5e8598",
"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52616.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-52616",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52616.json"
}
},
"related_cves": [
{
"value": "CVE-2023-52616",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 502163,
"published_at": "2024-03-18T10:14:46.066+00:00"
}