CVE-2022-50324

5.5 MEDIUM

📋 TL;DR

This CVE describes a memory leak vulnerability in the Linux kernel's pxa2xx-flash driver. When the driver fails to remap memory during device probe, it doesn't properly free allocated resources, leading to kernel memory exhaustion over time. This affects Linux systems using the pxa2xx-flash MTD driver.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Versions before the fix commits (specific versions vary by distribution)
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ✅ No
Notes: Only vulnerable when using pxa2xx-flash MTD driver with specific hardware (Intel PXA2xx processors with flash memory).

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

⚠️ Risk & Real-World Impact

🔴

Worst Case

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

🟠

Likely Case

Gradual memory leak during device initialization failures, potentially causing system performance degradation over time.

🟢

If Mitigated

Minimal impact with proper monitoring and memory limits in place.

🌐 Internet-Facing: LOW - Requires local access or specific hardware configuration to trigger.
🏢 Internal Only: LOW - Requires specific hardware/driver configuration and local access to trigger.

🎯 Exploit Status

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

Requires specific hardware configuration and ability to trigger driver probe failures. Not remotely exploitable.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Kernel versions containing commits: 1d0c2b762dad2b8dd166e17c0e90b88b86a3284f, 2399401feee27c639addc5b7e6ba519d3ca341bf, 6fa9550ef3e13d7e9b2d4db6dd57292ccd072a90, 932baf593eb63dff40e40d7674f076fb7932cd5b, a1b061cafdbcb1ff259731f30e2bdc1de64dcaba

Vendor Advisory: https://git.kernel.org/stable/c/1d0c2b762dad2b8dd166e17c0e90b88b86a3284f

Restart Required: Yes

Instructions:

1. Update Linux kernel to patched version. 2. Check distribution-specific security advisories. 3. Reboot system after kernel update.

🔧 Temporary Workarounds

Disable pxa2xx-flash driver

linux

Prevent loading of vulnerable driver module

echo 'blacklist pxa2xx-flash' >> /etc/modprobe.d/blacklist.conf
rmmod pxa2xx-flash

🧯 If You Can't Patch

  • Monitor kernel memory usage for unusual patterns
  • Implement system memory limits and alerts

🔍 How to Verify

Check if Vulnerable:

Check if pxa2xx-flash driver is loaded: lsmod | grep pxa2xx-flash

Check Version:

uname -r

Verify Fix Applied:

Check kernel version against patched versions from git commits

📡 Detection & Monitoring

Log Indicators:

  • Kernel oom-killer messages
  • Memory allocation failures in dmesg
  • Driver probe failure messages

Network Indicators:

  • None - local vulnerability only

SIEM Query:

source="kernel" AND ("oom-killer" OR "memory allocation failure" OR "pxa2xx-flash")

🔗 References

📤 Share & Export