CVE-2022-49262

5.5 MEDIUM

📋 TL;DR

A NULL pointer dereference vulnerability in the Linux kernel's octeontx2 crypto driver allows local attackers to cause a kernel panic (denial of service) when dm-crypt is enabled. This affects systems using Cavium/OCTEON TX2 processors with the vulnerable driver loaded. The vulnerability requires local access to trigger.

💻 Affected Systems

Products:
  • Linux kernel with octeontx2 crypto driver
Versions: Linux kernel 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: 1) Using Cavium/OCTEON TX2 hardware, 2) octeontx2 crypto driver is loaded, 3) CONFIG_DM_CRYPT is enabled in kernel config

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

⚠️ Risk & Real-World Impact

🔴

Worst Case

Local attacker causes complete system crash/kernel panic, leading to denial of service and potential data loss from unsaved work.

🟠

Likely Case

System crash requiring reboot, causing temporary service disruption.

🟢

If Mitigated

No impact if proper access controls prevent local users from loading/unloading kernel modules.

🌐 Internet-Facing: LOW - Requires local access, cannot be triggered remotely.
🏢 Internal Only: MEDIUM - Local users or processes could crash the system, but requires specific hardware/driver configuration.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: LOW - Simple local trigger, but requires specific hardware/driver configuration

Exploitation requires local access and ability to trigger driver operations with dm-crypt enabled.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Fixed in kernel commits: 2d841af23ae8f398c85dd1ff2dc24b5ec8ba4569, a1bf728f3388ac3a2c2dffa57e25622e90b9f6f2, a462214866eebbca87e13ff6d73092b1c4895624, e6374086f249295121384bfaa7cdcc8d461146f0

Vendor Advisory: https://git.kernel.org/stable/c/2d841af23ae8f398c85dd1ff2dc24b5ec8ba4569

Restart Required: Yes

Instructions:

1. Update Linux kernel to version containing the fix commits. 2. Rebuild kernel if compiling from source. 3. Reboot system to load patched kernel.

🔧 Temporary Workarounds

Disable octeontx2 crypto driver

linux

Prevent loading of vulnerable driver module

echo 'blacklist octeontx2_cpt' >> /etc/modprobe.d/blacklist.conf
rmmod octeontx2_cpt

Disable dm-crypt

linux

Remove CONFIG_DM_CRYPT from kernel configuration

Edit kernel config to remove CONFIG_DM_CRYPT=y and rebuild kernel

🧯 If You Can't Patch

  • Restrict local user access to prevent loading/unloading kernel modules
  • Implement strict access controls to limit who can interact with crypto subsystems

🔍 How to Verify

Check if Vulnerable:

Check if octeontx2_cpt driver is loaded: lsmod | grep octeontx2_cpt. Check kernel version against patched versions.

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version includes fix commits. Check that driver operates normally with dm-crypt enabled.

📡 Detection & Monitoring

Log Indicators:

  • Kernel panic messages mentioning NULL pointer dereference at 0x8
  • Call trace including crypto_unregister_alg, otx2_cpt_crypto_exit
  • System crash/reboot logs

Network Indicators:

  • None - local vulnerability only

SIEM Query:

source="kernel" AND ("NULL pointer dereference" OR "otx2_cpt" OR "crypto_unregister_alg")

🔗 References

📤 Share & Export