{"id":"CVE-2023-52687","summary":"crypto: safexcel - Add error handling for dma_map_sg() calls","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: safexcel - Add error handling for dma_map_sg() calls\n\nMacro dma_map_sg() may return 0 on error. This patch enables\nchecks in case of the macro failure and ensures unmapping of\npreviously mapped buffers with dma_unmap_sg().\n\nFound by Linux Verification Center (linuxtesting.org) with static\nanalysis tool SVACE.","modified":"2026-04-02T09:43:14.392707Z","published":"2024-05-17T14:24:48.665Z","related":["SUSE-SU-2024:2135-1","SUSE-SU-2024:2203-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-52687.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4c0ac81a172a69a7733290915276672787e904ec"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8084b788c2fb1260f7d44c032d5124680b20d2b2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/87e02063d07708cac5bfe9fd3a6a242898758ac8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fc0b785802b856566df3ac943e38a072557001c4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52687.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52687"},{"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":"49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1"},{"fixed":"4c0ac81a172a69a7733290915276672787e904ec"},{"fixed":"8084b788c2fb1260f7d44c032d5124680b20d2b2"},{"fixed":"fc0b785802b856566df3ac943e38a072557001c4"},{"fixed":"87e02063d07708cac5bfe9fd3a6a242898758ac8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52687.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}