CVE-2024-46697
published critical CVSS 3.1 · 9.8nfsd: ensure that nfsd4_fattr_args.context is zeroed out
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxf59388a579c6a395de8f7372b267d3abecd8d6bf to < dd65b324174a64558a16ebbf4c3266e5701185d0 · f59388a579c6a395de8f7372b267d3abecd8d6bf to < f58bab6fd4063913bd8321e99874b8239e9ba726 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.7 (affected) · 0 to < 6.7 (unaffected · semver) · 6.10.8 through 6.10.* (unaffected · semver) · 6.11 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 9 | bpftool | Advisory build | 7.4.0-503.19.1.el9_5 | ALSA-2024:11486 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:7.4.0-503.19.1.el9_5 | ELSA-2024-11486 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-uki-virt-addons | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-zfcpdump-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-zfcpdump-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-zfcpdump-devel-matched | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-zfcpdump-modules | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-extra | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | libperf | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | perf | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | python3-perf | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | rtla | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | rv | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:7.4.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernelx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-abi-stablelistsx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-corex86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-cross-headersaarch64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-cross-headersx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-debugx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-debug-corex86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-debug-develx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-debug-modulesx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-debug-modules-corex86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-debug-modules-extrax86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-debug-uki-virtx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-develx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-devel-matchedx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-docx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-headersaarch64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-headersx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-modulesx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-modules-corex86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-modules-extrax86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-toolsaarch64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-toolsx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-tools-libsaarch64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-tools-libsx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-tools-libs-develaarch64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-tools-libs-develx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-uki-virtx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | kernel-uki-virt-addonsx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | libperfx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | perfaarch64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | perfx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | python3-perfaarch64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | python3-perfx86_64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
| Oracle Linux | 9 | rtlaaarch64 | Advisory build | 0:5.14.0-503.19.1.el9_5 | ELSA-2024-11486 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: nfsd: ensure that nfsd4_fattr_args.context is zeroed out If nfsd4_encode_fattr4 ends up doing a "goto out" before we get to checking for the security label, then args.context will be set to uninitialized junk on the stack, which we'll then try to free. Initialize it early.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The vulnerable code is the NFSv4 attribute encoder in the in-kernel NFS server, reached directly from GETATTR/READDIR/OPEN operations in a client-supplied COMPOUND over TCP port 2049. No local access is needed — an attacker acting as an NFS client on the network drives the entire path. AC:L - The attacker controls every input needed: the requested attribute bitmap (FATTR4_WORD0_CHANGE/SIZE/ACL/FILEHANDLE) and the condition that forces the early exit, e.g. holding a write delegation and deliberately stalling the CB_GETATTR callback so nfsd4_deleg_getattr_conflict returns nfserr_jukebox, and the operation can be repeated indefinitely. CONFIG_NFSD_V4_SECURITY_LABEL is enabled by all major distributions, so no rare configuration is required. PR:N - Reaching nfsd4_encode_fattr4 needs only a filehandle obtained via PUTROOTFH/LOOKUP or PUTFH on an accessible export; with the ubiquitous sec=sys (AUTH_SYS) flavor there is no cryptographic authentication at all — the client simply asserts a uid, so a remote unauthenticated peer permitted by the export list can issue the triggering GETATTR/READDIR. UI:N - The attacker issues the NFSv4 COMPOUND requests and holds the conflicting delegation entirely on its own. No action by any administrator or other user on the server is required. S:U - The bad free corrupts the kernel's own slab allocator within the same security authority as the nfsd thread. No VM, IOMMU, or sandbox boundary is crossed. C:H - Freeing an uninitialized pointer — and in the READDIR loop, double-freeing an already-released SELinux context buffer that another allocation now owns — yields a use-after-free giving the attacker a stale reference to live kernel objects, which is the standard primitive for disclosing arbitrary kernel memory. The stack slot is also attacker-groomable via the preceding COMPOUND operations, making the freed target selectable. I:H - An arbitrary/double free is a full memory-corruption primitive: the reclaimed slab object can be sprayed with attacker-chosen data from concurrent NFS requests, producing a write primitive and control-flow hijack in kernel context. This is at least as strong as a plain use-after-free, which is scored High. A:H - kfree() on arbitrary uninitialized stack residue — a stack pointer, a non-slab address, or an already-freed object — triggers slab corruption, a BUG in the allocator, or an oops in the nfsd kthread, panicking the server. The trigger is repeatable at will, so an attacker can reliably take the NFS server down.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | f59388a579c6a395de8f7372b267d3abecd8d6bf to < dd65b324174a64558a16ebbf4c3266e5701185d0 (affected · git)f59388a579c6a395de8f7372b267d3abecd8d6bf to < f58bab6fd4063913bd8321e99874b8239e9ba726 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.7 (affected)0 to < 6.7 (unaffected · semver)6.10.8 through 6.10.* (unaffected · semver)6.11 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
2Linux · cna
nfsd: ensure that nfsd4_fattr_args.context is zeroed out
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9a62b8dcfbd8f41ee6f1292f5429e3ee33c898b7c7d51bab31f04ae6fdb307d8
- Ingested
- 23 Sep 2026, 08:28:03 UTC
- Source record
- Official CVE record