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

Published Nov 8, 2024
·
Updated

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

nilfs2: propagate directory read errors from nilfsfindentry()

Syzbot reported that a task hang occurs in vcsopen() during a fuzzing test for nilfs2.

The root cause of this problem is that in nilfsfindentry(), which searches for directory entries, ignores errors when loading a directory page/folio via nilfsgetfolio() fails.

If the filesystem images is corrupted, and the isize 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, nilfscheckfolio() 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 nilfsfindentry().

The current interface of nilfsfindentry() and its callers is outdated and cannot propagate error codes such as -EIO and -ENOMEM returned via nilfsfindentry(), so fix it together.

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

12 affected componentsFixes available
Linux Linux kernel>=2.6.30<4.19.323
Linux Linux kernel>=4.20<5.4.285
Linux Linux kernel>=5.5<5.10.228
Linux Linux kernel>=5.11<5.15.169
Linux Linux kernel>=5.16<6.1.114
Linux Linux kernel>=6.2<6.6.58
Linux Linux kernel>=6.7<6.11.5
Linux Linux kernel=6.12-rc1
Linux Linux kernel=6.12-rc2
Linux Linux kernel=6.12-rc3
debian/linux<=5.10.223-1
5.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1

Event History

Nov 8, 2024
CVE Published
via MITRE·05:56 AM
Data Sourced
via MITRE·05:56 AM
Description
Data Sourced
via NVD·06:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 28, 2025
Data Sourced
via Launchpad·12:45 AM
Description
Apr 29, 2025
Data Sourced
via Ubuntu·01:00 AM
RemedyDescriptionSeverityAffected Software
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-50202?

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

2

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.

3

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.

4

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().

5

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