Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A vulnerability exists in the Linux kernel's CIFS (Common Internet File System) implementation, specifically within the file range copying function. This issue arises when a file is used by swap; the function fails to properly manage the XID (transaction identifier) before returning an 'operation not supported' error, leading to an XID leak. The vulnerability is present in several versions of the Linux kernel.
The vulnerability causes a resource leak by not properly freeing the XID when a file is used by swap, which could lead to exhaustion of available XIDs.
To reproduce this vulnerability, enable swap on SMB3 mounts and use the CIFS file system. When the 'cifs_copy_file_range' function is called on a file that is swapped, the function will return an 'operation not supported' error without freeing the XID, thus leaking it.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for downloading the patched version can be found in the Linux kernel documentation.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.