CWE
755
Advisory Published
Updated

CVE-2024-50202: nilfs2: propagate directory read errors from nilfs_find_entry()

First published: Fri Nov 08 2024(Updated: )

In the Linux kernel, the following vulnerability has been resolved: nilfs2: propagate directory read errors from nilfs_find_entry() Syzbot reported that a task hang occurs in vcs_open() during a fuzzing test for nilfs2. The root cause of this problem is that in nilfs_find_entry(), which searches for directory entries, ignores errors when loading a directory page/folio via nilfs_get_folio() fails. If the filesystem images is corrupted, and the i_size of the directory inode is large, and the directory page/folio is successfully read but fails the sanity check, for example when it is zero-filled, nilfs_check_folio() may continue to spit out error messages in bursts. Fix this issue by propagating the error to the callers when loading a page/folio fails in nilfs_find_entry(). The current interface of nilfs_find_entry() and its callers is outdated and cannot propagate error codes such as -EIO and -ENOMEM returned via nilfs_find_entry(), so fix it together.

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel>=2.6.30<4.19.323
Linux Kernel>=4.20<5.4.285
Linux Kernel>=5.5<5.10.228
Linux Kernel>=5.11<5.15.169
Linux Kernel>=5.16<6.1.114
Linux Kernel>=6.2<6.6.58
Linux Kernel>=6.7<6.11.5
Linux Kernel=6.12-rc1
Linux Kernel=6.12-rc2
Linux Kernel=6.12-rc3

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-50202?

    CVE-2024-50202 has been categorized as a medium severity vulnerability.

  • How do I fix CVE-2024-50202?

    To mitigate CVE-2024-50202, it is recommended to update the Linux kernel to the latest stable release or the patched version that resolves this issue.

  • Which versions of the Linux kernel are affected by CVE-2024-50202?

    CVE-2024-50202 affects multiple versions of the Linux kernel between 2.6.30 and 6.12-rc3.

  • What is the nature of the vulnerability in CVE-2024-50202?

    The vulnerability CVE-2024-50202 involves a task hang in vcs_open() due to propagated directory read errors from nilfs_find_entry().

  • Can CVE-2024-50202 lead to data loss?

    While CVE-2024-50202 primarily causes a task hang, it may indirectly affect data operations, leading to potential data loss during the hang.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203