8.8high
fs/smb/client: fix out-of-bounds read in cifs_sanitize_prepath
- Severity
- 8.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.35% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: fs/smb/client: fix out-of-bounds read in cifs_sanitize_prepath When cifs_sanitize_prepath is called with an empty string or a string containing only delimiters (e.g., "/"), the current logic attempts to check *(cursor2 - 1) before cursor2 has advanced. This results in an out-of-bounds read. This patch adds an early exit check after stripping prepended delimiters. If no path content remains, the function returns NULL. The bug was identified via manual audit and verified using a standalone test case compiled with AddressSanitizer, which triggered a SEGV on affected inputs.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from c63433a09d6ae4c226fcbc66da4c58fc189fd746 before a2ba20c17de8eb028f96b1d85f119d3d25655bd9, from a31080899d5fdafcccf7f39dd214a814a2c82626 before fbced33599653471b4581dfe1abc7b467031f126, from a31080899d5fdafcccf7f39dd214a814a2c82626 before 5d4fe469fe7dbff7d874c196bb680a82f2625d95, from a31080899d5fdafcccf7f39dd214a814a2c82626 before 2d29214448ec0f4e7e18bb1c14dd4a6c07f1c439, from a31080899d5fdafcccf7f39dd214a814a2c82626 before 86f9c23e0814cfdffda9eedf0c591c51ba209010, from a31080899d5fdafcccf7f39dd214a814a2c82626 before 49b1ce6d7cfb6c5a49f68bf5ccfcfb6ba14e63c3, from a31080899d5fdafcccf7f39dd214a814a2c82626 before 78ec5bf2f589ec7fd8f169394bfeca541b077317, from 5.15.11 before 5.15.209 and 1 more Not affected: before 5.16, from 5.15.209 up to 5.15.*, from 6.1.175 up to 6.1.*, from 6.6.136 up to 6.6.*, from 6.12.83 up to 6.12.*, from 6.18.24 up to 6.18.* | CVE List |
| kernel | Not specified Not affected: from 0:6.12.0-211.30.1.el10_2 before *, from 0:6.12.0-55.95.1.el10_0 before *, from 0:4.18.0-553.141.1.el8_10 before *, from 0:4.18.0-372.206.1.el8_6 before *, from 0:4.18.0-477.158.1.el8_8 before *, from 0:5.14.0-687.22.1.el9_8 before * | CVE List |
| kpatch-patch | Not specified | CVE List |
| kernel-rt | Not specified Not affected: from 0:4.18.0-553.141.1.rt7.482.el8_10 before *, from 0:5.14.0-284.188.1.rt14.473.el9_2 before * | CVE List |
| rhcos | Not specified Not affected: from 412.86.202608241157-0 before *, from 413.92.202609080414-0 before *, from 414.92.202609011250-0 before *, from 416.94.202609011112-0 before *, from 417.94.202608250221-0 before *, from 418.94.202609031320-0 before * | CVE List |
| libkrun | Not specified | CVE List |
| openshift/ose-rhel-coreos-8 | Not specified | CVE List |
| linux linux_kernel | from 5.16.1 before 6.6.136, from 6.7 before 6.12.83, from 6.13 before 6.18.24, from 6.19 before 6.19.14, 5.16, 7.0 | NVD |
All scores
| Linux | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| redhat-SADP | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: fs/smb/client: fix out-of-bounds read in cifs_sanitize_prepath When cifs_sanitize_prepath is called with an empty string or a string containing only delimiters (e.g., "/"), the current logic attempts to check *(cursor2 - 1) before cursor2 has advanced. This results in an out-of-bounds read. This patch adds an early exit check after stripping prepended delimiters. If no path content remains, the function returns NULL. The bug was identified via manual audit and verified using a standalone test case compiled with AddressSanitizer, which triggered a SEGV on affected inputs.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: fs/smb/cliente: corrección de lectura fuera de límites en cifs_sanitize_prepath Cuando se llama a cifs_sanitize_prepath con una cadena vacía o una cadena que contiene solo delimitadores (p. ej., ’/’), la lógica actual intenta verificar *(cursor2 - 1) antes de que cursor2 haya avanzado. Esto resulta en una lectura fuera de límites. Este parche añade una verificación de salida temprana después de eliminar los delimitadores antepuestos. Si no queda contenido de ruta, la función devuelve NULL. El error fue identificado mediante una auditoría manual y verificado usando un caso de prueba independiente compilado con AddressSanitizer, lo que provocó un SEGV en entradas afectadas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43112 changed 2026-10-19 | CVE Terms of Use |
| NVD | CVE-2026-43112 changed 2026-11-11 | Public domain |