CVE Database›CVE-2025-38145

CVE-2025-38145

kernel: soc: aspeed: Add NULL check in aspeed_lpc_enable_snoop()

Loading…

Severity

Unknown

Red Hat Product Security

—

CVSS

Review impact separately from score.

Published · July 3, 2025

Updated · June 30, 2026

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]

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CWE not specified