CVE-2024-42096

5.5 MEDIUM

📋 TL;DR

This CVE describes a kernel memory access vulnerability in the Linux kernel's profile_pc() function that improperly accesses stack memory. It affects Linux systems using timer-based profiling and could allow information disclosure or kernel crashes. The vulnerability primarily impacts systems with specific kernel configurations and profiling enabled.

💻 Affected Systems

Products:
  • Linux Kernel
Versions: Multiple versions prior to fixes in stable kernel trees (specific commits listed in references)
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ✅ No
Notes: Only vulnerable when timer-based profiling is enabled (CONFIG_PROFILING). Most distributions disable this by default.

📦 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 →

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 or system crash leading to denial of service, or potential information disclosure of kernel stack memory contents.

🟠

Likely Case

Kernel Address Sanitizer (KASAN) warnings and potential system instability when profiling is active, but no direct remote exploitation.

🟢

If Mitigated

Minimal impact as most systems don't use timer-based profiling by default; KASAN warnings are the primary observable effect.

🌐 Internet-Facing: LOW - This is a local kernel vulnerability requiring local access or kernel-level execution.
🏢 Internal Only: MEDIUM - Could be exploited by malicious local users or through kernel-level vulnerabilities to cause system instability.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: HIGH - Requires local access and specific kernel configuration

Primarily causes KASAN warnings and has been reported by syzkaller fuzzer for years. No known active exploitation.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Multiple stable kernel versions with commits listed in references

Vendor Advisory: https://git.kernel.org/stable/c/093d9603b60093a9aaae942db56107f6432a5dca

Restart Required: Yes

Instructions:

1. Update to a patched kernel version from your distribution vendor. 2. Reboot the system. 3. Verify the kernel version matches patched release.

🔧 Temporary Workarounds

Disable timer-based profiling

linux

Disable CONFIG_PROFILING kernel configuration option to remove vulnerable code path

echo 'CONFIG_PROFILING=n' >> .config
make oldconfig
make -j$(nproc)
make modules_install
make install

🧯 If You Can't Patch

  • Ensure CONFIG_PROFILING is disabled in kernel configuration
  • Restrict local user access and monitor for KASAN warnings in kernel logs

🔍 How to Verify

Check if Vulnerable:

Check kernel config for CONFIG_PROFILING=y and kernel version against affected ranges

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version is updated to include one of the fix commits, or CONFIG_PROFILING is disabled

📡 Detection & Monitoring

Log Indicators:

  • KASAN warnings in kernel logs (dmesg)
  • System instability or crashes when profiling is active

Network Indicators:

  • None - this is a local kernel vulnerability

SIEM Query:

Search for 'KASAN' or 'profile_pc' in kernel logs

🔗 References

📤 Share & Export