CVE-2023-52616
JSON

7.8high

crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.24% (higher than 16% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom d58bb7e55a8a65894cc02f27c3e2bf9403e7c40f before 0c3687822259a7628c85cd21a3445cbe3c367165, from d58bb7e55a8a65894cc02f27c3e2bf9403e7c40f before 2bb86817b33c9d704e127f92b838035a72c315b6, from d58bb7e55a8a65894cc02f27c3e2bf9403e7c40f before bb44477d4506e52785693a39f03cdc6a2c5e8598, from d58bb7e55a8a65894cc02f27c3e2bf9403e7c40f before 7ebf812b7019fd2d4d5a7ca45ef4bf3a6f4bda0a, from d58bb7e55a8a65894cc02f27c3e2bf9403e7c40f before 7abdfd45a650c714d5ebab564bb1b988f14d9b49, from d58bb7e55a8a65894cc02f27c3e2bf9403e7c40f before ba3c5574203034781ac4231acf117da917efcd2a, 5.10
Not affected: before 5.10, from 5.10.210 up to 5.10.*, from 5.15.149 up to 5.15.*, from 6.1.79 up to 6.1.*, from 6.6.15 up to 6.6.*, from 6.7.3 up to 6.7.*
CVE List
linux linux_kernelfrom 5.10 before 5.10.210, from 5.11 before 5.15.149, from 5.16 before 6.1.79, from 6.2 before 6.6.15, from 6.7 before 6.7.3NVD
debian debian_linux10.0NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: crypto: lib/mpi: corrige el acceso inesperado al puntero en mpi_ec_init Cuando se inicializa la estructura mpi_ec_ctx, algunos campos no se borran, lo que provoca un bloqueo al hacer referencia al campo cuando se lanzó la estructura. Inicialmente, este problema se ignoró porque la memoria para mpi_ec_ctx se asigna con el indicador __GFP_ZERO. Por ejemplo, este error se activará al calcular el valor Za para SM2 por separado.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-52616 changed 2026-08-05CVE Terms of Use
NVDCVE-2023-52616 changed 2026-08-04Public domain