CVE-2024-57924 fs: relax assertions on failure to encode file handles
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- Linux KernelUbuntuDebian
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.
Upgrade path
16 packages: 7 fixed, 9 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| cbl-mariner kernel(CBL-Mariner 2.0) | All versions | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.5; >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.5; >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.5; >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.5; >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.5; >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| ubuntu/linux(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/linux-kvm(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/linux-raspi(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| debian/linux(Debian 12) | < 6.1.153-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +40 more | 6.1.153-1 | Fixed |
| debian/linux(Debian 13) | < 6.12.10-1 | 6.12.10-1 | Fixed |
| debian/linux(Debian 14) | < 6.12.10-1 | 6.12.10-1 | Fixed |
| Linux kernel | < 6.1.151; < 6.6.74; < 6.12.10; < 6.13 +13 more | 6.1.151, 6.6.74, 6.12.10, 6.13, 974e3fe0ac61de85015bbe5a4990cf4127b304b2, 73697928c806fe4689939722184a86fc1c1957b4, adcde2872f8fc399b249758ae1990dcd53b694ea, f47c834a9131ae64bee3c462f4e610c67b0a000f | Fixed |
| Siemens SIMATIC CN 4100 | < V5.0 | V5.0 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-62.65 | 6.8.0-62.65 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1029.33 | 6.8.0-1029.33 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner kernel(CBL-Mariner:2.0) | All versions | No fix listed |
| debian/linux(Debian:12) | < 6.1.153-1 | 6.1.153-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.115-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.119-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.123-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.124-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.128-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.129-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.133-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.135-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.137-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.139-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.140-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.147-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.148-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
Show 60 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.12.10-1 | 6.12.10-1 |
| debian/linux(Debian:14) | < 6.12.10-1 | 6.12.10-1 |
| ubuntu/linux(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/linux-kvm(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/linux-raspi(Ubuntu:22.04) | All versions | No fix listed |
| Linux kernel | >= be77196b809cdce8603a5aadd5e3cfabd3cbef96, < 73697928c806fe4689939722184a86fc1c1957b4 | 73697928c806fe4689939722184a86fc1c1957b4 |
| Linux kernel | >= be77196b809cdce8603a5aadd5e3cfabd3cbef96, < f47c834a9131ae64bee3c462f4e610c67b0a000f | f47c834a9131ae64bee3c462f4e610c67b0a000f |
| Linux kernel | >= be77196b809cdce8603a5aadd5e3cfabd3cbef96, < adcde2872f8fc399b249758ae1990dcd53b694ea | adcde2872f8fc399b249758ae1990dcd53b694ea |
| Linux kernel | >= be77196b809cdce8603a5aadd5e3cfabd3cbef96, < 974e3fe0ac61de85015bbe5a4990cf4127b304b2 | 974e3fe0ac61de85015bbe5a4990cf4127b304b2 |
| Linux kernel | = 3.8 | No fix listed |
| Linux kernel | < 6.1.151 | 6.1.151 |
| Linux kernel | < 6.6.74 | 6.6.74 |
| Linux kernel | < 6.12.10 | 6.12.10 |
| Linux kernel | < 6.13 | 6.13 |
| Siemens SIMATIC CN 4100 | < V5.0 | V5.0 |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.5 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.5 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.5 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.5 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.5 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.6 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.7 | No fix listed |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-62.65 | 6.8.0-62.65 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1029.33 | 6.8.0-1029.33 |
| Linux kernel | >= 6.2, < 6.6.74 | 6.6.74 |
| Linux kernel | >= 6.7, < 6.12.10 | 6.12.10 |
| Linux kernel | = 6.13-rc1 | No fix listed |
| Linux kernel | = 6.13-rc2 | No fix listed |
| Linux kernel | = 6.13-rc3 | No fix listed |
| Linux kernel | = 6.13-rc4 | No fix listed |
| Linux kernel | = 6.13-rc5 | No fix listed |
| Linux kernel | = 6.13-rc6 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- Debian Security Tracker CVE-2024-57924 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7379-1 vendor-advisory
- USN-7380-1 vendor-advisory
- USN-7381-1 vendor-advisory
- USN-7382-1 vendor-advisory
- USN-7379-2 vendor-advisory
- USN-7595-1 vendor-advisory
- USN-7596-1 vendor-advisory
- USN-7595-2 vendor-advisory
- USN-7596-2 vendor-advisory
- USN-7595-3 vendor-advisory
- USN-7595-4 vendor-advisory
- USN-7595-5 vendor-advisory
- USN-7653-1 vendor-advisory
- www.cve.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org
- cert-portal.siemens.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- ENISA EUVD EUVD-2024-53827 third-party-advisory