{"id":"CVE-2025-38145","summary":"soc: aspeed: Add NULL check in aspeed_lpc_enable_snoop()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: aspeed: Add NULL check in aspeed_lpc_enable_snoop()\n\ndevm_kasprintf() returns NULL when memory allocation fails. Currently,\naspeed_lpc_enable_snoop() does not check for this case, which results in a\nNULL pointer dereference.\n\nAdd NULL check after devm_kasprintf() to prevent this issue.\n\n[arj: Fix Fixes: tag to use subject from 3772e5da4454]","modified":"2026-04-16T04:36:21.990110251Z","published":"2025-07-03T08:35:51.566Z","related":["SUSE-SU-2025:02853-1","SUSE-SU-2025:02923-1","SUSE-SU-2025:02969-1","SUSE-SU-2025:02996-1","SUSE-SU-2025:02997-1","SUSE-SU-2025:03011-1","SUSE-SU-2025:03023-1","SUSE-SU-2025:20577-1","SUSE-SU-2025:20586-1","SUSE-SU-2025:20601-1","SUSE-SU-2025:20602-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38145.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1fd889c145722579aa038c31cbc07cfdd4d75166"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2beee9cf833374550e673d428ad8b6ab37c175b3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/45b2e8b0fdd280aba04c3cc869e9ae500c44e4b7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8312b1f776f71979bf33bda7acc05b348e8792c7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c550999f939b529d28a914d5034cc4290066aea6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d62a589eaaec6385e3e2b25cf5a28b4560ace93f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f1706e0e1a74b095cbc60375b9b1e6205f5f4c98"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f697ef117ecbf3a367dfc559a6a3589905956530"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38145.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38145"},{"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":"3772e5da445420543b25825ac2b5971f3743f6e8"},{"fixed":"2beee9cf833374550e673d428ad8b6ab37c175b3"},{"fixed":"c550999f939b529d28a914d5034cc4290066aea6"},{"fixed":"1fd889c145722579aa038c31cbc07cfdd4d75166"},{"fixed":"d62a589eaaec6385e3e2b25cf5a28b4560ace93f"},{"fixed":"8312b1f776f71979bf33bda7acc05b348e8792c7"},{"fixed":"f697ef117ecbf3a367dfc559a6a3589905956530"},{"fixed":"45b2e8b0fdd280aba04c3cc869e9ae500c44e4b7"},{"fixed":"f1706e0e1a74b095cbc60375b9b1e6205f5f4c98"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38145.json"}}],"schema_version":"1.7.5"}