Bug 2320595 (CVE-2024-50043) - CVE-2024-50043 kernel: nfsd: fix possible badness in FREE_STATEID
Summary: CVE-2024-50043 kernel: nfsd: fix possible badness in FREE_STATEID
Keywords:
Status: NEW
Alias: CVE-2024-50043
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2320923
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-21 20:02 UTC by OSIDB Bzimport
Modified: 2024-10-22 13:24 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-10-21 20:02:05 UTC
In the Linux kernel, the following vulnerability has been resolved:

nfsd: fix possible badness in FREE_STATEID

When multiple FREE_STATEIDs are sent for the same delegation stateid,
it can lead to a possible either use-after-free or counter refcount
underflow errors.

In nfsd4_free_stateid() under the client lock we find a delegation
stateid, however the code drops the lock before calling nfs4_put_stid(),
that allows another FREE_STATE 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.

Comment 1 Avinash Hanwate 2024-10-22 11:19:33 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024102133-CVE-2024-50043-86f8@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.