CVE-2024-41013: xfs: don't walk off the end of a directory data block

Published Jul 29, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

xfs: don't walk off the end of a directory data block

This adds sanity checks for xfsdir2dataunused and xfsdir2dataentry to make sure don't stray beyond valid memory region. Before patching, the loop simply checks that the start offset of the dup and dep is within the range. So in a crafted image, if last entry is xfsdir2dataunused, we can change dup->length to dup->length-1 and leave 1 byte of space. In the next traversal, this space will be considered as dup or dep. We may encounter an out of bound read when accessing the fixed members.

In the patch, we make sure that the remaining bytes large enough to hold an unused entry before accessing xfsdir2dataunused and xfsdir2dataunused is XFSDIR2DATAALIGN byte aligned. We also make sure that the remaining bytes large enough to hold a dirent with a single-byte name before accessing xfsdir2dataentry.

Affected Software

9 affected componentsFixes available
redhat/kernel<6.11
6.11
IBM Security Verify Governance<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Software Stack<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Virtual Appliance<=ISVG 10.0.2
IBM Security Verify Governance Identity Manager Container<=ISVG 10.0.2
Linux Linux kernel<6.1.142
Linux Linux kernel>=6.2<6.6.68
Linux Linux kernel>=6.7<6.11
Microsoft cbl2 kernel 5.15.186.1-1

Event History

Jul 29, 2024
CVE Published
via MITRE·06:36 AM
Data Sourced
via MITRE·06:36 AM
Description
Data Sourced
via NVD·07:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 27, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·01:02 AM
Affected Software
Updated
via Microsoft·01:02 AM
DescriptionSeverity

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-41013?

CVE-2024-41013 is classified as a high severity vulnerability due to its potential impact on the Linux kernel's xfs filesystem.

2

How do I fix CVE-2024-41013?

To fix CVE-2024-41013, update the Linux kernel to version 6.11 or later as per the provided remedies.

3

What systems are affected by CVE-2024-41013?

CVE-2024-41013 affects systems running vulnerable versions of the Linux kernel prior to 6.11.

4

What type of vulnerability is CVE-2024-41013?

CVE-2024-41013 is a memory management vulnerability specifically affecting directory data blocks in the xfs filesystem.

5

What happens if CVE-2024-41013 is exploited?

Exploitation of CVE-2024-41013 could lead to unexpected behavior or crashes in systems using the xfs filesystem.

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