CVE-2026-99540
Noticias y reportajes en Orbitaley
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:
ksmbd: corrige la vida útil del dentry padre en la enumeración de directorios
ksmbd_populate_dot_dotdot_entries() construye la entrada ".." a partir de d_parent del directorio abierto y pasa ese puntero a ksmbd_vfs_fill_dentry_attrs() sin tomar una referencia. Ese puntero solo es válido mientras el directorio siga bajo este padre. Si una renombración concurrente mueve el directorio a otro lugar, el padre antiguo pierde su última referencia; un rmdir posterior lo convierte en un dentry negativo con d_inode a NULL, y tras el periodo de gracia de RCU el propio dentry se libera. El worker sigue conservando el puntero sin procesar y desreferencia d_inode a través de vfs_getattr() y vfs_getxattr().
Leer descripción completaMostrar menos
Un cliente SMB remoto, autenticado o invitado, lo desencadena listando un directorio mientras ese directorio se mueve bajo un nuevo padre y el padre antiguo se elimina. Puede hacerlo el propio cliente con permisos de escritura o por otros escritores concurrentes, provocando null-ptr-deref y slab-use-after-free en una compilación con KASAN.
Se corrige usando las APIs de contaje de referencias de dentry: se toma el padre con dget_parent(), se toma una dget() equivalente sobre "." y se ejecuta dput() sobre el dentry una vez que ksmbd_vfs_fill_dentry_attrs() ha devuelto el control o si el patrón no coincide.
Detalles técnicos trazas, registros y código del informe original
KASAN: null-ptr-deref in range
[0x0000000000000000-0x0000000000000007]
Workqueue: ksmbd-io handle_ksmbd_work
RIP: 0010:xattr_permission+0x9d/0x160
Call Trace:
vfs_getxattr+0x9c/0x1b0
ksmbd_vfs_getxattr+0x82/0x100
ksmbd_vfs_get_dos_attrib_xattr+0x7f/0x130
ksmbd_vfs_fill_dentry_attrs+0x435/0x650
ksmbd_populate_dot_dotdot_entries+0x25e/0x630
smb2_query_dir+0xcf9/0x1a20
handle_ksmbd_work+0x5f1/0x1c80
process_one_work+0x90b/0x19d0Traducción automática del texto original de NVD (en inglés).
Cronología
Elaborada con nuestros propios datos: NVD, CISA KEV y otros catálogos de explotación, FIRST EPSS, exploits públicos, prensa especializada y la cobertura de Orbitaley.
- Registro CVE publicado en NVD
- Alerta: El kernel de Linux corrige 22 vulnerabilidades graves, 12 de ellas críticas, sobre todo en NFS y SMB
- Última modificación del registro en NVD
Técnicas ATT&CK
Cómo se explota esta vulnerabilidad y qué consigue el atacante, en el lenguaje de MITRE ATT&CK.
- Explotación
T1210Exploitation of Remote Serviceslateral movement85 % - Impacto principal
T1499.004Application or System Exploitationimpact70 %
Vector AV:N/PR:L/UI:N: explotación remota con privilegios bajos (cliente SMB autenticado o invitado); el texto cita null-ptr-deref y use-after-free que provocan fallo del servicio.
Inferido por nuestro agente de análisis a partir de la descripción oficial, el vector CVSS y la CWE, y comprobado por un supervisor. Puede contener errores.
Mitigaciones ATT&CK que cubren estas técnicas
Tecnologías afectadas (1)
⚠ Inferidas por IA a partir de la descripción — NVD aún no ha analizado esta CVE; no son CPE verificados.
Registro NVD
- Estado en NVD
- Recibida
- Publicada
- 19 nov 2026
- Última modificación
- 23 nov 2026
- Vector CVSS
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Referencias
- Parchegit.kernel.org/stable/c/171df27077fb49b4af2c53ad2cedcd0e39664fe8
- Parchegit.kernel.org/stable/c/32934b13b1a63c86d2fa68df0bfb28c51ce38879
- Parchegit.kernel.org/stable/c/93566781118cdff874023d5ca4e7b8054baaec31
- Parchegit.kernel.org/stable/c/b62ef8cfec9351662e42cbf7da2d743068699bba
- Parchegit.kernel.org/stable/c/cdc9a843b4688fa2729ddaf3e575dadd243aacc1
- Parchegit.kernel.org/stable/c/e8af427da35cf10c9d26b96d91b6849dd01e125c
JSON original (NVD)
Mostrar
{
"id": "CVE-2026-99540",
"cveTags": [],
"metrics": {
"cvssMetricV31": [
{
"type": "Secondary",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"cvssData": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 8.8,
"attackVector": "NETWORK",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"integrityImpact": "HIGH",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "HIGH",
"privilegesRequired": "LOW",
"confidentialityImpact": "HIGH"
},
"impactScore": 5.9,
"exploitabilityScore": 2.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": "e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9",
"lessThan": "cdc9a843b4688fa2729ddaf3e575dadd243aacc1",
"versionType": "git"
},
{
"status": "affected",
"version": "e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9",
"lessThan": "e8af427da35cf10c9d26b96d91b6849dd01e125c",
"versionType": "git"
},
{
"status": "affected",
"version": "e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9",
"lessThan": "32934b13b1a63c86d2fa68df0bfb28c51ce38879",
"versionType": "git"
},
{
"status": "affected",
"version": "e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9",
"lessThan": "93566781118cdff874023d5ca4e7b8054baaec31",
"versionType": "git"
},
{
"status": "affected",
"version": "e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9",
"lessThan": "b62ef8cfec9351662e42cbf7da2d743068699bba",
"versionType": "git"
},
{
"status": "affected",
"version": "e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9",
"lessThan": "171df27077fb49b4af2c53ad2cedcd0e39664fe8",
"versionType": "git"
}
],
"programFiles": [
"fs/smb/server/smb_common.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.15"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.15",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.1.193",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.163",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.117",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.61",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.3.2",
"versionType": "semver",
"lessThanOrEqual": "7.3.*"
},
{
"status": "unaffected",
"version": "7.4-rc1",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"fs/smb/server/smb_common.c"
],
"defaultStatus": "affected"
}
]
}
],
"published": "2026-11-19T15:18:10.040",
"references": [
{
"url": "https://git.kernel.org/stable/c/171df27077fb49b4af2c53ad2cedcd0e39664fe8",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/32934b13b1a63c86d2fa68df0bfb28c51ce38879",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/93566781118cdff874023d5ca4e7b8054baaec31",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/b62ef8cfec9351662e42cbf7da2d743068699bba",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/cdc9a843b4688fa2729ddaf3e575dadd243aacc1",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/e8af427da35cf10c9d26b96d91b6849dd01e125c",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"vulnStatus": "Received",
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix parent dentry lifetime in directory enumeration\n\nksmbd_populate_dot_dotdot_entries() builds the \"..\" entry from\nthe open directory's d_parent and passes that pointer to\nksmbd_vfs_fill_dentry_attrs() without taking a reference. That pointer\nis only valid while the directory stays under this parent. If a\nconcurrent rename moves the directory elsewhere, the old parent loses\nits last reference; a following rmdir then turns it into a negative\ndentry with d_inode cleared, and after the RCU grace period the dentry\nitself is freed. The worker still holds the raw pointer and\ndereferences d_inode through vfs_getattr() and vfs_getxattr().\n\nA remote SMB client, authenticated or guest, triggers this by listing\na directory while that directory is moved under a new parent and the\nold parent is deleted. It can be done by the client itself with write\naccess or by other concurrent writers, triggering null-ptr-deref and\nslab-use-after-free on a KASAN build.\n\n KASAN: null-ptr-deref in range\n [0x0000000000000000-0x0000000000000007]\n Workqueue: ksmbd-io handle_ksmbd_work\n RIP: 0010:xattr_permission+0x9d/0x160\n Call Trace:\n vfs_getxattr+0x9c/0x1b0\n ksmbd_vfs_getxattr+0x82/0x100\n ksmbd_vfs_get_dos_attrib_xattr+0x7f/0x130\n ksmbd_vfs_fill_dentry_attrs+0x435/0x650\n ksmbd_populate_dot_dotdot_entries+0x25e/0x630\n smb2_query_dir+0xcf9/0x1a20\n handle_ksmbd_work+0x5f1/0x1c80\n process_one_work+0x90b/0x19d0\n\nFix by using the dentry reference counting APIs: take the parent with\ndget_parent(), take a matching dget() on \".\", and dput() the dentry\nonce ksmbd_vfs_fill_dentry_attrs() has returned or the pattern does\nnot match."
}
],
"lastModified": "2026-11-23T08:17:55.990",
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}