Linux · Linux Kernel · CVE-2024-41935
**Name of the Vulnerable Software and Affected Versions**
Linux kernel versions prior to 6.6.74
**Description**
The issue arises from the Linux kernel's handling of the extent tree during its shrink operation. Specifically, when there is a huge number of extent nodes in the extent tree, the kernel may hold a read-write lock (rwlock) for an extremely long time, potentially triggering a kernel hang issue. This occurs because the rwlock is used to protect the core structure data of the extent tree during its shrink operation. The patch resolves this by shrinking the read extent node in batches, thereby reducing the critical region of the rwlock and avoiding its prolonged hold.
**Recommendations**
For Linux kernel versions prior to 6.6.74, update to version 6.6.74 or later to resolve the issue. As a temporary workaround, consider applying configuration changes to minimize the risk of kernel hang issues, although specific details on such changes are not provided.