CVE-2021-47305
📋 TL;DR
This CVE describes a memory leak vulnerability in the Linux kernel's dma-buf/sync_file subsystem. When fence merging fails, the kernel doesn't properly release allocated fence objects, leading to gradual memory exhaustion. This affects any system using the affected Linux kernel versions with DMA buffer operations.
💻 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
Sustained exploitation could lead to kernel memory exhaustion, causing system instability, denial of service, or potential kernel crashes.
Likely Case
Gradual memory leak over time leading to performance degradation and eventual system instability requiring reboot.
If Mitigated
Minimal impact with proper memory monitoring and regular system maintenance.
🎯 Exploit Status
Exploitation requires ability to trigger specific kernel operations, typically through local access or compromised applications.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Patches available in stable kernel trees (see references for specific commits)
Vendor Advisory: https://git.kernel.org/stable/c/0d514185ae792d3a1903c8e1a83899aa996705ce
Restart Required: Yes
Instructions:
1. Identify current kernel version. 2. Update to patched kernel version from your distribution's repositories. 3. Reboot system to load new kernel.
🔧 Temporary Workarounds
Limit DMA buffer operations
linuxRestrict applications that use DMA buffer operations if not essential
🧯 If You Can't Patch
- Implement strict memory monitoring and alerting for unusual memory consumption
- Restrict local user access and application privileges to minimize attack surface
🔍 How to Verify
Check if Vulnerable:
Check kernel version and compare against patched versions in distribution advisories
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version after update matches patched version and monitor for memory leaks
📡 Detection & Monitoring
Log Indicators:
- Kernel oops messages
- Out of memory errors in system logs
- Increasing memory usage without clear cause
SIEM Query:
source="kernel" AND ("out of memory" OR "kernel panic" OR memory_usage > threshold)
🔗 References
- https://git.kernel.org/stable/c/0d514185ae792d3a1903c8e1a83899aa996705ce
- https://git.kernel.org/stable/c/19edcd97727aae9362444a859a24d99a8730cb27
- https://git.kernel.org/stable/c/19f51c2529339280d2c8c6427cd3e21ddf1ac3f8
- https://git.kernel.org/stable/c/41f45e91c92c8480242ea448d54e28c753b13902
- https://git.kernel.org/stable/c/e0355a0ad31a1d677b2a4514206de4902bd550e8
- https://git.kernel.org/stable/c/ffe000217c5068c5da07ccb1c0f8cce7ad767435
- https://git.kernel.org/stable/c/0d514185ae792d3a1903c8e1a83899aa996705ce
- https://git.kernel.org/stable/c/19edcd97727aae9362444a859a24d99a8730cb27
- https://git.kernel.org/stable/c/19f51c2529339280d2c8c6427cd3e21ddf1ac3f8
- https://git.kernel.org/stable/c/41f45e91c92c8480242ea448d54e28c753b13902
- https://git.kernel.org/stable/c/e0355a0ad31a1d677b2a4514206de4902bd550e8
- https://git.kernel.org/stable/c/ffe000217c5068c5da07ccb1c0f8cce7ad767435