Out-of-bounds read in Linux kernel ksmbd name validation
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · Low · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
The Linux kernel ksmbd SMB server is affected from 6.6.32 before 6.6.163 and from 6.9. The ksmbd_validate_name_reconnect() function compares a path without first checking its length, so it reads past the end of the path buffer. A remote client with low privileges can reconnect a durable file on a share with a longer path than the share it came from, which can crash the kernel.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Description from the CNA
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect() ksmbd_validate_name_reconnect() indexes ab_pathname[share->path_sz + 1] without checking that the path is longer than share->path_sz + 1 (d_path() fills the buffer from the end). A durable fp is not bound to its original share, so a client can preserve a file from a short-path share and reconnect it on a long-path share, making strcmp() read past the PATH_MAX buffer - with a long enough share path this oopses the kernel, and on a mapped page it also gives a byte-equality oracle on adjacent heap (the reconnect succeeds exactly when the out-of-bounds string equals the requested name). A same-share variant with the durable fp at the share root reads 1 byte past the buffer (strlen(ab_pathname) == share->path_sz). Check before comparing: the path must be longer than share->path_sz, it must start with share->path, and the next character must be '/'. The share root itself is accepted only for an empty name.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
The fixed Linux kernel versions are 6.6.163, 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Use the fixed version on the stable branch you run.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
- Fix · CNA Linux (Linux) Fixed in 6.6.163
- Fix · CNA Linux (Linux) Fixed in 6.6.163, 6.12.117, 6.18.61, 7.3.2, 7.4-rc1
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 7 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
Timeline
- 2026-11-19 Threatist record created from CVE-2026-99541
- 2026-11-19 Alias added: GHSA-wfwm-5fwf-6gcj
- 2026-11-20 Affected versions changed · Red Hat
- 2026-11-20 CVSS score added · Red Hat
- 2026-11-22 CVSS score added · CNA
- 2026-11-23 Fix available: Linux/[email protected], Linux/Linux@89b539970af70a003a475c1ec975b16f6b4dae69 · CNA
- 2026-11-23 1 new reference · CNA
References
Other 5
- https://git.kernel.org/stable/c/89b539970af70a003a475c1ec975b16f6b4dae69
- https://git.kernel.org/stable/c/0129f7196a05a974bfb3ac4efd8380be651a51b9
- https://git.kernel.org/stable/c/93cb902b0ca04c9dc28b38776f7a03503c84b7ad
- https://git.kernel.org/stable/c/828c02c65e2b0541f0cce403e336b978f92b6dfa
- https://git.kernel.org/stable/c/783a7fc454991544bf92268d8f2413af1a7c7eb8
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-99541 · CVE Program
- CVE-2026-99541 · NVD
- FIRST EPSS
- GHSA-wfwm-5fwf-6gcj · GitHub Advisory Database · CC BY 4.0
- CVE-2026-99541 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences