# CVE-2026-43112: fs/smb/client: fix out-of-bounds read in cifs\_sanitize\_prepath

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.68% (percentile 47, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2026-05-06T07:40:38.563Z
- **Modified:** 2026-11-11T21:10:00.200Z

## Who should check

- Anyone running Linux \>= c63433a09d6ae4c226fcbc66da4c58fc189fd746, \< a2ba20c17de8eb028f96b1d85f119d3d25655bd9; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< fbced33599653471b4581dfe1abc7b467031f126; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 5d4fe469fe7dbff7d874c196bb680a82f2625d95; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 2d29214448ec0f4e7e18bb1c14dd4a6c07f1c439; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 86f9c23e0814cfdffda9eedf0c591c51ba209010; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 49b1ce6d7cfb6c5a49f68bf5ccfcfb6ba14e63c3; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 78ec5bf2f589ec7fd8f169394bfeca541b077317; \>= 5.15.11, \< 5.15.209
- Anyone running Linux 5.16

## 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 and fixed versions

- Linux: \>= c63433a09d6ae4c226fcbc66da4c58fc189fd746, \< a2ba20c17de8eb028f96b1d85f119d3d25655bd9; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< fbced33599653471b4581dfe1abc7b467031f126; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 5d4fe469fe7dbff7d874c196bb680a82f2625d95; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 2d29214448ec0f4e7e18bb1c14dd4a6c07f1c439; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 86f9c23e0814cfdffda9eedf0c591c51ba209010; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 49b1ce6d7cfb6c5a49f68bf5ccfcfb6ba14e63c3; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 78ec5bf2f589ec7fd8f169394bfeca541b077317; \>= 5.15.11, \< 5.15.209 (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

- Upgrade Linux to 5.15.209 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-43112. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-43112.md
Affected: Linux >= c63433a09d6ae4c226fcbc66da4c58fc189fd746, < a2ba20c17de8eb028f96b1d85f119d3d25655bd9; >= a31080899d5fdafcccf7f39dd214a814a2c82626, < fbced33599653471b4581dfe1abc7b467031f126; >= a31080899d5fdafcccf7f39dd214a814a2c82626, < 5d4fe469fe7dbff7d874c196bb680a82f2625d95; >= a31080899d5fdafcccf7f39…
Fixed in: Linux 5d4fe469fe7dbff7d874c196bb680a82f2625d95, Linux 2d29214448ec0f4e7e18bb1c14dd4a6c07f1c439, Linux 86f9c23e0814cfdffda9eedf0c591c51ba209010, Linux 49b1ce6d7cfb6c5a49f68bf5ccfcfb6ba14e63c3, Linux 78ec5bf2f589ec7fd8f169394bfeca541b077317, Linux 5.15.209

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-43112 being exploited?

There is no confirmed exploitation: CVE-2026-43112 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.68% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-43112?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-43112?

Linux \>= c63433a09d6ae4c226fcbc66da4c58fc189fd746, \< a2ba20c17de8eb028f96b1d85f119d3d25655bd9; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< fbced33599653471b4581dfe1abc7b467031f126; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 5d4fe469fe7dbff7d874c196bb680a82f2625d95; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 2d29214448ec0f4e7e18bb1c14dd4a6c07f1c439; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 86f9c23e0814cfdffda9eedf0c591c51ba209010; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 49b1ce6d7cfb6c5a49f68bf5ccfcfb6ba14e63c3; \>= a31080899d5fdafcccf7f39dd214a814a2c82626, \< 78ec5bf2f589ec7fd8f169394bfeca541b077317; \>= 5.15.11, \< 5.15.209; Linux 5.16.

### Is there a fix for CVE-2026-43112?

Yes. Fixed in Linux 5d4fe469fe7dbff7d874c196bb680a82f2625d95, Linux 2d29214448ec0f4e7e18bb1c14dd4a6c07f1c439, Linux 86f9c23e0814cfdffda9eedf0c591c51ba209010, Linux 49b1ce6d7cfb6c5a49f68bf5ccfcfb6ba14e63c3, Linux 78ec5bf2f589ec7fd8f169394bfeca541b077317, Linux 5.15.209. Upgrade Linux to 5.15.209 or later.

### How do I check if I'm affected by CVE-2026-43112?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2026:59831>
- vendor: <https://access.redhat.com/errata/RHSA-2026:65839>
- vendor: <https://access.redhat.com/errata/RHSA-2026:62409>
- vendor: <https://access.redhat.com/errata/RHSA-2026:62549>
- vendor: <https://access.redhat.com/errata/RHSA-2026:60019>
- vendor: <https://access.redhat.com/errata/RHSA-2026:65851>
- vendor: <https://access.redhat.com/errata/RHSA-2026:57402>
- vendor: <https://access.redhat.com/errata/RHSA-2026:57543>
- vendor: <https://access.redhat.com/errata/RHSA-2026:57457>
- vendor: <https://access.redhat.com/errata/RHSA-2026:40764>
- vendor: <https://access.redhat.com/errata/RHSA-2026:52764>
- vendor: <https://access.redhat.com/errata/RHSA-2026:34911>
- vendor: <https://access.redhat.com/errata/RHSA-2026:59662>
- vendor: <https://access.redhat.com/errata/RHSA-2026:56573>
- vendor: <https://access.redhat.com/errata/RHSA-2026:53990>
- vendor: <https://access.redhat.com/errata/RHSA-2026:36018>
- vendor: <https://access.redhat.com/errata/RHSA-2026:62642>
- vendor: <https://access.redhat.com/errata/RHSA-2026:36366>
- vendor: <https://access.redhat.com/errata/RHSA-2026:62637>
- vendor: <https://access.redhat.com/errata/RHSA-2026:53989>
- vendor: <https://access.redhat.com/errata/RHSA-2026:52649>
- vendor: <https://access.redhat.com/errata/RHSA-2026:62558>
- vendor: <https://access.redhat.com/errata/RHSA-2026:62638>
- vendor: <https://access.redhat.com/errata/RHSA-2026:62639>
- vendor: <https://access.redhat.com/errata/RHSA-2026:62641>
- vendor: <https://access.redhat.com/errata/RHSA-2026:62640>
- vendor: <https://access.redhat.com/errata/RHSA-2026:36365>
- vendor: <https://access.redhat.com/errata/RHSA-2026:59663>
- patch: <https://git.kernel.org/stable/c/5d4fe469fe7dbff7d874c196bb680a82f2625d95>
- patch: <https://git.kernel.org/stable/c/2d29214448ec0f4e7e18bb1c14dd4a6c07f1c439>
- patch: <https://git.kernel.org/stable/c/86f9c23e0814cfdffda9eedf0c591c51ba209010>
- patch: <https://git.kernel.org/stable/c/49b1ce6d7cfb6c5a49f68bf5ccfcfb6ba14e63c3>
- patch: <https://git.kernel.org/stable/c/78ec5bf2f589ec7fd8f169394bfeca541b077317>
- other: <https://git.kernel.org/stable/c/a2ba20c17de8eb028f96b1d85f119d3d25655bd9>
- other: <https://git.kernel.org/stable/c/fbced33599653471b4581dfe1abc7b467031f126>
- other: <https://access.redhat.com/security/cve/CVE-2026-43112>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2467015>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-43112.json>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-43112>

HTML: <https://flawdb.com/CVE-2026-43112> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-43112>
