# CVE-2024-56779: nfsd: fix nfs4\_openowner leak when concurrent nfsd4\_open occur

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.01% (percentile 62, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-01-08T17:49:17.070Z
- **Modified:** 2026-10-15T02:17:11.073Z

## Who should check

- Anyone running Linux \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< a85364f0d30dee01c5d5b4afa55a9629a8f36d8e; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 2d505a801e57428057563762f67a5a62009b2600; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 0ab0a3ad24e970e894abcac58f85c332d1726749; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 45abb68c941ebc9a35c6d3a7b08196712093c636; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 37dfc81266d3a32294524bfadd3396614f8633ee; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 6f73f920b7ad0084373e46121d7ac34117aed652; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 98100e88dd8865999dc6379a3356cd799795fe7b
- Anyone running Linux 3.17

## Description

In the Linux kernel, the following vulnerability has been resolved:

nfsd: fix nfs4\_openowner leak when concurrent nfsd4\_open occur

The action force umount(umount -f) will attempt to kill all rpc\_task even
umount operation may ultimately fail if some files remain open.
Consequently, if an action attempts to open a file, it can potentially
send two rpc\_task to nfs server.

                   NFS CLIENT
thread1                             thread2
open("file")
...
nfs4\_do\_open
 \_nfs4\_do\_open
  \_nfs4\_open\_and\_get\_state
   \_nfs4\_proc\_open
    nfs4\_run\_open\_task
     /\* rpc\_task1 \*/
     rpc\_run\_task
     rpc\_wait\_for\_completion\_task

                                    umount -f
                                    nfs\_umount\_begin
                                     rpc\_killall\_tasks
                                      rpc\_signal\_task
     rpc\_task1 been wakeup
     and return -512
 \_nfs4\_do\_open // while loop
    ...
    nfs4\_run\_open\_task
     /\* rpc\_task2 \*/
     rpc\_run\_task
     rpc\_wait\_for\_completion\_task

While processing an open request, nfsd will first attempt to find or
allocate an nfs4\_openowner. If it finds an nfs4\_openowner that is not
marked as NFS4\_OO\_CONFIRMED, this nfs4\_openowner will released. Since
two rpc\_task can attempt to open the same file simultaneously from the
client to server, and because two instances of nfsd can run
concurrently, this situation can lead to lots of memory leak.
Additionally, when we echo 0 to /proc/fs/nfsd/threads, warning will be
triggered.

                    NFS SERVER
nfsd1                  nfsd2       echo 0 \> /proc/fs/nfsd/threads

nfsd4\_open
 nfsd4\_process\_open1
  find\_or\_alloc\_open\_stateowner
   // alloc oo1, stateid1
                       nfsd4\_open
                        nfsd4\_process\_open1
                        find\_or\_alloc\_open\_stateowner
                        // find oo1, without NFS4\_OO\_CONFIRMED
                         release\_openowner
                          unhash\_openowner\_locked
                          list\_del\_init(&oo-\>oo\_perclient)
                          // cannot find this oo
                          // from client, LEAK!!!
                         alloc\_stateowner // alloc oo2

 nfsd4\_process\_open2
  init\_open\_stateid
  // associate oo1
  // with stateid1, stateid1 LEAK!!!
  nfs4\_get\_vfs\_file
  // alloc nfsd\_file1 and nfsd\_file\_mark1
  // all LEAK!!!

                         nfsd4\_process\_open2
                         ...

                                    write\_threads
                                     ...
                                     nfsd\_destroy\_serv
                                      nfsd\_shutdown\_net
                                       nfs4\_state\_shutdown\_net
                                        nfs4\_state\_destroy\_net
                                         destroy\_client
                                          \_\_destroy\_client
                                          // won't find oo1!!!
                                     nfsd\_shutdown\_generic
                                      nfsd\_file\_cache\_shutdown
                                       kmem\_cache\_destroy
                                       for nfsd\_file\_slab
                                       and nfsd\_file\_mark\_slab
                                       // bark since nfsd\_file1
                                       // and nfsd\_file\_mark1
                                       // still alive

=======================================================================
BUG nfsd\_file (Not tainted): Objects remaining in nfsd\_file on
\_\_kmem\_cache\_shutdown()
-----------------------------------------------------------------------

Slab 0xffd4000004438a80 objects=34 used=1 fp=0xff11000110e2ad28
flags=0x17ffffc0000240(workingset\|head\|node=0\|zone=2\|lastcpupid=0x1fffff)
CPU: 4 UID: 0 PID: 757 Comm: sh Not tainted 6.12.0-rc6+ \#19
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
1.16.1-2.fc37 04/01/2014
Call Trace:
 \<TASK\>
 dum
---truncated---

## Affected and fixed versions

- Linux: \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< a85364f0d30dee01c5d5b4afa55a9629a8f36d8e; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 2d505a801e57428057563762f67a5a62009b2600; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 0ab0a3ad24e970e894abcac58f85c332d1726749; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 45abb68c941ebc9a35c6d3a7b08196712093c636; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 37dfc81266d3a32294524bfadd3396614f8633ee; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 6f73f920b7ad0084373e46121d7ac34117aed652; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 98100e88dd8865999dc6379a3356cd799795fe7b (cvelist)
- Linux: 3.17 (cvelist)

## Mitigation

- Upgrade Linux to 98100e88dd8865999dc6379a3356cd799795fe7b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56779. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56779.md
Affected: Linux >= 3234975f477f746c22d076ea178a79ea104b2ca7, < a85364f0d30dee01c5d5b4afa55a9629a8f36d8e; >= 3234975f477f746c22d076ea178a79ea104b2ca7, < 2d505a801e57428057563762f67a5a62009b2600; >= 3234975f477f746c22d076ea178a79ea104b2ca7, < 0ab0a3ad24e970e894abcac58f85c332d1726749; >= 3234975f477f746c22d076e…
Fixed in: Linux 2d505a801e57428057563762f67a5a62009b2600, Linux 0ab0a3ad24e970e894abcac58f85c332d1726749, Linux 45abb68c941ebc9a35c6d3a7b08196712093c636, Linux 37dfc81266d3a32294524bfadd3396614f8633ee, Linux 6f73f920b7ad0084373e46121d7ac34117aed652, Linux 98100e88dd8865999dc6379a3356cd799795fe7b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56779 being exploited?

There is no confirmed exploitation: CVE-2024-56779 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.01% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-56779?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-56779?

Linux \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< a85364f0d30dee01c5d5b4afa55a9629a8f36d8e; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 2d505a801e57428057563762f67a5a62009b2600; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 0ab0a3ad24e970e894abcac58f85c332d1726749; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 45abb68c941ebc9a35c6d3a7b08196712093c636; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 37dfc81266d3a32294524bfadd3396614f8633ee; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 6f73f920b7ad0084373e46121d7ac34117aed652; \>= 3234975f477f746c22d076ea178a79ea104b2ca7, \< 98100e88dd8865999dc6379a3356cd799795fe7b; Linux 3.17.

### Is there a fix for CVE-2024-56779?

Yes. Fixed in Linux 2d505a801e57428057563762f67a5a62009b2600, Linux 0ab0a3ad24e970e894abcac58f85c332d1726749, Linux 45abb68c941ebc9a35c6d3a7b08196712093c636, Linux 37dfc81266d3a32294524bfadd3396614f8633ee, Linux 6f73f920b7ad0084373e46121d7ac34117aed652, Linux 98100e88dd8865999dc6379a3356cd799795fe7b. Upgrade Linux to 98100e88dd8865999dc6379a3356cd799795fe7b or later.

### How do I check if I'm affected by CVE-2024-56779?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/a85364f0d30dee01c5d5b4afa55a9629a8f36d8e>
- patch: <https://git.kernel.org/stable/c/2d505a801e57428057563762f67a5a62009b2600>
- patch: <https://git.kernel.org/stable/c/0ab0a3ad24e970e894abcac58f85c332d1726749>
- patch: <https://git.kernel.org/stable/c/45abb68c941ebc9a35c6d3a7b08196712093c636>
- patch: <https://git.kernel.org/stable/c/37dfc81266d3a32294524bfadd3396614f8633ee>
- patch: <https://git.kernel.org/stable/c/6f73f920b7ad0084373e46121d7ac34117aed652>
- patch: <https://git.kernel.org/stable/c/98100e88dd8865999dc6379a3356cd799795fe7b>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56779>

HTML: <https://flawdb.com/CVE-2024-56779> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56779>
