{"id":"CVE-2026-31612","aliases":["CVE-2026-31612"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: validate EaNameLength in smb2_get_ea()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: validate EaNameLength in smb2_get_ea()\n\nsmb2_get_ea() reads ea_req->EaNameLength from the client request and\npasses it directly to strncmp() as the comparison length without\nverifying that the length of the name really is the size of the input\nbuffer received.\n\nFix this up by properly checking the size of the name based on the value\nreceived and the overall size of the request, to prevent a later\nstrncmp() call to use the length as a \"trusted\" size of the buffer.\nWithout this check, uninitialized heap values might be slowly leaked to\nthe client.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: validate EaNameLength in smb2_get_ea()\n\nsmb2_get_ea() reads ea_req->EaNameLength from the client request and\npasses it directly to strncmp() as the comparison length without\nverifying that the length of the name really is the size of the input\nbuffer received.\n\nFix this up by properly checking the size of the name based on the value\nreceived and the overall size of the request, to prevent a later\nstrncmp() call to use the length as a \"trusted\" size of the buffer.\nWithout this check, uninitialized heap values might be slowly leaked to\nthe client.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nksmbd: validar EaNameLength en smb2_get_ea()\n\nsmb2_get_ea() lee ea_req  ->  EaNameLength de la solicitud del cliente y lo pasa directamente a strncmp() como la longitud de comparación sin verificar que la longitud del nombre realmente sea el tamaño del búfer de entrada recibido.\n\nEsto se soluciona comprobando correctamente el tamaño del nombre basándose en el valor recibido y el tamaño total de la solicitud, para evitar que una llamada posterior a strncmp() use la longitud como un tamaño ’confiable’ del búfer. Sin esta comprobación, los valores de pila no inicializados podrían filtrarse lentamente al cliente.","source":"nvd"}],"published":"2026-04-24T14:42:32.760Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","fixed":"859f11e1bc81a4d32bb3ceeae54bcd296ac675d3","status":"affected"},{"type":"git","introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","fixed":"4b73376feecb3b61172fe5b4ff42bbbb8531669d","status":"affected"},{"type":"git","introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","fixed":"551dfb15b182abad4600eaf7b37e6eb7000d5b1b","status":"affected"},{"type":"git","introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","fixed":"3363a770b193f555f29d76ddf4ced3305c0ccf6d","status":"affected"},{"type":"git","introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","fixed":"243b206bcb5a7137e8bddd57b2eec81e1ebd3859","status":"affected"},{"type":"git","introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","fixed":"dfc6878d14acafffbe670bf2576620757a10a3d8","status":"affected"},{"type":"git","introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","fixed":"66751841212c2cc196577453c37f7774ff363f02","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.136","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.83","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.24","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.14","lastAffected":"6.19.*","status":"unaffected"},{"type":"semver","introduced":"7.0.1","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15","fixed":"6.6.136"},{"status":"affected","introduced":"6.7","fixed":"6.12.83"},{"status":"affected","introduced":"6.13","fixed":"6.18.24"},{"status":"affected","introduced":"6.19","fixed":"6.19.14"},{"status":"affected","introduced":"7.0","fixed":"7.0.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/859f11e1bc81a4d32bb3ceeae54bcd296ac675d3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4b73376feecb3b61172fe5b4ff42bbbb8531669d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/551dfb15b182abad4600eaf7b37e6eb7000d5b1b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3363a770b193f555f29d76ddf4ced3305c0ccf6d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/243b206bcb5a7137e8bddd57b2eec81e1ebd3859","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dfc6878d14acafffbe670bf2576620757a10a3d8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/66751841212c2cc196577453c37f7774ff363f02","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31612","url":"https://www.cve.org/CVERecord?id=CVE-2026-31612","licence":"CVE Terms of Use","modified":"2026-10-15T01:17:11.549Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31612","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31612","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.514Z","epss":{"score":0.00442,"percentile":0.40144,"date":"2026-12-01T12:00:22.000Z"}}