Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-46682

MEDIUM 5.5EPSS 11%

nfsd: prevent panic for nfsv4.0 closed files in nfs4_show_open

Mitigation

  • Upgrade Linux to 6.7 or later.

Who should check

  • Anyone running Linux >= 3f29cc82a84c23cfd12b903029dd26002ca825f5, < ba0b697de298285301c71c258598226e06494236; >= 3f29cc82a84c23cfd12b903029dd26002ca825f5, < a204501e1743d695ca2930ed25a2be9f8ced96d3; 172d038b7c4d3cfa9fc5ac210577c5c4f8256320; >= 6.6.160, < 6.7
  • Anyone running Linux 6.9

Vulnerability facts

Affected
Linux >= 3f29cc82a84c23cfd12b903029dd26002ca825f5, < ba0b697de298285301c71c258598226e06494236; >= 3f29cc82a84c23cfd12b903029dd26002ca825f5, < a204501e1743d695ca2930ed25a2be9f8ced96d3; 172d038b7c4d3cfa9fc5ac210577c5c4f8256320; >= 6.6.160, < 6.7; Linux 6.9
Fixed in
Linux 6.7
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.26% chance of exploitation in 30 days (percentile 11, 2026-11-26)
CWE
CWE-476
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: nfsd: prevent panic for nfsv4.0 closed files in nfs4_show_open Prior to commit 3f29cc82a84c ("nfsd: split sc_status out of sc_type") states_show() relied on sc_type field to be of valid type before calling into a subfunction to show content of a particular stateid. From that commit, we split the validity of the stateid into sc_status and no longer changed sc_type to 0 while unhashing the stateid. This resulted in kernel oopsing for nfsv4.0 opens that stay around and in nfs4_show_open() would derefence sc_file which was NULL. Instead, for closed open stateids forgo displaying information that relies of having a valid sc_file. To reproduce: mount the server with 4.0, read and close a file and then on the server cat /proc/fs/nfsd/clients/2/states [ 513.590804] Call trace: [ 513.590925] _raw_spin_lock+0xcc/0x160 [ 513.591119] nfs4_show_open+0x78/0x2c0 [nfsd] [ 513.591412] states_show+0x44c/0x488 [nfsd] [ 513.591681] seq_read_iter+0x5d8/0x760 [ 513.591896] seq_read+0x188/0x208 [ 513.592075] vfs_read+0x148/0x470 [ 513.592241] ksys_read+0xcc/0x178

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 3f29cc82a84c23cfd12b903029dd26002ca825f5, < ba0b697de298285301c71c258598226e06494236; >= 3f29cc82a84c23cfd12b903029dd26002ca825f5, < a204501e1743d695ca2930ed25a2be9f8ced96d3; 172d038b7c4d3cfa9fc5ac210577c5c4f8256320; >= 6.6.160, < 6.7—cvelist
Linux6.9—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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

Details: https://flawdb.com/CVE-2024-46682.md
Affected: Linux >= 3f29cc82a84c23cfd12b903029dd26002ca825f5, < ba0b697de298285301c71c258598226e06494236; >= 3f29cc82a84c23cfd12b903029dd26002ca825f5, < a204501e1743d695ca2930ed25a2be9f8ced96d3; 172d038b7c4d3cfa9fc5ac210577c5c4f8256320; >= 6.6.160, < 6.7; Linux 6.9
Fixed in: Linux 6.7

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.

References

FAQ

Is CVE-2024-46682 being exploited?

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

How serious is CVE-2024-46682?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-46682?

Linux >= 3f29cc82a84c23cfd12b903029dd26002ca825f5, < ba0b697de298285301c71c258598226e06494236; >= 3f29cc82a84c23cfd12b903029dd26002ca825f5, < a204501e1743d695ca2930ed25a2be9f8ced96d3; 172d038b7c4d3cfa9fc5ac210577c5c4f8256320; >= 6.6.160, < 6.7; Linux 6.9.

Is there a fix for CVE-2024-46682?

Yes. Fixed in Linux 6.7. Upgrade Linux to 6.7 or later.

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

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.

Sponsors