fs/smb/client: fix out-of-bounds read in cifs_sanitize_prepath (Linux Linux)

CVE-2026-43112
HIGH 8.8

En bref

Source
NVD
EPSS
EPSS 0.35 % · centile 29 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

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.

Faiblesses (CWE)

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 8.8CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 8.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:Hredhat-SADP
CVSS 3.1HIGH 8.8CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 8.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected c63433a09d6ae4c226fcbc66da4c58fc189fd746 < a2ba20c17de8eb028f96b1d85f119d3d25655bd9 ; affected a31080899d5fdafcccf7f39dd214a814a2c82626 < fbced33599653471b4581dfe1abc7b467031f126 ; affected a31080899d5fdafcccf7f39dd214a814a2c82626 < 5d4fe469fe7dbff7d874c196bb680a82f2625d95 ; affected a31080899d5fdafcccf7f39dd214a814a2c82626 < 2d29214448ec0f4e7e18bb1c14dd4a6c07f1c439 ; affected a31080899d5fdafcccf7f39dd214a814a2c82626 < 86f9c23e0814cfdffda9eedf0c591c51ba209010 ; affected a31080899d5fdafcccf7f39dd214a814a2c82626 < 49b1ce6d7cfb6c5a49f68bf5ccfcfb6ba14e63c3
Linux · Linuxaffected 5.16 ; unaffected 0 < 5.16 ; unaffected 5.15.209 ≤ 5.15.* ; unaffected 6.1.175 ≤ 6.1.* ; unaffected 6.6.136 ≤ 6.6.* ; unaffected 6.12.83 ≤ 6.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD