crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d58bb7e55a8a65894cc02f27c3e2bf9403e7c40f · < ba3c5574203034781ac4231acf117da917efcd2a| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s mpi_ec_init leaves some mpi_ec_ctx fields uncleared, which can cause a crash when the structure is released. Calculating the SM2 Za value separately is one example that triggers the error. The input does not specify an attack route, authentication requirement, or user interaction.
Engineers running the Linux kernel should check their versions; the affected versions are not specified.