CVE-2026-43112
JSON

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 packageVersionsReported by
Linux Linuxfrom 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
kernelNot 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-patchNot specifiedCVE List
kernel-rtNot 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
rhcosNot 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
libkrunNot specifiedCVE List
openshift/ose-rhel-coreos-8Not specifiedCVE List
linux linux_kernelfrom 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.0NVD

All scores

Linux8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
redhat-SADP8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Classification

CWE-125

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

https://git.kernel.org/stable/c/a2ba20c17de8eb028f96b1d85f119d3d25655bd9
https://git.kernel.org/stable/c/fbced33599653471b4581dfe1abc7b467031f126
https://git.kernel.org/stable/c/5d4fe469fe7dbff7d874c196bb680a82f2625d95patch
https://git.kernel.org/stable/c/2d29214448ec0f4e7e18bb1c14dd4a6c07f1c439patch
https://git.kernel.org/stable/c/86f9c23e0814cfdffda9eedf0c591c51ba209010patch
https://git.kernel.org/stable/c/49b1ce6d7cfb6c5a49f68bf5ccfcfb6ba14e63c3patch
https://git.kernel.org/stable/c/78ec5bf2f589ec7fd8f169394bfeca541b077317patch
https://access.redhat.com/security/cve/CVE-2026-43112vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2467015issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-43112.json
https://access.redhat.com/errata/RHSA-2026:59831vendor-advisory
https://access.redhat.com/errata/RHSA-2026:65839vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-43112 changed 2026-10-19CVE Terms of Use
NVDCVE-2026-43112 changed 2026-11-11Public domain