CVE-2024-57924
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
19/01/2025
Last modified:
03/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
fs: relax assertions on failure to encode file handles<br />
<br />
Encoding file handles is usually performed by a filesystem >encode_fh()<br />
method that may fail for various reasons.<br />
<br />
The legacy users of exportfs_encode_fh(), namely, nfsd and<br />
name_to_handle_at(2) syscall are ready to cope with the possibility<br />
of failure to encode a file handle.<br />
<br />
There are a few other users of exportfs_encode_{fh,fid}() that<br />
currently have a WARN_ON() assertion when ->encode_fh() fails.<br />
Relax those assertions because they are wrong.<br />
<br />
The second linked bug report states commit 16aac5ad1fa9 ("ovl: support<br />
encoding non-decodable file handles") in v6.6 as the regressing commit,<br />
but this is not accurate.<br />
<br />
The aforementioned commit only increases the chances of the assertion<br />
and allows triggering the assertion with the reproducer using overlayfs,<br />
inotify and drop_caches.<br />
<br />
Triggering this assertion was always possible with other filesystems and<br />
other reasons of ->encode_fh() failures and more particularly, it was<br />
also possible with the exact same reproducer using overlayfs that is<br />
mounted with options index=on,nfs_export=on also on kernels
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.1.151 (excluding) | |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.6.74 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.12.10 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/73697928c806fe4689939722184a86fc1c1957b4
- https://git.kernel.org/stable/c/974e3fe0ac61de85015bbe5a4990cf4127b304b2
- https://git.kernel.org/stable/c/adcde2872f8fc399b249758ae1990dcd53b694ea
- https://git.kernel.org/stable/c/f47c834a9131ae64bee3c462f4e610c67b0a000f
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html



