CVE-2022-49433
📋 TL;DR
This vulnerability in the Linux kernel's RDMA hfi1 driver allows a use-after-initialization condition where a lock is accessed before being properly initialized during device probe failures. This affects systems using InfiniBand hardware with the hfi1 driver. The issue can cause kernel panics or system instability during device initialization failures.
💻 Affected Systems
- Linux kernel with hfi1 RDMA driver
📦 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 →⚠️ Risk & Real-World Impact
Worst Case
Kernel panic leading to system crash and denial of service during device initialization failures.
Likely Case
System instability or crash when hfi1 driver fails to initialize properly, requiring reboot.
If Mitigated
Minor system disruption during device initialization failures with proper error handling.
🎯 Exploit Status
Requires ability to trigger hfi1 device probe failure, typically requiring privileged access or specific hardware conditions.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Fixed in kernel commits: 05c03dfd09c069c4ffd783b47b2da5dcc9421f2c and related backports
Vendor Advisory: https://git.kernel.org/stable/c/05c03dfd09c069c4ffd783b47b2da5dcc9421f2c
Restart Required: Yes
Instructions:
1. Update Linux kernel to version containing the fix. 2. Check distribution-specific security advisories. 3. Reboot system to load patched kernel.
🔧 Temporary Workarounds
Disable hfi1 driver
linuxPrevent loading of vulnerable hfi1 driver if not needed
echo 'blacklist hfi1' >> /etc/modprobe.d/blacklist.conf
rmmod hfi1
🧯 If You Can't Patch
- Ensure proper hardware initialization and avoid triggering device probe failures
- Monitor system logs for hfi1 initialization errors and restart affected systems
🔍 How to Verify
Check if Vulnerable:
Check kernel version and if hfi1 module is loaded: lsmod | grep hfi1 && uname -r
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version is patched and check dmesg for absence of lockdep warnings during hfi1 initialization
📡 Detection & Monitoring
Log Indicators:
- Kernel messages about lockdep warnings
- hfi1 initialization failures
- Call traces mentioning sdma_clean or hfi1_free_devdata
Network Indicators:
- None - local kernel issue
SIEM Query:
source="kernel" AND ("lockdep" OR "hfi1" OR "sdma_clean")
🔗 References
- https://git.kernel.org/stable/c/05c03dfd09c069c4ffd783b47b2da5dcc9421f2c
- https://git.kernel.org/stable/c/288d198f50434f29b4a26a9de4394ae2305ad8af
- https://git.kernel.org/stable/c/30eb275e7ed588270ae159cc590a96658e0cfd8f
- https://git.kernel.org/stable/c/66090815a24ce14cf51ef5453fc0218fe8a39bc2
- https://git.kernel.org/stable/c/addb192000d8819c0b1553453994df9bb54c28db
- https://git.kernel.org/stable/c/ca55150bff5817af4f857a746ecab9862c23e12a
- https://git.kernel.org/stable/c/fc0750e659db7b315bf6348902cc8ca3cdd4b8d8