CVE-2022-49813

5.5 MEDIUM

📋 TL;DR

This CVE describes a resource leak vulnerability in the Linux kernel's Elastic Network Adapter (ENA) driver. When pci_register_driver() fails during initialization, the driver doesn't properly clean up a workqueue it created, leading to a kernel memory leak. Systems using the ENA driver for AWS Elastic Network Adapters are affected.

💻 Affected Systems

Products:
  • Linux kernel with ENA driver
Versions: Linux kernel versions with vulnerable ENA driver code (specific commit ranges in references)
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects systems using Elastic Network Adapter (ENA) drivers, commonly found in AWS EC2 instances and other cloud environments.

📦 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, crashes, or denial of service on affected systems.

🟠

Likely Case

Memory leak gradually consumes kernel resources, potentially leading to performance degradation or system instability over time.

🟢

If Mitigated

With proper patching, the vulnerability is eliminated; without patching, impact depends on frequency of driver initialization failures.

🌐 Internet-Facing: LOW - This is a local kernel driver issue requiring driver initialization failure conditions.
🏢 Internal Only: MEDIUM - Affects systems using ENA drivers, particularly cloud instances where driver initialization might fail during scaling events.

🎯 Exploit Status

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

Exploitation requires triggering specific driver initialization failure conditions, making it difficult to weaponize reliably.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Linux kernel with fixes from referenced commits (0e2369223b174d198ec42a3ec0a7f06c8727b968 and related)

Vendor Advisory: https://git.kernel.org/stable/c/0e2369223b174d198ec42a3ec0a7f06c8727b968

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. 3. Reboot system to load new kernel.

🔧 Temporary Workarounds

Disable ENA driver

linux

Prevent loading of vulnerable ENA driver module

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

🧯 If You Can't Patch

  • Monitor kernel memory usage for unusual increases
  • Implement system restart schedules to clear accumulated memory leaks

🔍 How to Verify

Check if Vulnerable:

Check if ENA driver is loaded: lsmod | grep ena. If loaded, check kernel version against patched versions.

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version includes fix commits or is newer than vulnerable versions. Check dmesg for ENA driver initialization errors.

📡 Detection & Monitoring

Log Indicators:

  • Kernel oom-killer messages
  • Memory allocation failures in dmesg
  • ENA driver initialization errors

Network Indicators:

  • Network interface failures on ENA devices

SIEM Query:

source="kernel" AND ("out of memory" OR "ENA" OR "workqueue" AND "leak")

🔗 References

📤 Share & Export