CVE-2022-49811
📋 TL;DR
This CVE describes a use-after-free vulnerability in the Linux kernel's DRBD (Distributed Replicated Block Device) subsystem. The flaw occurs in drbd_create_device() where drbd_destroy_connection() frees a connection object that could still be accessed, potentially leading to kernel crashes or arbitrary code execution. Systems using DRBD for storage replication are affected.
💻 Affected Systems
- Linux kernel with DRBD module
📦 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 →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, or potential privilege escalation to kernel-level code execution allowing full system compromise.
Likely Case
Kernel crash causing system instability, denial of service, or data corruption in DRBD-managed storage.
If Mitigated
Limited impact if DRBD is not configured or used, or if the system has kernel hardening protections like KASLR and SMEP/SMAP.
🎯 Exploit Status
Exploitation requires local access or ability to trigger DRBD operations. No public exploits known.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Fixed in Linux kernel stable releases via commits referenced in CVE
Vendor Advisory: https://git.kernel.org/stable/c/7d93417d596402ddd46bd76c721f205d09d0d025
Restart Required: Yes
Instructions:
1. Update Linux kernel to patched version from your distribution. 2. For custom kernels, apply commits: 7d93417d596402ddd46bd76c721f205d09d0d025, 813a8dd9c45fd46f5cbbfbedf0791afa7740ccf5, 9ed51414aef6e59e832e2960f10766dce2d5b1a1, a7a1598189228b5007369a9622ccdf587be0730f, bf47ca1b35fc1f55091ffaff5fbe41ea0c6f59a1. 3. Reboot system.
🔧 Temporary Workarounds
Disable DRBD module
linuxUnload DRBD kernel module if not required
sudo modprobe -r drbd
echo 'blacklist drbd' | sudo tee /etc/modprobe.d/blacklist-drbd.conf
🧯 If You Can't Patch
- Ensure DRBD module is not loaded if not required
- Restrict access to systems using DRBD to trusted users only
🔍 How to Verify
Check if Vulnerable:
Check if DRBD module is loaded: lsmod | grep drbd. Check kernel version against distribution advisories.
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version is patched and DRBD module version matches fixed releases.
📡 Detection & Monitoring
Log Indicators:
- Kernel oops messages in /var/log/kern.log or dmesg
- DRBD-related crash logs
- System instability after DRBD operations
Network Indicators:
- Unusual DRBD synchronization failures
SIEM Query:
source="kernel" AND ("oops" OR "BUG" OR "general protection fault") AND "drbd"
🔗 References
- https://git.kernel.org/stable/c/7d93417d596402ddd46bd76c721f205d09d0d025
- https://git.kernel.org/stable/c/813a8dd9c45fd46f5cbbfbedf0791afa7740ccf5
- https://git.kernel.org/stable/c/9ed51414aef6e59e832e2960f10766dce2d5b1a1
- https://git.kernel.org/stable/c/a7a1598189228b5007369a9622ccdf587be0730f
- https://git.kernel.org/stable/c/bf47ca1b35fc1f55091ffaff5fbe41ea0c6f59a1
- https://git.kernel.org/stable/c/c2a00b149836d60c222930bbea6b2139caf34d4f
- https://git.kernel.org/stable/c/fc1897f16ebcfd22364f2afcc27f53a740f3bc7a