PatchSiren cyber security CVE debrief
CVE-2026-64139 Linux CVE debrief
A vulnerability in the Linux kernel's ksmbd module can cause a memory leak due to the improper handling of POSIX ACL entries. When the accumulated DACL size overflows, the code breaks out of the ACE-building loops without freeing the allocated struct smb_sid, leading to a memory leak. This can be exploited by a malicious or malformed file with enough POSIX ACL entries to trip the overflow check, providing a trivial kernel memory exhaustion vector. The vulnerability has a high defensive priority, and users should take immediate action to mitigate it.
- Vendor
- Linux
- Product
- Unknown
- CVSS
- MEDIUM 5.5
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-07-19
- Original CVE updated
- 2026-08-23
- Advisory published
- 2026-07-19
- Advisory updated
- 2026-08-23
Who should care
Linux kernel users, administrators, and developers who utilize ksmbd for file sharing should be aware of this vulnerability and take steps to mitigate it. They should review system configurations, ensure that updates are applied, and monitor for potential exploitation attempts. Additionally, they should consider implementing compensating controls such as memory protection mechanisms and monitoring system resources for signs of memory exhaustion.
Technical summary
The vulnerability exists in the set_posix_acl_entries_dacl() function of the ksmbd module in the Linux kernel. The function fails to free the allocated struct smb_sid when the accumulated DACL size overflows, leading to a memory leak. This can be triggered by a file with a large number of POSIX ACL entries. The vulnerability was introduced by a commit that added overflow checks but did not properly handle memory deallocation in case of an overflow. The fix involves freeing the sid buffer before breaking out of the loops. A malicious or malformed file with enough POSIX ACL entries to trip the overflow check will leak one or more struct smb_sid allocations on every request that touches the file's DACL, providing a trivial kernel memory exhaustion vector.
Defensive priority
High
Recommended defensive actions
- Apply the official patch or update the Linux kernel to a version that includes the fix.
- Limit access to sensitive files and directories.
- Monitor system resources for signs of memory exhaustion.
- Implement compensating controls, such as memory protection mechanisms.
- Review system configurations and ensure that ksmbd is properly configured.
- Conduct regular security audits to identify potential vulnerabilities.
- Stay informed about the latest security advisories and updates.
Evidence notes
The vulnerability was introduced by a commit that added overflow checks but did not properly handle memory deallocation in case of an overflow. The fix involves freeing the sid buffer before breaking out of the loops. A source reference for the vulnerability fix is available, providing additional details on the issue and the resolution.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-64139 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-64139
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-64139 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-64139
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://git.kernel.org/stable/c/0e198f09cb2a554c04de0fea4e790f1250a943ca
416baaa9-dc9f-4396-8d5f-8c081fb06d67
-
Source reference
Unverified legacy reference
URL: https://git.kernel.org/stable/c/519fb0a42ce5d7e46935577309fb282a5f2c6ea3
416baaa9-dc9f-4396-8d5f-8c081fb06d67
-
Source reference
Unverified legacy reference
URL: https://git.kernel.org/stable/c/9d378e17c864da08c3a4df41dae92cfa6468b00a
416baaa9-dc9f-4396-8d5f-8c081fb06d67
-
Source reference
Unverified legacy reference
URL: https://git.kernel.org/stable/c/af92ee994cc7f7e83a41c2025f32257a2f82a7ef
416baaa9-dc9f-4396-8d5f-8c081fb06d67
-
Source reference
Unverified legacy reference
URL: https://git.kernel.org/stable/c/eced48cb08f07393a5ea770fdd1026452883c3ad
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.