CVE-2026-43112
fs/smb/client: fix out-of-bounds read in cifs_sanitize_prepath
Check your servers for CVE-2026-43112
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-43112 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.35%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 30.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 16 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-125 Out-of-bounds Read
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from c63433a09d6ae4c226fcbc66da4c58fc189fd746, before a2ba20c17de8eb028f96b1d85f119d3d25655bd9 affected from a31080899d5fdafcccf7f39dd214a814a2c82626, before fbced33599653471b4581dfe1abc7b467031f126 affected from a31080899d5fdafcccf7f39dd214a814a2c82626, before 5d4fe469fe7dbff7d874c196bb680a82f2625d95 affected from a31080899d5fdafcccf7f39dd214a814a2c82626, before 2d29214448ec0f4e7e18bb1c14dd4a6c07f1c439 affected from a31080899d5fdafcccf7f39dd214a814a2c82626, before 86f9c23e0814cfdffda9eedf0c591c51ba209010 affected from a31080899d5fdafcccf7f39dd214a814a2c82626, before 49b1ce6d7cfb6c5a49f68bf5ccfcfb6ba14e63c3 affected from a31080899d5fdafcccf7f39dd214a814a2c82626, before 78ec5bf2f589ec7fd8f169394bfeca541b077317 affected from 5.15.11, before 5.15.209
Other versions: unaffected
|
| Linux |
affected 5.16 unaffected before 5.16 unaffected from 5.15.209 up to and including 5.15.* unaffected from 6.1.175 up to and including 6.1.* unaffected from 6.6.136 up to and including 6.6.* unaffected from 6.12.83 up to and including 6.12.* unaffected from 6.18.24 up to and including 6.18.* unaffected from 6.19.14 up to and including 6.19.* unaffected 7.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-43112 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-43112
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-43112
trivy image --scanners vuln IMAGE | grep CVE-2026-43112
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://access.redhat.com/security/cve/CVE-2026-43112 access.redhat.com · vdb entry
- RHBZ#2467015 bugzilla.redhat.com · issue tracking
- https://access.redhat.com/errata/RHSA-2026:59831 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:65839 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:62409 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:62549 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:60019 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:65851 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:57402 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:57543 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:57457 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:40764 access.redhat.com · vendor advisory
18 more
- https://access.redhat.com/errata/RHSA-2026:52764 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:34911 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:59662 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:56573 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:53990 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:36018 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:62642 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:36366 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:62637 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:53989 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:52649 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:62558 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:62638 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:62639 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:62641 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:62640 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:36365 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:59663 access.redhat.com · vendor advisory
Other references
- https://git.kernel.org/stable/c/a2ba20c17de8eb028f96b1d85f119d3d25655bd9 git.kernel.org
- https://git.kernel.org/stable/c/fbced33599653471b4581dfe1abc7b467031f126 git.kernel.org
- https://git.kernel.org/stable/c/5d4fe469fe7dbff7d874c196bb680a82f2625d95 git.kernel.org
- https://git.kernel.org/stable/c/2d29214448ec0f4e7e18bb1c14dd4a6c07f1c439 git.kernel.org
- https://git.kernel.org/stable/c/86f9c23e0814cfdffda9eedf0c591c51ba209010 git.kernel.org
- https://git.kernel.org/stable/c/49b1ce6d7cfb6c5a49f68bf5ccfcfb6ba14e63c3 git.kernel.org
- https://git.kernel.org/stable/c/78ec5bf2f589ec7fd8f169394bfeca541b077317 git.kernel.org
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-43112.json security.access.redhat.com
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html cert-portal.siemens.com
Source: the record CVE-2026-43112 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse