Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A vulnerability exists in the Linux kernel's OCFS2 file system related to the handling of extended attribute (xattr) entries during a reflink operation. The issue arises because the cleanup process for preserved xattr entries does not correctly manage all scenarios. Specifically, the 'last' pointer needs to be adjusted after cleaning up an array entry, and the current logic fails to remove the first entry when the count is one. This vulnerability affects the Linux kernel stable group.
The vulnerability can lead to improper management of extended attributes in the OCFS2 file system, potentially causing data consistency issues or unexpected behavior during file operations that involve reflinked data.
To reproduce this vulnerability, perform a reflink operation on files within an OCFS2 file system that has extended attributes. After the operation, check the handling of the extended attributes, particularly looking for issues in the cleanup process of the xattr entries. The 'last' pointer should be manually adjusted after cleaning up an entry, and the first entry should be properly cleaned up when its count is one.
Users can apply the latest patches available in the Linux kernel stable tree to address this vulnerability. The specific commits that fix this issue can be downloaded as part of the Linux kernel source.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.