{"id":"CVE-2026-31614","aliases":["CVE-2026-31614"],"related":[],"kind":"vulnerability","state":"published","title":"smb: client: fix off-by-8 bounds check in check_wsl_eas()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix off-by-8 bounds check in check_wsl_eas()\n\nThe bounds check uses (u8 *)ea + nlen + 1 + vlen as the end of the EA\nname and value, but ea_data sits at offset sizeof(struct\nsmb2_file_full_ea_info) = 8 from ea, not at offset 0.  The strncmp()\nlater reads ea->ea_data[0..nlen-1] and the value bytes follow at\nea_data[nlen+1..nlen+vlen], so the actual end is ea->ea_data + nlen + 1\n+ vlen.  Isn't pointer math fun?\n\nThe earlier check (u8 *)ea > end - sizeof(*ea) only guarantees the\n8-byte header is in bounds, but since the last EA is placed within 8\nbytes of the end of the response, the name and value bytes are read past\nthe end of iov.\n\nFix this mess all up by using ea->ea_data as the base for the bounds\ncheck.\n\nAn \"untrusted\" server can use this to leak up to 8 bytes of kernel heap\ninto the EA name comparison and influence which WSL xattr the data is\ninterpreted as.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix off-by-8 bounds check in check_wsl_eas()\n\nThe bounds check uses (u8 *)ea + nlen + 1 + vlen as the end of the EA\nname and value, but ea_data sits at offset sizeof(struct\nsmb2_file_full_ea_info) = 8 from ea, not at offset 0.  The strncmp()\nlater reads ea->ea_data[0..nlen-1] and the value bytes follow at\nea_data[nlen+1..nlen+vlen], so the actual end is ea->ea_data + nlen + 1\n+ vlen.  Isn't pointer math fun?\n\nThe earlier check (u8 *)ea > end - sizeof(*ea) only guarantees the\n8-byte header is in bounds, but since the last EA is placed within 8\nbytes of the end of the response, the name and value bytes are read past\nthe end of iov.\n\nFix this mess all up by using ea->ea_data as the base for the bounds\ncheck.\n\nAn \"untrusted\" server can use this to leak up to 8 bytes of kernel heap\ninto the EA name comparison and influence which WSL xattr the data is\ninterpreted as.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nsmb: cliente: corregir la comprobación de límites con un error de 8 bytes en check_wsl_eas()\n\nLa comprobación de límites usa (u8 *)ea + nlen + 1 + vlen como el final del nombre y valor de la EA, pero ea_data se encuentra en el desplazamiento sizeof(struct smb2_file_full_ea_info) = 8 desde ea, no en el desplazamiento 0. La función strncmp() lee más tarde ea  ->  ea_data[0..nlen-1] y los bytes del valor siguen en ea_data[nlen+1..nlen+vlen], por lo que el final real es ea  ->  ea_data + nlen + 1 + vlen. ¿No es divertida la aritmética de punteros?\n\nLa comprobación anterior (u8 *)ea > end - sizeof(ea) solo garantiza que la cabecera de 8 bytes está dentro de los límites, pero dado que la última EA se coloca dentro de los 8 bytes del final de la respuesta, los bytes del nombre y del valor se leen más allá del final de iov.\n\nSolucionar todo este lío usando ea  ->  ea_data como base para la comprobación de límites.\n\nUn servidor ’no confiable’ puede usar esto para filtrar hasta 8 bytes de la pila del kernel en la comparación del nombre de la EA e influir en cómo se interpreta el dato para qué xattr de WSL.","source":"nvd"}],"published":"2026-04-24T14:42:34.153Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"7449d736bbbd160c76b01b8fcdf72f58a8757d4b","fixed":"bfbc74df8bbe095b3ed68f6d4487b368af087890","status":"affected"},{"type":"git","introduced":"ea41367b2a602f602ea6594fc4a310520dcc64f4","fixed":"5cc0574c84aa73946ade587c41e81757b8b01cb5","status":"affected"},{"type":"git","introduced":"ea41367b2a602f602ea6594fc4a310520dcc64f4","fixed":"b2b76d09a64c538c57006180103fc1841e8cfa66","status":"affected"},{"type":"git","introduced":"ea41367b2a602f602ea6594fc4a310520dcc64f4","fixed":"ba3ad159aa61810bbe0acaf39578b1ebfb6f1a18","status":"affected"},{"type":"git","introduced":"ea41367b2a602f602ea6594fc4a310520dcc64f4","fixed":"a893f1757d9a4009e4a8d7ceb2312142fe29cea4","status":"affected"},{"type":"git","introduced":"ea41367b2a602f602ea6594fc4a310520dcc64f4","fixed":"3d8b9d06bd3ac4c6846f5498800b0f5f8062e53b","status":"affected"},{"type":"semver","introduced":"6.6.32","fixed":"6.6.136","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","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":"6.6.32","fixed":"6.6.136"},{"status":"affected","introduced":"6.9","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/bfbc74df8bbe095b3ed68f6d4487b368af087890","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5cc0574c84aa73946ade587c41e81757b8b01cb5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b2b76d09a64c538c57006180103fc1841e8cfa66","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba3ad159aa61810bbe0acaf39578b1ebfb6f1a18","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a893f1757d9a4009e4a8d7ceb2312142fe29cea4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3d8b9d06bd3ac4c6846f5498800b0f5f8062e53b","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-06T15:22:40.298Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31614","url":"https://www.cve.org/CVERecord?id=CVE-2026-31614","licence":"CVE Terms of Use","modified":"2026-11-06T15:32:19.620Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31614","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31614","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.515Z","epss":{"score":0.00131,"percentile":0.02911,"date":"2026-12-01T12:00:22.000Z"}}