CVE-2024-50043

nfsd: fix possible badness in FREE_STATEID

State
Published
Severity
9.8 Critical
Published
Oct 21, 2024
Updated
Oct 21, 2026
Reserved
Oct 21, 2024

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 3f29cc82a84c23cfd12b903029dd26002ca825f5 to before 7ca9e472ce5c67daa3188a348ece8c02a0765039Affected
  • 3f29cc82a84c23cfd12b903029dd26002ca825f5 to before c88c150a467fcb670a1608e2272beeee3e86df6eAffected
  • 172d038b7c4d3cfa9fc5ac210577c5c4f8256320Affected
  • 6.6.160 to before 6.7Affected
LinuxLinux
  • 6.9Affected
  • before 6.9Not affected
  • 6.11.4 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.