CVE-2022-50488
📋 TL;DR
This is a use-after-free vulnerability in the Linux kernel's BFQ I/O scheduler that allows local attackers to potentially crash the system or execute arbitrary code. It affects Linux systems using the BFQ scheduler when processes move between cgroups while I/O operations are in progress.
💻 Affected Systems
- Linux kernel
📦 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
Local privilege escalation to kernel-level code execution, leading to complete system compromise.
Likely Case
Kernel panic or system crash causing denial of service.
If Mitigated
System remains stable with no impact if patched or BFQ scheduler not used.
🎯 Exploit Status
Requires local access and specific conditions: BFQ scheduler enabled, cgroup operations, and concurrent I/O operations.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Patched in kernel commits: 094f3d9314d6, 5533742c7cb1, 64dc8c732f5c, 761564d93c82, b22fd72bfebd
Vendor Advisory: https://git.kernel.org/stable/c/094f3d9314d67691cb21ba091c1b528f6e3c4893
Restart Required: Yes
Instructions:
1. Update Linux kernel to patched version from your distribution vendor. 2. Reboot system to load new kernel.
🔧 Temporary Workarounds
Disable BFQ scheduler
linuxSwitch to alternative I/O scheduler like CFQ or deadline
echo 'cfq' > /sys/block/[device]/queue/scheduler
Avoid cgroup process moves during I/O
linuxImplement policies to prevent moving processes between cgroups while they have active I/O operations
🧯 If You Can't Patch
- Disable BFQ scheduler on all storage devices
- Restrict local user access and monitor for suspicious cgroup operations
🔍 How to Verify
Check if Vulnerable:
Check kernel version and if BFQ scheduler is active: cat /sys/block/sda/queue/scheduler | grep -q '\[bfq\]' && echo 'BFQ active'
Check Version:
uname -r
Verify Fix Applied:
Check kernel version is patched: uname -r should show version containing fixes from listed commits
📡 Detection & Monitoring
Log Indicators:
- Kernel panic logs
- KASAN reports of use-after-free in bfq_select_queue
SIEM Query:
kernel: "BUG: KASAN: use-after-free in bfq_select_queue" OR kernel: "bfqq->bic"
🔗 References
- https://git.kernel.org/stable/c/094f3d9314d67691cb21ba091c1b528f6e3c4893
- https://git.kernel.org/stable/c/5533742c7cb1bc9b1f0bf401cc397d44a3a9e07a
- https://git.kernel.org/stable/c/64dc8c732f5c2b406cc752e6aaa1bd5471159cab
- https://git.kernel.org/stable/c/761564d93c8265f65543acf0a576b32d66bfa26a
- https://git.kernel.org/stable/c/b22fd72bfebda3956efc4431b60ddfc0a51e03e0