CVE-2022-49826
📋 TL;DR
This CVE describes a double-free vulnerability in the Linux kernel's libata-transport subsystem. When the ata_tport_add() function fails, it incorrectly calls ata_host_put() twice, leading to a null pointer dereference when unbinding devices. This affects Linux systems using ATA/SATA storage controllers.
💻 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 →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, potentially causing data corruption or loss if storage operations are interrupted.
Likely Case
System crash or kernel panic when specific error conditions occur during ATA device initialization, resulting in denial of service.
If Mitigated
System remains stable as the vulnerability only triggers under specific error conditions during device binding/unbinding operations.
🎯 Exploit Status
Exploitation requires local access and ability to trigger the error path in ata_tport_add(). No known public exploits.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Fixed in kernel commits: 30e12e2be27ac6c4be2af4163c70db381364706f, 377ff82c33c0cb74562a353361b64b33c09562cf, 865a6da40ba092c18292ae5f6194756131293745, 8c76310740807ade5ecdab5888f70ecb6d35732e, ac471468f7c16cda2525909946ca13ddbcd14000
Vendor Advisory: https://git.kernel.org/stable/c/30e12e2be27ac6c4be2af4163c70db381364706f
Restart Required: Yes
Instructions:
1. Update Linux kernel to version containing the fix commits. 2. Check your distribution's security advisories for specific patched versions. 3. Reboot system after kernel update.
🔧 Temporary Workarounds
Disable vulnerable module loading
linuxPrevent loading of ATA transport modules that could trigger the vulnerability
echo 'blacklist libata' >> /etc/modprobe.d/blacklist.conf
🧯 If You Can't Patch
- Restrict local access to prevent users from triggering device initialization failures
- Monitor system logs for kernel panic events related to ATA device operations
🔍 How to Verify
Check if Vulnerable:
Check kernel version and compare with distribution's security advisory. Vulnerable if using kernel before fix commits.
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version is updated to one containing the fix commits. Check /proc/version or uname -r.
📡 Detection & Monitoring
Log Indicators:
- Kernel panic messages mentioning 'ata_host_stop' or 'null-ptr-deref'
- System crash logs with ATA-related stack traces
- dmesg output showing 'Unable to handle kernel NULL pointer dereference' with libata in call trace
Network Indicators:
- None - this is a local kernel vulnerability
SIEM Query:
source="kernel" AND ("ata_host_stop" OR "null-ptr-deref" OR "libata" AND panic)
🔗 References
- https://git.kernel.org/stable/c/30e12e2be27ac6c4be2af4163c70db381364706f
- https://git.kernel.org/stable/c/377ff82c33c0cb74562a353361b64b33c09562cf
- https://git.kernel.org/stable/c/865a6da40ba092c18292ae5f6194756131293745
- https://git.kernel.org/stable/c/8c76310740807ade5ecdab5888f70ecb6d35732e
- https://git.kernel.org/stable/c/ac471468f7c16cda2525909946ca13ddbcd14000
- https://git.kernel.org/stable/c/bec9ded5404cb14e5f5470103d0973a2ff83d6a5