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
- Unknown
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-07-19
- Original CVE updated
- 2026-07-19
- Advisory published
- 2026-07-19
- Advisory updated
- 2026-07-19
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.
Official resources
-
CVE-2026-64139 CVE record
CVE.org
-
CVE-2026-64139 NVD detail
NVD
-
Source item URL
nvd_modified
-
Source reference
416baaa9-dc9f-4396-8d5f-8c081fb06d67
-
Source reference
416baaa9-dc9f-4396-8d5f-8c081fb06d67
-
Source reference
416baaa9-dc9f-4396-8d5f-8c081fb06d67
-
Source reference
416baaa9-dc9f-4396-8d5f-8c081fb06d67
-
Source reference
416baaa9-dc9f-4396-8d5f-8c081fb06d67
AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-07-19T16:17:55.780Z and has not been modified since then.