CVE-2021-47565·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: scsi: mpt3sas: Fix kernel panic during drive powercycle test While looping over shost's sdev list it is possible that one of the drives is getting removed and its sas_target object is freed but its sdev object remains intact. Consequently, a kernel panic can occur while the driver is trying to access the sas_address field of sas_target object without also checking the sas_target object for NULL.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.15.6
- Published
- 2024-05-24
Affected versions
From: 5.11
Until: 5.15.6
Fixed in: 5.15.6
How to fix this CVE
Update your Linux kernel to version 5.15.6 or later to resolve a critical null pointer dereference in the mpt3sas SCSI driver. This vulnerability can trigger a kernel panic when storage devices are removed during I/O operations because the driver fails to validate that a device's parent object still exists before accessing its memory. Apply the patch immediately on systems using affected kernel versions 5.11 through 5.15.5.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version: uname -r — verify if it falls within 5.11.x to 5.15.5
- Confirm mpt3sas driver is loaded: lsmod | grep mpt3sas — this vulnerability only affects systems with MPT3 SAS controllers
- Search kernel logs for panic signatures: grep -i 'kernel panic\|null pointer dereference\|mpt3sas' /var/log/kern.log* — look for crashes involving sas_target or sas_address access
- Validate the patch: cat /proc/version — confirm kernel version is 5.15.6 or later after update and reboot
FAQ
What is CVE-2021-47565?
This vulnerability is a null pointer dereference in the mpt3sas SCSI controller driver that occurs when a storage device is removed while the kernel is iterating through connected devices. The driver attempts to read device properties without first verifying that the device object has not been freed, leading to a kernel panic.
Is CVE-2021-47565 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are available. However, it can be triggered inadvertently during storage maintenance operations like drive hot-swaps or power cycling.
What versions of Kernel are affected by CVE-2021-47565?
Linux kernel versions 5.11.0 through 5.15.5 are vulnerable. Version 5.15.6 and all subsequent releases contain the necessary null pointer checks.
How do I check if my server is vulnerable to CVE-2021-47565?
Run 'uname -r' to check your kernel version — if it shows 5.11.x through 5.15.5 and 'lsmod | grep mpt3sas' returns results, your system is vulnerable.
Does Defensia detect CVE-2021-47565?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2021-47565 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0d4b29eaadc1f59cec0c7e85eae77d08fcca9824
- https://git.kernel.org/stable/c/0ee4ba13e09c9d9c1cb6abb59da8295d9952328b
- https://git.kernel.org/stable/c/2bf9c5a5039c8f4b037236aed505e6a25c1d5f7b
- https://git.kernel.org/stable/c/58ef2c7a6de13721865d84b80eecf56d6cba0937
- https://git.kernel.org/stable/c/5d4d50b1f159a5ebab7617f47121b4370aa58afe
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47565. Free for 1 server.
Get started free