CVE-2022-49391
📋 TL;DR
This CVE describes a double-free vulnerability in the MediaTek SCP (System Control Processor) remoteproc driver in the Linux kernel. If exploited, it could lead to memory corruption, potentially causing kernel crashes or privilege escalation. This affects Linux systems using MediaTek processors with the vulnerable driver.
💻 Affected Systems
- Linux kernel with MediaTek SCP remoteproc driver
📦 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 →⚠️ Risk & Real-World Impact
Worst Case
Kernel panic leading to system crash, or local privilege escalation allowing attackers to gain root access on the system.
Likely Case
System instability or crashes when the MediaTek SCP driver is loaded and the vulnerable code path is triggered, potentially through normal driver operations.
If Mitigated
No impact if the vulnerable driver is not loaded or the system is patched.
🎯 Exploit Status
Exploitation requires local access and knowledge of kernel memory management. The double-free occurs during driver removal, so exploitation timing is constrained.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Linux kernel versions containing commits adc02700236613b344a947a897fc2741d52a43b9 and eac3e5b1c12f85732e60f5f8b985444d273866bb
Vendor Advisory: https://git.kernel.org/stable/c/adc02700236613b344a947a897fc2741d52a43b9
Restart Required: No
Instructions:
1. Update Linux kernel to version containing the fix commits. 2. For distributions: Use package manager to update kernel package. 3. Rebuild kernel if using custom kernel. 4. No reboot required for kernel module updates, but recommended for stability.
🔧 Temporary Workarounds
Disable MediaTek SCP driver
allPrevent loading of the vulnerable driver module
echo 'blacklist mtk_scp' >> /etc/modprobe.d/blacklist.conf
rmmod mtk_scp
🧯 If You Can't Patch
- Restrict local user access to systems using MediaTek processors
- Monitor system logs for kernel panics or unusual driver behavior
🔍 How to Verify
Check if Vulnerable:
Check if mtk_scp module is loaded: lsmod | grep mtk_scp. Check kernel version: uname -r and compare with patched versions.
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version includes fix commits: git log --oneline | grep -E 'adc02700236613b344a947a897fc2741d52a43b9|eac3e5b1c12f85732e60f5f8b985444d273866bb'
📡 Detection & Monitoring
Log Indicators:
- Kernel panic messages
- Oops messages in dmesg
- System crashes related to memory corruption
Network Indicators:
- None - local vulnerability only
SIEM Query:
source="kernel" AND ("panic" OR "Oops" OR "double free")