Menu

Star on GitHub · 3.2k

CVE-2024-57924

5.5 · MEDIUM

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()…

Published Jan 19, 2025CWE-617EPSS 0.27%

Overview

CVE-2024-57924 is a medium-severity vulnerability. It was published on January 19, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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 reas

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-57924?

CVE-2024-57924 is a medium-severity vulnerability. It was published on January 19, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-57924?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-57924?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-57924?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-57924 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2024

View all