Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A vulnerability exists in the Linux kernel's shmem (shared memory) component, specifically within the rename operation. When the maple tree, a data structure used for managing directory entries, is low on memory, insertions can fail. The functions 'simple_offset_rename' and 'simple_offset_rename_exchange' do not handle these failures properly. Additionally, 'shmem_whiteout' expects the caller to proceed with 'd_move' after a successful operation, creating a dependency that can lead to issues if not managed correctly. The vulnerability arises because the current implementation does not adequately recover from rename failures, particularly when memory is scarce.
The vulnerability can lead to improper handling of directory entries during rename operations, potentially causing data management issues within the file system.
The vulnerability can be reproduced by performing a rename operation in a directory managed by the maple tree, while the system is low on memory. This can be done by filling up the available memory and then attempting to rename a directory entry, which will trigger the failure in the maple tree insertion process.
The vulnerability has been addressed in the Linux kernel. Users can upgrade to the latest version to apply the fix.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.