CVE-2026-64139
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.
Leer descripción completaMostrar menos
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.
CVSS
- Versión: 3.1
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Puntuación base: 5.5
Probabilidad de explotación (EPSS)
- Probabilidad de explotación en los próximos 30 días: 0.17%
- Percentil entre todas las CVEs puntuadas: 6
- Fecha de la puntuación: 5/10/2026
EPSS (Exploit Prediction Scoring System, de FIRST) estima la probabilidad de que una vulnerabilidad sea explotada en 30 días. Complementa a CVSS (impacto) y a CISA KEV (explotación confirmada).
Tecnologías afectadas (1)
CWE
- CWE-401
Referencias
- https://git.kernel.org/stable/c/0e198f09cb2a554c04de0fea4e790f1250a943ca
- https://git.kernel.org/stable/c/519fb0a42ce5d7e46935577309fb282a5f2c6ea3
- https://git.kernel.org/stable/c/9b0a8985b419a71ee1cc9c0cc6a9e1bb7815a2c5
- https://git.kernel.org/stable/c/9d378e17c864da08c3a4df41dae92cfa6468b00a
- https://git.kernel.org/stable/c/af92ee994cc7f7e83a41c2025f32257a2f82a7ef
- https://git.kernel.org/stable/c/eced48cb08f07393a5ea770fdd1026452883c3ad
JSON original (NVD)
Mostrar
{
"id": "CVE-2026-64139",
"cveTags": [],
"metrics": {
"cvssMetricV31": [
{
"type": "Primary",
"source": "nvd@nist.gov",
"cvssData": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 5.5,
"attackVector": "LOCAL",
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
"integrityImpact": "NONE",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "HIGH",
"privilegesRequired": "LOW",
"confidentialityImpact": "NONE"
},
"impactScore": 3.6,
"exploitabilityScore": 1.8
}
]
},
"affected": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"affectedData": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "41e53a773db6342ac9a689ee5ba635c31744c9f0",
"lessThan": "9b0a8985b419a71ee1cc9c0cc6a9e1bb7815a2c5",
"versionType": "git"
},
{
"status": "affected",
"version": "8d5729350b236896f51379588d9a690b7fafb8db",
"lessThan": "9d378e17c864da08c3a4df41dae92cfa6468b00a",
"versionType": "git"
},
{
"status": "affected",
"version": "e1955a94b6f17f4b058afa955a6f187eb3ed7615",
"lessThan": "519fb0a42ce5d7e46935577309fb282a5f2c6ea3",
"versionType": "git"
},
{
"status": "affected",
"version": "5e7b8f3c539d69b2ed5f2408e2f75e68ce7eef43",
"lessThan": "0e198f09cb2a554c04de0fea4e790f1250a943ca",
"versionType": "git"
},
{
"status": "affected",
"version": "ef7902be3f215b6bf7babe4dc9dd9a7d57dad7a7",
"lessThan": "eced48cb08f07393a5ea770fdd1026452883c3ad",
"versionType": "git"
},
{
"status": "affected",
"version": "299f962c0b02d048fb45d248b4da493d03f3175d",
"lessThan": "af92ee994cc7f7e83a41c2025f32257a2f82a7ef",
"versionType": "git"
}
],
"programFiles": [
"fs/smb/server/smbacl.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.1.175",
"lessThan": "6.1.184",
"versionType": "semver"
},
{
"status": "affected",
"version": "6.6.136",
"lessThan": "6.6.142",
"versionType": "semver"
},
{
"status": "affected",
"version": "6.12.84",
"lessThan": "6.12.92",
"versionType": "semver"
},
{
"status": "affected",
"version": "6.18.25",
"lessThan": "6.18.34",
"versionType": "semver"
},
{
"status": "affected",
"version": "7.0.2",
"lessThan": "7.0.11",
"versionType": "semver"
}
],
"programFiles": [
"fs/smb/server/smbacl.c"
],
"defaultStatus": "unaffected"
}
]
}
],
"published": "2026-07-19T16:17:55.780",
"references": [
{
"url": "https://git.kernel.org/stable/c/0e198f09cb2a554c04de0fea4e790f1250a943ca",
"tags": [
"Patch"
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/519fb0a42ce5d7e46935577309fb282a5f2c6ea3",
"tags": [
"Patch"
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/9b0a8985b419a71ee1cc9c0cc6a9e1bb7815a2c5",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/9d378e17c864da08c3a4df41dae92cfa6468b00a",
"tags": [
"Patch"
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/af92ee994cc7f7e83a41c2025f32257a2f82a7ef",
"tags": [
"Patch"
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/eced48cb08f07393a5ea770fdd1026452883c3ad",
"tags": [
"Patch"
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"vulnStatus": "Modified",
"weaknesses": [
{
"type": "Primary",
"source": "nvd@nist.gov",
"description": [
{
"lang": "en",
"value": "CWE-401"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix SID memory leak in set_posix_acl_entries_dacl() on overflow\n\nCommit 299f962c0b02 (\"ksmbd: use check_add_overflow() to prevent u16\nDACL size overflow\") added check_add_overflow() guards that break out\nof the ACE-building loops in set_posix_acl_entries_dacl() when the\naccumulated DACL size would wrap past 65535.\n\nHowever, each iteration allocates a struct smb_sid via kmalloc_obj()\nat the top of the loop and relies on the kfree(sid) call at the end\nof the loop body (the 'pass_same_sid' label in the first loop, and\nthe explicit kfree at the tail of the second loop) to release it.\nThe newly introduced 'break' statements bypass those kfree() calls,\nleaking the sid buffer every time an overflow is detected.\n\nA malicious or malformed file with enough POSIX ACL entries to trip\nthe overflow check will leak one or more struct smb_sid allocations\non every request that touches the file's DACL, providing a trivial\nkernel memory exhaustion vector.\n\nFree sid before breaking out of the loops to plug the leak."
}
],
"lastModified": "2026-08-23T13:16:30.763",
"configurations": [
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "67892698-2698-487E-B4D2-EFCD2D933D19",
"versionEndExcluding": "6.2",
"versionStartIncluding": "6.1.175"
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "D6860A2E-336D-4DE8-A693-65855967CEFB",
"versionEndExcluding": "6.6.142",
"versionStartIncluding": "6.6.136"
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "0370FBD9-DD92-453A-B78F-26509DD49BDB",
"versionEndExcluding": "6.12.92",
"versionStartIncluding": "6.12.84"
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "DA64D4E1-38E9-461B-BC79-E37342B166E5",
"versionEndExcluding": "6.18.34",
"versionStartIncluding": "6.18.25"
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "718BE7BD-B7F4-498A-AE48-BB3AC51CB21A",
"versionEndExcluding": "7.0.11",
"versionStartIncluding": "7.0.2"
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "B1EF7059-E670-45F4-B422-54C40FA86390"
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "0D38F0BF-A728-4133-A358-D44A2F7EE6D6"
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "EC732D08-5F7B-46D9-B154-E60C7F4F0A97"
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "E5910A9D-F60A-409A-B486-FE66BFEBA9B9"
}
],
"operator": "OR"
}
]
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}