CVE-2024-41087: ata: libata-core: Fix double free on error
ata: libata-core: Fix double free on error
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1 - Upgrade
Upgrade
Linux kernel (ata: libata-core)to a version that resolves this vulnerability.Patch Fix double free on error - Configuration
Apply the kernel fix so that kfree(host) is executed only when devres_open_group() fails; if ata_port_alloc() fails and code goes to err_out, devres_release_group() will call ata_host_release(), so do not call kfree(host) again in ata_host_alloc().
Linux kernel (ata: libata-core/libata) kfree(host) on error path = only perform kfree(host) if the devres_open_group() call failed (avoid double free)
Event History
Frequently Asked Questions
What is the severity of CVE-2024-41087?
CVE-2024-41087 is classified as a moderate severity vulnerability in the Linux kernel.
How do I fix CVE-2024-41087?
To fix CVE-2024-41087, update to the recommended Linux kernel versions 5.10.223-1, 6.1.119-1, or later.
Which versions of the Linux kernel are affected by CVE-2024-41087?
CVE-2024-41087 affects Linux kernel versions between 4.17 and 6.6.37, excluding patched versions.
What is the nature of the vulnerability identified as CVE-2024-41087?
CVE-2024-41087 involves a double free error in the Linux kernel's libata-core component.
How can I verify if my system is vulnerable to CVE-2024-41087?
You can verify vulnerability to CVE-2024-41087 by checking your Linux kernel version against the affected versions listed in the vulnerability report.