Linux Kernel CIFS Module Usercopy Vulnerability in SMBDirect Client

Vulnerability

A vulnerability in the Linux kernel's CIFS (Common Internet File System) module has been addressed. The issue arose in the smbdirect client code, where data was copied from the smbd_response structure's packet trailer to a buffer using the copy_to_iter() function. This process, however, conflicted with the CONFIG_HARDENED_USERCOPY=y setting, leading to a kernel memory exposure error. The vulnerability was caused by the smbd_response slab's packet field not being properly marked for usercopy, which could allow for unintended memory access.

Impact

The vulnerability could lead to a kernel memory exposure, allowing for potential information leaks or memory corruption.

Reproduction

To reproduce this vulnerability, mount a CIFS share using the smbdirect client with the CONFIG_HARDENED_USERCOPY=y option enabled. This will trigger a kernel bug due to an unprotected usercopy operation, exposing kernel memory from the SLUB allocator.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed.

Added: Aug 16, 2025, 12:48 PM
Updated: Aug 16, 2025, 12:48 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.7
remediation
7.7
relevance
0.4
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.