CVE-2024-41057: cachefiles: fix slab-use-after-free in cachefiles_withdraw_cookie()

Published Jul 29, 2024
·
Updated

cachefiles: fix slab-use-after-free in cachefileswithdrawcookie()

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

11 affected componentsFixes available
redhat/kernel<6.1.101
6.1.101
redhat/kernel<6.6.42
6.6.42
redhat/kernel<6.9.11
6.9.11
redhat/kernel<6.10
6.10
Linux Linux kernel>=5.17<6.1.101
Linux Linux kernel>=6.2<6.6.42
Linux Linux kernel>=6.7<6.9.11
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.47.1-1
Microsoft azl3 kernel 6.6.35.1-5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.1.101
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.6.42
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.9.11
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.10
  5. 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
  6. Upgrade

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

    Fixed in 6.1.129-1~deb11u1
  7. Configuration

    Ensure fscache_withdraw_volume() is called before cachefiles_withdraw_objects() so that fscache_count_object() has executed before calling fscache_wait_for_objects().

    cachefiles (FSCACHE cache withdrawal flow) call_order = fscache_withdraw_volume() before cachefiles_withdraw_objects()
  8. Compensating control

    After setting FSCACHE_CACHE_IS_WITHDRAWN, wait for all cookie lookups to complete first, and then wait for fscache_cache->object_count == 0 to ensure the cookie does not exit after the volume has been freed and trigger the slab-use-after-free in cachefiles_withdraw_cookie().

Event History

Jul 29, 2024
CVE Published
via MITRE·02:57 PM
Data Sourced
via MITRE·02:57 PM
DescriptionSeverity
Withdrawn
via NVD·03:15 PM
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 11, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Nov 1, 2024
Data Sourced
via Launchpad·12:22 PM
Description
Nov 21, 2024
Withdrawn
via NVD·09:32 AM
Dec 15, 2024
Data Sourced
via Ubuntu·12:30 PM
RemedyDescriptionSeverityAffected Software
Aug 4, 2026
Withdrawn
via NVD·11:19 AM

Frequently Asked Questions

1

What is the severity of CVE-2024-41057?

CVE-2024-41057 is classified as a high severity vulnerability in the Linux kernel.

2

How do I fix CVE-2024-41057?

To fix CVE-2024-41057, upgrade your Linux kernel to one of the patched versions such as 6.1.101, 6.6.42, 6.9.11, or 6.10.

3

What systems are affected by CVE-2024-41057?

CVE-2024-41057 affects various versions of the Linux kernel, specifically versions from 5.17 up to 6.1.101, 6.2 up to 6.6.42, and 6.7 up to 6.9.11.

4

What is the nature of the vulnerability in CVE-2024-41057?

CVE-2024-41057 is a slab-use-after-free vulnerability found in the cachefiles_withdraw_cookie() function within the Linux kernel.

5

Is there any workaround for CVE-2024-41057?

There is no official workaround for CVE-2024-41057; the recommended action is to apply the security update.

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