Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

ksmbd: fix SID memory leak in set_posix_acl_entries_dacl() on overflow

cve-program · severity unknownCVSS unknownCheck source for fixed versionsKEV status unknown

cve-program · CVE-2026-64139

Published

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix SID memory leak in set_posix_acl_entries_dacl() on overflow Commit 299f962c0b02 ("ksmbd: use check_add_overflow() to prevent u16 DACL size overflow") added check_add_overflow() guards that break out of the ACE-building loops in set_posix_acl_entries_dacl() when the accumulated DACL size would wrap past 65535. However, each iteration allocates a struct smb_sid via kmalloc_obj() at the top of the loop and relies on the kfree(sid) call at the end of the loop body (the 'pass_same_sid' label in the first loop, and the explicit kfree at the tail of the second loop) to release it. The newly introduced 'break' statements bypass those kfree() calls, leaking the sid buffer every time an overflow is detected. 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. Free sid before breaking out of the loops to plug the leak.

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2026-64139

Published

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/smb/server/smbacl.c"
                    ],
                    "versions": [
                        {
                            "version": "41e53a773db6342ac9a689ee5ba635c31744c9f0",
                            "lessThan": "9b0a8985b419a71ee1cc9c0cc6a9e1bb7815a2c5",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8d5729350b236896f51379588d9a690b7fafb8db",
                            "lessThan": "9d378e17c864da08c3a4df41dae92cfa6468b00a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e1955a94b6f17f4b058afa955a6f187eb3ed7615",
                            "lessThan": "519fb0a42ce5d7e46935577309fb282a5f2c6ea3",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5e7b8f3c539d69b2ed5f2408e2f75e68ce7eef43",
                            "lessThan": "0e198f09cb2a554c04de0fea4e790f1250a943ca",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ef7902be3f215b6bf7babe4dc9dd9a7d57dad7a7",
                            "lessThan": "eced48cb08f07393a5ea770fdd1026452883c3ad",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "299f962c0b02d048fb45d248b4da493d03f3175d",
                            "lessThan": "af92ee994cc7f7e83a41c2025f32257a2f82a7ef",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                }

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/smb/server/smbacl.c"
                    ],
                    "versions": [
                        {
                            "version": "6.1.175",
                            "lessThan": "6.1.184",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.136",
                            "lessThan": "6.6.142",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.84",
                            "lessThan": "6.12.92",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.25",
                            "lessThan": "6.18.34",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.0.2",
                            "lessThan": "7.0.11",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 21 Nov 02:26 UTC · 274 of 275 readable · 270 fully read · documentation 469/469 current