# CVE-2023-52472: crypto: rsa - add a check for allocation failure

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2024-02-25T08:16:34.968Z
- Modified: 2026-06-17T06:42:47.950Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6637e11e4ad22ff03183da0dbd36d65c98b81cf7 before 2831f4d3bfa68e64c5f83e96688be779c87b3511; from 6637e11e4ad22ff03183da0dbd36d65c98b81cf7 before 95ad8b6879e2e49d02e3bfc0e1fb46421633fe2a; from 6637e11e4ad22ff03183da0dbd36d65c98b81cf7 before d872ca165cb67112f2841ef9c37d51ef7e63d1e4; 6.5 (not affected: before 6.5; from 6.6.14 up to 6.6.*; from 6.7.2 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 6.5.0 before 6.6.14; from 6.7.0 before 6.7.2

## References

- <https://git.kernel.org/stable/c/2831f4d3bfa68e64c5f83e96688be779c87b3511> (patch)
- <https://git.kernel.org/stable/c/95ad8b6879e2e49d02e3bfc0e1fb46421633fe2a> (patch)
- <https://git.kernel.org/stable/c/d872ca165cb67112f2841ef9c37d51ef7e63d1e4> (patch)

## Sources

- CVE List: [CVE-2023-52472](https://www.cve.org/CVERecord?id=CVE-2023-52472), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52472](https://nvd.nist.gov/vuln/detail/CVE-2023-52472), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52472 · Whole record: https://cve.day/CVE-2023-52472.json · Rebuilt by cve.day 2026-11-25T22:58:33.077Z
