CVE-2024-47677 in Linuxinfo

Summary

by MITRE • 10/21/2024

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

exfat: resolve memory leak from exfat_create_upcase_table()

If exfat_load_upcase_table reaches end and returns -EINVAL, allocated memory doesn't get freed and while exfat_load_default_upcase_table allocates more memory, leading to a memory leak.

Here's link to syzkaller crash report illustrating this issue: https://syzkaller.appspot.com/text?tag=CrashReport&x=1406c201980000

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 01/19/2026

The vulnerability identified as CVE-2024-47677 represents a memory leak within the exFAT filesystem driver of the Linux kernel, specifically occurring during the upcase table loading process. This flaw manifests when the exfat_load_upcase_table function encounters an end-of-file condition and returns an -EINVAL error code, yet fails to properly release previously allocated memory resources. The issue becomes particularly problematic when subsequent calls to exfat_load_default_upcase_table attempt to allocate additional memory, creating a cumulative memory leak that can degrade system performance over time.

The technical root cause of this vulnerability lies in improper memory management within the exFAT filesystem implementation, where error handling paths do not adequately clean up allocated resources before returning error codes. This memory leak pattern directly corresponds to CWE-401, which describes the weakness of failure to release memory after it has been allocated, a common class of vulnerabilities in kernel space code. The vulnerability affects the exFAT filesystem driver's ability to properly manage memory resources during the upcase table initialization process, where the driver must load and maintain case conversion tables for filesystem operations.

From an operational perspective, this memory leak can lead to progressive memory consumption within the Linux kernel, potentially causing system instability, reduced performance, or even system crashes under sustained workload conditions. The vulnerability is particularly concerning in embedded systems or environments where memory resources are constrained, as the cumulative effect of memory leaks can quickly exhaust available memory pools. The issue can be triggered through normal filesystem operations involving exFAT volumes, making it a latent vulnerability that may not be immediately apparent but can manifest over extended periods of use.

The mitigation strategy for this vulnerability involves implementing proper error handling and memory cleanup mechanisms within the exFAT filesystem driver code. System administrators should ensure that kernel updates containing the fix are applied promptly to prevent exploitation, as this type of memory leak can potentially be leveraged in resource exhaustion attacks. The fix typically involves ensuring that allocated memory is properly freed in all error code paths before returning error codes, which aligns with ATT&CK technique T1499.001 for resource exhaustion attacks. Organizations should also monitor their systems for unusual memory consumption patterns and implement regular kernel updates as part of their security maintenance procedures. The vulnerability demonstrates the importance of robust error handling in kernel space code and the critical need for proper memory management practices in filesystem drivers.

Responsible

Linux

Reservation

09/30/2024

Disclosure

10/21/2024

Moderation

accepted

CPE

ready

EPSS

0.00233

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!