CVE-2022-50276
📋 TL;DR
This CVE describes a NULL pointer dereference vulnerability in the Linux kernel's power supply subsystem. When the system fails to allocate memory for a property name string, subsequent code attempts to compare this NULL pointer, causing a kernel panic or system crash. This affects all Linux systems using the vulnerable kernel version with power management features enabled.
💻 Affected Systems
- Linux kernel
📦 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 →⚠️ Risk & Real-World Impact
Worst Case
Kernel panic leading to system crash and denial of service, potentially causing data loss or service disruption.
Likely Case
System crash or kernel panic when specific power management operations are performed under memory pressure conditions.
If Mitigated
Minor performance impact from additional memory allocation checks with no security impact when patched.
🎯 Exploit Status
Requires ability to trigger specific power management operations and memory pressure conditions
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Patched in stable kernel versions referenced in CVE links
Vendor Advisory: https://git.kernel.org/stable/c/104bb8a663451404a26331263ce5b96c34504049
Restart Required: Yes
Instructions:
1. Update Linux kernel to patched version from official distribution repositories. 2. Reboot system to load new kernel. 3. Verify kernel version after reboot.
🔧 Temporary Workarounds
Memory pressure reduction
allReduce likelihood of memory allocation failure by ensuring adequate system memory
echo 3 > /proc/sys/vm/drop_caches
sysctl -w vm.min_free_kbytes=65536
🧯 If You Can't Patch
- Monitor system memory usage and ensure adequate free memory
- Restrict non-essential power management operations if possible
🔍 How to Verify
Check if Vulnerable:
Check kernel version and compare with patched versions in CVE references
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version matches or exceeds patched version from stable kernel trees
📡 Detection & Monitoring
Log Indicators:
- Kernel panic messages in /var/log/kern.log or dmesg
- NULL pointer dereference errors in kernel logs
Network Indicators:
- None - local vulnerability only
SIEM Query:
source="kernel" AND ("NULL pointer" OR "kernel panic" OR "power_supply_get_battery_info")
🔗 References
- https://git.kernel.org/stable/c/104bb8a663451404a26331263ce5b96c34504049
- https://git.kernel.org/stable/c/279af90e65cbdb3e5c4519b0043324d7876bc5ec
- https://git.kernel.org/stable/c/5beadb55f4e36fafe5d6df5dcd5f85d803f3f134
- https://git.kernel.org/stable/c/8ea68b4e3fa9392ef9dae303abc8735a033c280f
- https://git.kernel.org/stable/c/b8131efb89d9f837c9244f900f0fc2699fd1181d
- https://git.kernel.org/stable/c/d21534ab4fd7883e1c8037a76671d4e8b6ea14cb