# CVE-2024-56558: nfsd: make sure exp active before svc\_export\_show

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-12-27T14:23:03.902Z
- **Modified:** 2026-08-05T11:45:06.425Z

## Who should check

- Anyone running Linux \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< e2fa0d0e327279a8defb87b263cd0bf288fd9261; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 7fd29d284b55c2274f7a748e6c5f25b4758b8da5; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 6cefcadd34e3c71c81ea64b899a0daa86314a51a; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 7d8f7816bebcd2e7400bb4d786eccb8f33c9f9ec; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 1cecfdbc6bfc89c516d286884c7f29267b95de2b; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 7365d1f8de63cffdbbaa2287ce0205438e1a922f; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< be8f982c369c965faffa198b46060f8853e0f1f0
- Anyone running Linux 3.17

## Description

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

nfsd: make sure exp active before svc\_export\_show

The function \`e\_show\` was called with protection from RCU. This only
ensures that \`exp\` will not be freed. Therefore, the reference count for
\`exp\` can drop to zero, which will trigger a refcount use-after-free
warning when \`exp\_get\` is called. To resolve this issue, use
\`cache\_get\_rcu\` to ensure that \`exp\` remains active.

------------\[ cut here \]------------
refcount\_t: addition on 0; use-after-free.
WARNING: CPU: 3 PID: 819 at lib/refcount.c:25
refcount\_warn\_saturate+0xb1/0x120
CPU: 3 UID: 0 PID: 819 Comm: cat Not tainted 6.12.0-rc3+ \#1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
1.16.1-2.fc37 04/01/2014
RIP: 0010:refcount\_warn\_saturate+0xb1/0x120
...
Call Trace:
 \<TASK\>
 e\_show+0x20b/0x230 \[nfsd\]
 seq\_read\_iter+0x589/0x770
 seq\_read+0x1e5/0x270
 vfs\_read+0x125/0x530
 ksys\_read+0xc1/0x160
 do\_syscall\_64+0x5f/0x170
 entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e

## Affected and fixed versions

- Linux: \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< e2fa0d0e327279a8defb87b263cd0bf288fd9261; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 7fd29d284b55c2274f7a748e6c5f25b4758b8da5; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 6cefcadd34e3c71c81ea64b899a0daa86314a51a; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 7d8f7816bebcd2e7400bb4d786eccb8f33c9f9ec; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 1cecfdbc6bfc89c516d286884c7f29267b95de2b; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 7365d1f8de63cffdbbaa2287ce0205438e1a922f; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< be8f982c369c965faffa198b46060f8853e0f1f0 (cvelist)
- Linux: 3.17 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-56558.md
Affected: Linux >= bf18f163e89c52e09c96534db45c4274273a0b34, < e2fa0d0e327279a8defb87b263cd0bf288fd9261; >= bf18f163e89c52e09c96534db45c4274273a0b34, < 7fd29d284b55c2274f7a748e6c5f25b4758b8da5; >= bf18f163e89c52e09c96534db45c4274273a0b34, < 6cefcadd34e3c71c81ea64b899a0daa86314a51a; >= bf18f163e89c52e09c96534…
Fixed in: Linux 7fd29d284b55c2274f7a748e6c5f25b4758b8da5, Linux 6cefcadd34e3c71c81ea64b899a0daa86314a51a, Linux 7d8f7816bebcd2e7400bb4d786eccb8f33c9f9ec, Linux 1cecfdbc6bfc89c516d286884c7f29267b95de2b, Linux 7365d1f8de63cffdbbaa2287ce0205438e1a922f

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-56558 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< e2fa0d0e327279a8defb87b263cd0bf288fd9261; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 7fd29d284b55c2274f7a748e6c5f25b4758b8da5; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 6cefcadd34e3c71c81ea64b899a0daa86314a51a; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 7d8f7816bebcd2e7400bb4d786eccb8f33c9f9ec; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 1cecfdbc6bfc89c516d286884c7f29267b95de2b; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< 7365d1f8de63cffdbbaa2287ce0205438e1a922f; \>= bf18f163e89c52e09c96534db45c4274273a0b34, \< be8f982c369c965faffa198b46060f8853e0f1f0; Linux 3.17.

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

Yes. Fixed in Linux 7fd29d284b55c2274f7a748e6c5f25b4758b8da5, Linux 6cefcadd34e3c71c81ea64b899a0daa86314a51a, Linux 7d8f7816bebcd2e7400bb4d786eccb8f33c9f9ec, Linux 1cecfdbc6bfc89c516d286884c7f29267b95de2b, Linux 7365d1f8de63cffdbbaa2287ce0205438e1a922f. No fix listed yet: follow the vendor advisory.

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

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/e2fa0d0e327279a8defb87b263cd0bf288fd9261>
- patch: <https://git.kernel.org/stable/c/7fd29d284b55c2274f7a748e6c5f25b4758b8da5>
- patch: <https://git.kernel.org/stable/c/6cefcadd34e3c71c81ea64b899a0daa86314a51a>
- patch: <https://git.kernel.org/stable/c/7d8f7816bebcd2e7400bb4d786eccb8f33c9f9ec>
- patch: <https://git.kernel.org/stable/c/1cecfdbc6bfc89c516d286884c7f29267b95de2b>
- patch: <https://git.kernel.org/stable/c/7365d1f8de63cffdbbaa2287ce0205438e1a922f>
- patch: <https://git.kernel.org/stable/c/be8f982c369c965faffa198b46060f8853e0f1f0>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.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-56558>

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