CVE Catalog

CVE-2024-50121

High
Published: Translated: NVD NIST

Summary

A vulnerability has been identified in the Linux kernel in the `nfs4_state_shutdown_net` function, which may lead to use-after-free errors. The issue occurs during the concurrent operation of `nfsd_client_shrinker` and the attempt to release resources associated with the NFS client.

Risk Assessment

This vulnerability may lead to system instability and potential memory leaks, threatening the integrity and availability of NFS services within the organization.

Recommendation

It is recommended to update the Linux kernel to the latest version where this vulnerability has been patched to minimize the risk of errors and performance issues.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: nfsd: cancel nfsd_shrinker_work using sync mode in nfs4_state_shutdown_net In the normal case, when we excute `echo 0 > /proc/fs/nfsd/threads`, the function `nfs4_state_destroy_net` in `nfs4_state_shutdown_net` will release all resources related to the hashed `nfs4_client`. If the `nfsd_client_shrinker` is running concurrently, the `expire_client` function will first unhash this client and then destroy it. This can lead to the following warning. Additionally, numerous use-after-free errors may occur as well. nfsd_client_shrinker echo 0 > /proc/fs/nfsd/threads expire_client nfsd_shutdown_net unhash_client ... nfs4_state_shutdown_net /* won't wait shrinker exit */ /* cancel_work(&nn->nfsd_shrinker_work) * nfsd_file for this /* won't destroy unhashed client1 */ * client1

Vulnerability data from NVD (NIST) · CISA KEV · EPSS