Advisory Published
Updated

CVE-2024-50191: ext4: don't set SB_RDONLY after filesystem errors

First published: Fri Nov 08 2024(Updated: )

In the Linux kernel, the following vulnerability has been resolved: ext4: don't set SB_RDONLY after filesystem errors When the filesystem is mounted with errors=remount-ro, we were setting SB_RDONLY flag to stop all filesystem modifications. We knew this misses proper locking (sb->s_umount) and does not go through proper filesystem remount procedure but it has been the way this worked since early ext2 days and it was good enough for catastrophic situation damage mitigation. Recently, syzbot has found a way (see link) to trigger warnings in filesystem freezing because the code got confused by SB_RDONLY changing under its hands. Since these days we set EXT4_FLAGS_SHUTDOWN on the superblock which is enough to stop all filesystem modifications, modifying SB_RDONLY shouldn't be needed. So stop doing that.

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

Affected SoftwareAffected VersionHow to fix
Linux Kernel<5.15.168
Linux Kernel>=5.16<6.1.113
Linux Kernel>=6.2<6.6.57
Linux Kernel>=6.7<6.11.4
debian/linux<=5.10.223-1<=5.10.226-1
6.1.123-1
6.1.128-1
6.12.12-1
6.12.13-1
debian/linux-6.1
6.1.119-1~deb11u1

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-50191?

    CVE-2024-50191 has a severity rating that indicates potential impacts on filesystem modifications when errors occur.

  • How do I fix CVE-2024-50191?

    To fix CVE-2024-50191, update your Linux kernel to version 6.1.123-1, 6.1.119-1, 6.12.10-1, or 6.12.11-1.

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

    CVE-2024-50191 affects various versions of the Linux kernel up to 5.15.168 and between 5.16 and 6.1.113.

  • What is the nature of CVE-2024-50191?

    CVE-2024-50191 involves improper handling of the SB_RDONLY flag after filesystem errors in the ext4 filesystem.

  • Is there a recommended remedial action for CVE-2024-50191?

    The recommended action for CVE-2024-50191 is to apply patches or upgrade to the secure versions of the Linux kernel.

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