CVE-2024-53173 NFSv4.0: Fix a use-after-free problem in the asynchronous open()
A use-after-free in the Linux kernel's NFSv4.0 asynchronous open() allows attackers to potentially execute code or escalate privileges via concurrent file operations.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-53173?
CVE-2024-53173 is a high-severity use after free vulnerability in Linux kernel, published on 27 Dec 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
NFSv4.0: Fix a use-after-free problem in the asynchronous open()
Yang Erkun reports that when two threads are opening files at the same time, and are forced to abort before a reply is seen, then the call to nfs_release_seqid() in nfs4_opendata_free() can result in a use-after-free of the pointer to the defunct rpc task of the other thread. The fix is to ensure that if the RPC call is aborted before the call to nfs_wait_on_sequence() is complete, then we must call nfs_release_seqid() in nfs4_open_release() before the rpc_task is freed.
Weakness: CWE-416
Which versions are affected by CVE-2024-53173?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-53173?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-53173 being exploited?
There is no known exploitation of CVE-2024-53173 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-55594, AZL-55623, BELL-CVE-2024-53173, DEBIAN-CVE-2024-53173, GHSA-79fx-6w6m-964r, UBUNTU-CVE-2024-53173.