crypto: rsa - add a check for allocation failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.6.146.7.26.8In the Linux kernel, the following vulnerability has been resolved:
crypto: rsa - add a check for allocation failure
Static checkers insist that the mpi_alloc() allocation can fail so add a check to prevent a NULL dereference. Small allocations like this can't actually fail in current kernels, but adding a check is very simple and makes the static checkers happy.
From the CVE record · Linux
The Linux kernel’s RSA crypto code lacked a check for failure of an mpi_alloc() allocation, which could lead to a NULL dereference. The description says allocations this small cannot fail in current kernels; it does not identify an attacker path or specify access or interaction requirements.
Engineers running the Linux kernel should check the vendor advisory for affected versions; none are specified in the input.