CVE-2024-50043: nfsd: fix possible badness in FREE_STATEID
In the Linux kernel, the following vulnerability has been resolved:
nfsd: fix possible badness in FREESTATEID
When multiple FREESTATEIDs are sent for the same delegation stateid, it can lead to a possible either use-after-free or counter refcount underflow errors.
In nfsd4freestateid() under the client lock we find a delegation stateid, however the code drops the lock before calling nfs4putstid(), that allows another FREESTATE to find the stateid again. The first one will proceed to then free the stateid which leads to either use-after-free or decrementing already zeroed counter.
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50043?
CVE-2024-50043 has the potential for severe impact due to possible use-after-free or refcount underflow errors in the Linux kernel.
How do I fix CVE-2024-50043?
To mitigate CVE-2024-50043, update the Linux kernel to a patched version such as 5.10.223-1, 6.1.128-1, or later.
Which Linux kernel versions are affected by CVE-2024-50043?
CVE-2024-50043 affects Linux kernel versions up to 6.11.4 and pre-release versions 6.12-rc1 and 6.12-rc2.
Is CVE-2024-50043 related to network file system (nfs)?
Yes, CVE-2024-50043 is directly related to the nfsd process in the Linux kernel.
What could happen if CVE-2024-50043 is exploited?
Exploitation of CVE-2024-50043 may lead to undefined behavior, potentially resulting in system crashes or unauthorized access.