{"id":"CVE-2023-52472","summary":"crypto: rsa - add a check for allocation failure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: rsa - add a check for allocation failure\n\nStatic checkers insist that the mpi_alloc() allocation can fail so add\na check to prevent a NULL dereference.  Small allocations like this\ncan't actually fail in current kernels, but adding a check is very\nsimple and makes the static checkers happy.","modified":"2026-03-20T12:32:31.472242Z","published":"2024-02-25T08:16:34.968Z","related":["SUSE-SU-2024:2135-1","SUSE-SU-2024:2203-1","SUSE-SU-2024:2802-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20249-1","USN-6818-2","USN-6819-2"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52472.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2831f4d3bfa68e64c5f83e96688be779c87b3511"},{"type":"WEB","url":"https://git.kernel.org/stable/c/95ad8b6879e2e49d02e3bfc0e1fb46421633fe2a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d872ca165cb67112f2841ef9c37d51ef7e63d1e4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52472.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52472"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6637e11e4ad22ff03183da0dbd36d65c98b81cf7"},{"fixed":"2831f4d3bfa68e64c5f83e96688be779c87b3511"},{"fixed":"95ad8b6879e2e49d02e3bfc0e1fb46421633fe2a"},{"fixed":"d872ca165cb67112f2841ef9c37d51ef7e63d1e4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52472.json"}}],"schema_version":"1.7.5"}