CVE-2025-38145

5.5 MEDIUM

📋 TL;DR

A NULL pointer dereference vulnerability exists in the Linux kernel's aspeed_lpc_enable_snoop() function due to missing NULL check after memory allocation failure. This could cause kernel crashes or denial of service on systems using ASPEED LPC hardware. Affects Linux systems with ASPEED BMC hardware support.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Kernel versions containing the vulnerable aspeed_lpc_enable_snoop() function before the fix
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects systems with ASPEED LPC hardware support (typically BMC/management controllers). Requires specific hardware to trigger.

📦 What is this software?

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Kernel panic leading to system crash and denial of service, potentially requiring physical reboot.

🟠

Likely Case

System crash or instability when the specific memory allocation fails during LPC snoop initialization.

🟢

If Mitigated

Minor performance impact from additional NULL check with no security impact when patched.

🌐 Internet-Facing: LOW - Requires local access or specific hardware interaction, not directly exploitable over network.
🏢 Internal Only: MEDIUM - Could be exploited by local users or through other vulnerabilities to cause denial of service on affected systems.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: HIGH

Exploitation requires triggering memory allocation failure in specific kernel function, typically requiring local access or hardware manipulation.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Kernel commits: 1fd889c145722579aa038c31cbc07cfdd4d75166, 2beee9cf833374550e673d428ad8b6ab37c175b3, 45b2e8b0fdd280aba04c3cc869e9ae500c44e4b7, 8312b1f776f71979bf33bda7acc05b348e8792c7, c550999f939b529d28a914d5034cc4290066aea6

Vendor Advisory: https://git.kernel.org/stable/c/1fd889c145722579aa038c31cbc07cfdd4d75166

Restart Required: Yes

Instructions:

1. Update Linux kernel to version containing the fix commits. 2. Check with your distribution for backported patches. 3. Reboot system after kernel update.

🔧 Temporary Workarounds

Disable ASPEED LPC snoop if not needed

linux

Prevent the vulnerable function from being called by disabling LPC snoop functionality

echo 0 > /sys/class/misc/aspeed-lpc-snoop/device/snoop_enable

🧯 If You Can't Patch

  • Restrict local access to systems with ASPEED hardware
  • Monitor system logs for kernel panic or oops messages related to aspeed_lpc

🔍 How to Verify

Check if Vulnerable:

Check kernel version and if ASPEED LPC driver is loaded: lsmod | grep aspeed_lpc

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version includes fix commits or check /proc/version for patched kernel

📡 Detection & Monitoring

Log Indicators:

  • Kernel panic messages
  • NULL pointer dereference in kernel logs
  • aspeed_lpc related crash in dmesg

Network Indicators:

  • None - local vulnerability only

SIEM Query:

search 'kernel panic' OR 'NULL pointer dereference' AND 'aspeed_lpc' in system logs

🔗 References

📤 Share & Export