CVE-2022-50523

5.5 MEDIUM

📋 TL;DR

This CVE describes a memory leak vulnerability in the Linux kernel's Rockchip clock driver. When clk_register() fails in rockchip_clk_register_pll(), the kmemdup()-allocated memory for the rate table is not freed, causing a kernel memory leak. This affects Linux systems using Rockchip processors.

💻 Affected Systems

Products:
  • Linux kernel with Rockchip clock driver
Versions: Linux kernel versions before the fix commits (specific versions depend on distribution backports)
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects systems with Rockchip hardware (e.g., ARM-based devices like some single-board computers, embedded systems). Requires the rockchip_clk driver to be loaded.

⚠️ Risk & Real-World Impact

🔴

Worst Case

Sustained exploitation could lead to kernel memory exhaustion, causing system instability, denial of service, or potential kernel crashes.

🟠

Likely Case

Gradual memory consumption over time leading to performance degradation and eventual system instability requiring reboots.

🟢

If Mitigated

Minimal impact with proper monitoring and regular system maintenance; memory leaks would be detected before causing critical issues.

🌐 Internet-Facing: LOW - This is a local kernel vulnerability requiring local access; not directly exploitable over network.
🏢 Internal Only: MEDIUM - Local users or processes could trigger the memory leak, potentially affecting system stability for all users on the same system.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: NO
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires local access and ability to trigger the clk_register() failure condition. No known public exploits.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Fixed in Linux kernel stable releases via the referenced commits

Vendor Advisory: https://git.kernel.org/stable/c/20201c3a0a32f127fa4bdf379d6ac01c2978702d

Restart Required: Yes

Instructions:

1. Update Linux kernel to version containing the fix commits. 2. For distributions: Use package manager (apt/yum/dnf) to update kernel package. 3. Reboot system to load new kernel.

🔧 Temporary Workarounds

Unload rockchip_clk module

linux

Prevent vulnerability by unloading the affected kernel module if not required

rmmod rockchip_clk

Blacklist module loading

linux

Prevent automatic loading of vulnerable module

echo 'blacklist rockchip_clk' >> /etc/modprobe.d/blacklist.conf

🧯 If You Can't Patch

  • Monitor system memory usage closely for unusual increases
  • Implement regular system reboots to clear accumulated memory leaks

🔍 How to Verify

Check if Vulnerable:

Check if rockchip_clk module is loaded: lsmod | grep rockchip_clk AND check kernel version against patched versions

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version includes fix commits: grep -r 'rockchip_clk_register_pll' /lib/modules/$(uname -r)/source/ OR check kernel changelog

📡 Detection & Monitoring

Log Indicators:

  • Kernel oops messages
  • Out of memory errors in dmesg
  • Increasing memory usage in system logs

SIEM Query:

source="kernel" AND ("out of memory" OR "kernel panic" OR "slab error")

🔗 References

📤 Share & Export