# CVE-2025-38145: soc: aspeed: Add NULL check in aspeed_lpc_enable_snoop()

- 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.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2025-07-03T08:35:51.566Z
- Modified: 2026-06-17T09:16:08.700Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

soc: aspeed: Add NULL check in aspeed_lpc_enable_snoop()

devm_kasprintf() returns NULL when memory allocation fails. Currently,
aspeed_lpc_enable_snoop() does not check for this case, which results in a
NULL pointer dereference.

Add NULL check after devm_kasprintf() to prevent this issue.

[arj: Fix Fixes: tag to use subject from 3772e5da4454]

(As written by CVE List.)

## Affected

- Linux Linux: from 3772e5da445420543b25825ac2b5971f3743f6e8 before 2beee9cf833374550e673d428ad8b6ab37c175b3; from 3772e5da445420543b25825ac2b5971f3743f6e8 before c550999f939b529d28a914d5034cc4290066aea6; from 3772e5da445420543b25825ac2b5971f3743f6e8 before 1fd889c145722579aa038c31cbc07cfdd4d75166; from 3772e5da445420543b25825ac2b5971f3743f6e8 before d62a589eaaec6385e3e2b25cf5a28b4560ace93f; from 3772e5da445420543b25825ac2b5971f3743f6e8 before 8312b1f776f71979bf33bda7acc05b348e8792c7; from 3772e5da445420543b25825ac2b5971f3743f6e8 before f697ef117ecbf3a367dfc559a6a3589905956530; from 3772e5da445420543b25825ac2b5971f3743f6e8 before 45b2e8b0fdd280aba04c3cc869e9ae500c44e4b7; from 3772e5da445420543b25825ac2b5971f3743f6e8 before f1706e0e1a74b095cbc60375b9b1e6205f5f4c98; 4.19 (not affected: before 4.19; from 5.4.295 up to 5.4.*; from 5.10.239 up to 5.10.*; from 5.15.186 up to 5.15.*; from 6.1.142 up to 6.1.*; from 6.6.94 up to 6.6.*; from 6.12.34 up to 6.12.*; from 6.15.3 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 4.19 before 5.4.295; from 5.5 before 5.10.239; from 5.11 before 5.15.186; from 5.16 before 6.1.142; from 6.2 before 6.6.94; from 6.7 before 6.12.34; from 6.13 before 6.15.3
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/2beee9cf833374550e673d428ad8b6ab37c175b3> (patch)
- <https://git.kernel.org/stable/c/c550999f939b529d28a914d5034cc4290066aea6> (patch)
- <https://git.kernel.org/stable/c/1fd889c145722579aa038c31cbc07cfdd4d75166> (patch)
- <https://git.kernel.org/stable/c/d62a589eaaec6385e3e2b25cf5a28b4560ace93f> (patch)
- <https://git.kernel.org/stable/c/8312b1f776f71979bf33bda7acc05b348e8792c7> (patch)
- <https://git.kernel.org/stable/c/f697ef117ecbf3a367dfc559a6a3589905956530> (patch)
- <https://git.kernel.org/stable/c/45b2e8b0fdd280aba04c3cc869e9ae500c44e4b7> (patch)
- <https://git.kernel.org/stable/c/f1706e0e1a74b095cbc60375b9b1e6205f5f4c98> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2025-38145 · Whole record: https://cve.day/CVE-2025-38145.json · Rebuilt by cve.day 2026-11-25T22:59:00.538Z
