CVE-2022-50317
📋 TL;DR
This is a null pointer dereference vulnerability in the Linux kernel's drm/bridge driver for Megachips display bridges. It allows local attackers to cause a kernel panic (denial of service) when removing the affected driver module. Systems using Linux kernels with the vulnerable driver are affected.
💻 Affected Systems
- Linux kernel with megachips_stdpxxxx_ge_b850v3_fw 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 →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
Local attacker causes kernel panic leading to system crash and denial of service
Likely Case
System crash during driver module removal, requiring reboot
If Mitigated
No impact with proper kernel hardening and module loading restrictions
🎯 Exploit Status
Requires local access and ability to remove kernel modules
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Linux kernel stable releases containing commit 1daf69228e310938177119c4eadcd30fc75c81e0
Vendor Advisory: https://git.kernel.org/stable/c/1daf69228e310938177119c4eadcd30fc75c81e0
Restart Required: No
Instructions:
1. Update Linux kernel to patched version from your distribution. 2. For custom kernels, apply the fix commit. 3. Rebuild and install kernel if needed.
🔧 Temporary Workarounds
Disable vulnerable driver
allPrevent loading of the megachips_stdpxxxx_ge_b850v3_fw kernel module
echo 'blacklist megachips_stdpxxxx_ge_b850v3_fw' >> /etc/modprobe.d/blacklist.conf
rmmod megachips_stdpxxxx_ge_b850v3_fw
🧯 If You Can't Patch
- Restrict module loading permissions to prevent unauthorized users from removing modules
- Implement kernel hardening features like SELinux/AppArmor to restrict module operations
🔍 How to Verify
Check if Vulnerable:
Check if megachips_stdpxxxx_ge_b850v3_fw module is loaded: lsmod | grep megachips
Check Version:
uname -r
Verify Fix Applied:
Check kernel version includes fix commit or is newer than patched releases
📡 Detection & Monitoring
Log Indicators:
- Kernel panic logs with 'null-ptr-deref' or 'general protection fault' during module removal
- System crash/reboot events
Network Indicators:
- None - local vulnerability only
SIEM Query:
kernel: "null-ptr-deref" OR "general protection fault" AND "megachips" OR "stdp"
🔗 References
- https://git.kernel.org/stable/c/1daf69228e310938177119c4eadcd30fc75c81e0
- https://git.kernel.org/stable/c/1ff673333d46d2c1b053ebd0c1c7c7c79e36943e
- https://git.kernel.org/stable/c/21764467ab396d9f08921e0a5ffa1214244e1ad9
- https://git.kernel.org/stable/c/4610e7a4111fa3f3ce27c09d6d94008c55f1cd31
- https://git.kernel.org/stable/c/5bc20bafcd87ba0858ab772cefc7047cb51bc249
- https://git.kernel.org/stable/c/7371fad5cfe6eada6bb5523c895fd6074b15c2b9
- https://git.kernel.org/stable/c/877e92e9b1bdeb580b31a46061005936be902cd4
- https://git.kernel.org/stable/c/aaa512ad1e59f2edf8a9e4f2b167a44b24670679