# CVE-2024-46697: nfsd: ensure that nfsd4_fattr_args.context is zeroed out

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2024-09-13T05:29:24.787Z
- Modified: 2026-08-05T11:38:02.067Z
- Weaknesses: CWE-665
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from f59388a579c6a395de8f7372b267d3abecd8d6bf before dd65b324174a64558a16ebbf4c3266e5701185d0; from f59388a579c6a395de8f7372b267d3abecd8d6bf before f58bab6fd4063913bd8321e99874b8239e9ba726; 6.7 (not affected: before 6.7; from 6.10.8 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.7 before 6.10.8; 6.11

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/dd65b324174a64558a16ebbf4c3266e5701185d0> (patch)
- <https://git.kernel.org/stable/c/f58bab6fd4063913bd8321e99874b8239e9ba726> (patch)

## Sources

- CVE List: [CVE-2024-46697](https://www.cve.org/CVERecord?id=CVE-2024-46697), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-46697](https://nvd.nist.gov/vuln/detail/CVE-2024-46697), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-46697 · Whole record: https://cve.day/CVE-2024-46697.json · Rebuilt by cve.day 2026-11-25T22:58:45.382Z
