CVE-2026-46139
Heap Memory Corruption in Linux Kernel SMB Client
Publication date: 2026-05-28
Last updated on: 2026-05-28
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| samba | samba | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the Linux kernel's SMB client code where a security descriptor buffer was allocated using kmalloc(), which does not zero-initialize memory. Specifically, a reserved 2-byte field in the ACL descriptor buffer was left uninitialized, potentially containing random heap data.
Because this reserved field must be zero according to the MS-DTYP ACL wire format, having non-zero garbage data causes Samba to reject the security descriptor with an error, leading to failures such as chmod returning EINVAL.
The fix was to replace kmalloc() with kzalloc(), which zero-initializes the buffer, ensuring the reserved field is always zero and preventing the error.
How can this vulnerability impact me? :
This vulnerability can cause Samba operations that rely on security descriptors, such as chmod, to fail unexpectedly with errors like EINVAL.
Such failures may disrupt file permission changes and related SMB client functionality, potentially impacting system administration and file sharing operations.
What immediate steps should I take to mitigate this vulnerability?
The vulnerability is caused by the use of kmalloc() which does not zero-initialize the security descriptor buffer, leading to uninitialized heap data in the reserved field.
To mitigate this vulnerability, the immediate step is to ensure that the buffer is zero-initialized by using kzalloc() instead of kmalloc() when allocating the security descriptor buffer.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability relates to the Linux kernel's SMB client implementation where an uninitialized reserved field in the security descriptor buffer can cause Samba to reject the security descriptor with an error.
Detection would involve monitoring for error messages such as "ndr_pull_security_descriptor failed: Range Error" or failures of chmod operations returning EINVAL when interacting with SMB shares.
There are no specific commands provided in the available information to detect this vulnerability directly.