CVE-2024-41087: ata: libata-core: Fix double free on error

Published Jul 29, 2024
·
Updated

ata: libata-core: Fix double free on error

Affected Software

11 affected componentsFixes available
Linux Linux kernel>=4.17<4.19.317
Linux Linux kernel>=4.20<5.4.279
Linux Linux kernel>=5.5<5.10.221
Linux Linux kernel>=5.11<5.15.162
Linux Linux kernel>=5.16<6.1.97
Linux Linux kernel>=6.2<6.6.37
Linux Linux kernel>=6.7<6.9.8
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1
Microsoft azl3 kernel 6.6.35.1-5
Microsoft azl3 kernel 6.6.43.1-7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to 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
  2. Upgrade

    Upgrade debian/linux-6.1 to a version that resolves this vulnerability.

    Fixed in 6.1.129-1~deb11u1
  3. Upgrade

    Upgrade Linux kernel (ata: libata-core) to a version that resolves this vulnerability.

    Patch Fix double free on error
  4. 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

Jul 29, 2024
CVE Published
via MITRE·03:48 PM
Data Sourced
via MITRE·03:48 PM
DescriptionSeverity
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 16, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Apr 29, 2025
Data Sourced
via Ubuntu·06:22 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-41087?

CVE-2024-41087 is classified as a moderate severity vulnerability in the Linux kernel.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203