# CVE-2024-47692: nfsd: return -EINVAL when namelen is 0

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

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.55% (percentile 75, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-10-21T11:53:31.238Z
- **Modified:** 2026-10-15T01:18:54.663Z

## Who should check

- Anyone running Linux \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 6d07040ae5c2214e39c7444d898039c9e655a79a; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 0f1d007bbea38a61cf9c5392708dc70ae9d84a3d; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< b7b7a8df41ef18862dd6b22289fb46c2c12398af; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 84a563d136faf514fdad1ade28d7a142fd313cb8; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 318f70857caab3da9a6ada9bc8c1f4f7591b695e; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 766d5fbd78f7a52b3888449a0358760477b74602; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 1ff8be8d008b9ddc8e7043fbddd37d5d451b271b; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 22451a16b7ab7debefce660672566be887db1637
- Anyone running Linux 5.2

## Description

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

nfsd: return -EINVAL when namelen is 0

When we have a corrupted main.sqlite in /var/lib/nfs/nfsdcld/, it may
result in namelen being 0, which will cause memdup\_user() to return
ZERO\_SIZE\_PTR.
When we access the name.data that has been assigned the value of
ZERO\_SIZE\_PTR in nfs4\_client\_to\_reclaim(), null pointer dereference is
triggered.

\[ T1205\] ==================================================================
\[ T1205\] BUG: KASAN: null-ptr-deref in nfs4\_client\_to\_reclaim+0xe9/0x260
\[ T1205\] Read of size 1 at addr 0000000000000010 by task nfsdcld/1205
\[ T1205\]
\[ T1205\] CPU: 11 PID: 1205 Comm: nfsdcld Not tainted 5.10.0-00003-g2c1423731b8d \#406
\[ T1205\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS ?-20190727\_073836-buildvm-ppc64le-16.ppc.fedoraproject.org-3.fc31 04/01/2014
\[ T1205\] Call Trace:
\[ T1205\]  dump\_stack+0x9a/0xd0
\[ T1205\]  ? nfs4\_client\_to\_reclaim+0xe9/0x260
\[ T1205\]  \_\_kasan\_report.cold+0x34/0x84
\[ T1205\]  ? nfs4\_client\_to\_reclaim+0xe9/0x260
\[ T1205\]  kasan\_report+0x3a/0x50
\[ T1205\]  nfs4\_client\_to\_reclaim+0xe9/0x260
\[ T1205\]  ? nfsd4\_release\_lockowner+0x410/0x410
\[ T1205\]  cld\_pipe\_downcall+0x5ca/0x760
\[ T1205\]  ? nfsd4\_cld\_tracking\_exit+0x1d0/0x1d0
\[ T1205\]  ? down\_write\_killable\_nested+0x170/0x170
\[ T1205\]  ? avc\_policy\_seqno+0x28/0x40
\[ T1205\]  ? selinux\_file\_permission+0x1b4/0x1e0
\[ T1205\]  rpc\_pipe\_write+0x84/0xb0
\[ T1205\]  vfs\_write+0x143/0x520
\[ T1205\]  ksys\_write+0xc9/0x170
\[ T1205\]  ? \_\_ia32\_sys\_read+0x50/0x50
\[ T1205\]  ? ktime\_get\_coarse\_real\_ts64+0xfe/0x110
\[ T1205\]  ? ktime\_get\_coarse\_real\_ts64+0xa2/0x110
\[ T1205\]  do\_syscall\_64+0x33/0x40
\[ T1205\]  entry\_SYSCALL\_64\_after\_hwframe+0x67/0xd1
\[ T1205\] RIP: 0033:0x7fdbdb761bc7
\[ T1205\] Code: 0f 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 \<48\> 3d 00 f0 ff ff 77 514
\[ T1205\] RSP: 002b:00007fff8c4b7248 EFLAGS: 00000246 ORIG\_RAX: 0000000000000001
\[ T1205\] RAX: ffffffffffffffda RBX: 000000000000042b RCX: 00007fdbdb761bc7
\[ T1205\] RDX: 000000000000042b RSI: 00007fff8c4b75f0 RDI: 0000000000000008
\[ T1205\] RBP: 00007fdbdb761bb0 R08: 0000000000000000 R09: 0000000000000001
\[ T1205\] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000042b
\[ T1205\] R13: 0000000000000008 R14: 00007fff8c4b75f0 R15: 0000000000000000
\[ T1205\] ==================================================================

Fix it by checking namelen.

## Affected and fixed versions

- Linux: \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 6d07040ae5c2214e39c7444d898039c9e655a79a; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 0f1d007bbea38a61cf9c5392708dc70ae9d84a3d; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< b7b7a8df41ef18862dd6b22289fb46c2c12398af; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 84a563d136faf514fdad1ade28d7a142fd313cb8; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 318f70857caab3da9a6ada9bc8c1f4f7591b695e; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 766d5fbd78f7a52b3888449a0358760477b74602; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 1ff8be8d008b9ddc8e7043fbddd37d5d451b271b; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 22451a16b7ab7debefce660672566be887db1637 (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- Upgrade Linux to 22451a16b7ab7debefce660672566be887db1637 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-47692. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-47692.md
Affected: Linux >= 74725959c33c14114fdce1e36e3504d106584d53, < 6d07040ae5c2214e39c7444d898039c9e655a79a; >= 74725959c33c14114fdce1e36e3504d106584d53, < 0f1d007bbea38a61cf9c5392708dc70ae9d84a3d; >= 74725959c33c14114fdce1e36e3504d106584d53, < b7b7a8df41ef18862dd6b22289fb46c2c12398af; >= 74725959c33c14114fdce1e…
Fixed in: Linux 6d07040ae5c2214e39c7444d898039c9e655a79a, Linux 0f1d007bbea38a61cf9c5392708dc70ae9d84a3d, Linux 84a563d136faf514fdad1ade28d7a142fd313cb8, Linux 318f70857caab3da9a6ada9bc8c1f4f7591b695e, Linux 766d5fbd78f7a52b3888449a0358760477b74602, Linux 1ff8be8d008b9ddc8e7043fbddd37d5d451b271b, Linux 22451…

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

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

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

Medium: CVSS 6.5 (v3.1, scored by NVD). Remote, login needed.

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

Linux \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 6d07040ae5c2214e39c7444d898039c9e655a79a; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 0f1d007bbea38a61cf9c5392708dc70ae9d84a3d; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< b7b7a8df41ef18862dd6b22289fb46c2c12398af; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 84a563d136faf514fdad1ade28d7a142fd313cb8; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 318f70857caab3da9a6ada9bc8c1f4f7591b695e; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 766d5fbd78f7a52b3888449a0358760477b74602; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 1ff8be8d008b9ddc8e7043fbddd37d5d451b271b; \>= 74725959c33c14114fdce1e36e3504d106584d53, \< 22451a16b7ab7debefce660672566be887db1637; Linux 5.2.

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

Yes. Fixed in Linux 6d07040ae5c2214e39c7444d898039c9e655a79a, Linux 0f1d007bbea38a61cf9c5392708dc70ae9d84a3d, Linux 84a563d136faf514fdad1ade28d7a142fd313cb8, Linux 318f70857caab3da9a6ada9bc8c1f4f7591b695e, Linux 766d5fbd78f7a52b3888449a0358760477b74602, Linux 1ff8be8d008b9ddc8e7043fbddd37d5d451b271b, Linux 22451a16b7ab7debefce660672566be887db1637. Upgrade Linux to 22451a16b7ab7debefce660672566be887db1637 or later.

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

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/0f1d007bbea38a61cf9c5392708dc70ae9d84a3d>
- patch: <https://git.kernel.org/stable/c/b7b7a8df41ef18862dd6b22289fb46c2c12398af>
- patch: <https://git.kernel.org/stable/c/84a563d136faf514fdad1ade28d7a142fd313cb8>
- patch: <https://git.kernel.org/stable/c/318f70857caab3da9a6ada9bc8c1f4f7591b695e>
- patch: <https://git.kernel.org/stable/c/766d5fbd78f7a52b3888449a0358760477b74602>
- patch: <https://git.kernel.org/stable/c/1ff8be8d008b9ddc8e7043fbddd37d5d451b271b>
- patch: <https://git.kernel.org/stable/c/22451a16b7ab7debefce660672566be887db1637>
- other: <https://git.kernel.org/stable/c/6d07040ae5c2214e39c7444d898039c9e655a79a>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.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-47692>

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