# CVE-2024-57924: fs: relax assertions on failure to encode file handles

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-617
- **Published:** 2025-01-19T11:52:42.458Z
- **Modified:** 2026-11-10T13:17:27.867Z

## Who should check

- Anyone running Linux \>= be77196b809cdce8603a5aadd5e3cfabd3cbef96, \< 73697928c806fe4689939722184a86fc1c1957b4; \>= be77196b809cdce8603a5aadd5e3cfabd3cbef96, \< f47c834a9131ae64bee3c462f4e610c67b0a000f; \>= be77196b809cdce8603a5aadd5e3cfabd3cbef96, \< adcde2872f8fc399b249758ae1990dcd53b694ea; \>= be77196b809cdce8603a5aadd5e3cfabd3cbef96, \< 974e3fe0ac61de85015bbe5a4990cf4127b304b2
- Anyone running Linux 3.8

## Description

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

fs: relax assertions on failure to encode file handles

Encoding file handles is usually performed by a filesystem \>encode\_fh()
method that may fail for various reasons.

The legacy users of exportfs\_encode\_fh(), namely, nfsd and
name\_to\_handle\_at(2) syscall are ready to cope with the possibility
of failure to encode a file handle.

There are a few other users of exportfs\_encode\_{fh,fid}() that
currently have a WARN\_ON() assertion when -\>encode\_fh() fails.
Relax those assertions because they are wrong.

The second linked bug report states commit 16aac5ad1fa9 ("ovl: support
encoding non-decodable file handles") in v6.6 as the regressing commit,
but this is not accurate.

The aforementioned commit only increases the chances of the assertion
and allows triggering the assertion with the reproducer using overlayfs,
inotify and drop\_caches.

Triggering this assertion was always possible with other filesystems and
other reasons of -\>encode\_fh() failures and more particularly, it was
also possible with the exact same reproducer using overlayfs that is
mounted with options index=on,nfs\_export=on also on kernels \< v6.6.
Therefore, I am not listing the aforementioned commit as a Fixes commit.

Backport hint: this patch will have a trivial conflict applying to
v6.6.y, and other trivial conflicts applying to stable kernels \< v6.6.

## Affected and fixed versions

- Linux: \>= be77196b809cdce8603a5aadd5e3cfabd3cbef96, \< 73697928c806fe4689939722184a86fc1c1957b4; \>= be77196b809cdce8603a5aadd5e3cfabd3cbef96, \< f47c834a9131ae64bee3c462f4e610c67b0a000f; \>= be77196b809cdce8603a5aadd5e3cfabd3cbef96, \< adcde2872f8fc399b249758ae1990dcd53b694ea; \>= be77196b809cdce8603a5aadd5e3cfabd3cbef96, \< 974e3fe0ac61de85015bbe5a4990cf4127b304b2 (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-57924.md
Affected: Linux >= be77196b809cdce8603a5aadd5e3cfabd3cbef96, < 73697928c806fe4689939722184a86fc1c1957b4; >= be77196b809cdce8603a5aadd5e3cfabd3cbef96, < f47c834a9131ae64bee3c462f4e610c67b0a000f; >= be77196b809cdce8603a5aadd5e3cfabd3cbef96, < adcde2872f8fc399b249758ae1990dcd53b694ea; >= be77196b809cdce8603a5aa…
Fixed in: Linux 73697928c806fe4689939722184a86fc1c1957b4, Linux 974e3fe0ac61de85015bbe5a4990cf4127b304b2

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

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

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

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

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

Linux \>= be77196b809cdce8603a5aadd5e3cfabd3cbef96, \< 73697928c806fe4689939722184a86fc1c1957b4; \>= be77196b809cdce8603a5aadd5e3cfabd3cbef96, \< f47c834a9131ae64bee3c462f4e610c67b0a000f; \>= be77196b809cdce8603a5aadd5e3cfabd3cbef96, \< adcde2872f8fc399b249758ae1990dcd53b694ea; \>= be77196b809cdce8603a5aadd5e3cfabd3cbef96, \< 974e3fe0ac61de85015bbe5a4990cf4127b304b2; Linux 3.8.

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

Yes. Fixed in Linux 73697928c806fe4689939722184a86fc1c1957b4, Linux 974e3fe0ac61de85015bbe5a4990cf4127b304b2. Upgrade Linux to 974e3fe0ac61de85015bbe5a4990cf4127b304b2 or later.

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

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/73697928c806fe4689939722184a86fc1c1957b4>
- patch: <https://git.kernel.org/stable/c/f47c834a9131ae64bee3c462f4e610c67b0a000f>
- patch: <https://git.kernel.org/stable/c/adcde2872f8fc399b249758ae1990dcd53b694ea>
- patch: <https://git.kernel.org/stable/c/974e3fe0ac61de85015bbe5a4990cf4127b304b2>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.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-57924>

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