
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-38578 is a buffer overflow vulnerability discovered in the Linux kernel's eCryptfs (Encrypted Filesystem) component. The vulnerability was identified in the write_tag_66_packet() function where the 'TAG 66 Packet Format' description was missing cipher code and checksum fields that are packed into the message packet. This issue was disclosed on June 19, 2024 (NVD).
The vulnerability stems from an incorrect buffer size calculation in the write_tag_66_packet() function within the Linux kernel's eCryptfs implementation. The buffer allocated for the packet was 3 bytes too small because it failed to account for the cipher code and checksum fields. The original calculation used 'data_len = (5 + ECRYPTFS_SIG_SIZE_HEX + crypt_stat->key_size)', while the correct calculation should be 'data_len = (8 + ECRYPTFS_SIG_SIZE_HEX + crypt_stat->key_size)'. This resulted in write_tag_66_packet() writing up to 3 bytes past the end of the allocated buffer (Kernel Commit).
The vulnerability can lead to a buffer overflow condition, specifically a slab-out-of-bounds write in the ecryptfs_generate_key_packet_set function. This was confirmed through KASAN (Kernel Address Sanitizer) detection, which reported writes beyond the allocated buffer space. Such buffer overflows could potentially result in system crashes or memory corruption (Kernel Commit).
The vulnerability was discovered through KASAN detection during file operations, specifically when creating new files in an eCryptfs filesystem. The issue manifests during the packet generation process for encryption key management (Kernel Commit).
The vulnerability has been fixed by increasing the buffer allocation size to properly account for all packet fields. The fix has been implemented in the Linux kernel through a patch that corrects the buffer size calculation. Users should update their Linux kernel to a version that includes this security fix (Kernel Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."