CVE-2026-99541
published high CVSS 3.1 · 8.3ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux8df4bcdb0a4232192b2445256c39b787d58ef14d to < 89b539970af70a003a475c1ec975b16f6b4dae69 · c8efcc786146a951091588e5fa7e3c754850cb3c to < 0129f7196a05a974bfb3ac4efd8380be651a51b9 · c8efcc786146a951091588e5fa7e3c754850cb3c to < 93cb902b0ca04c9dc28b38776f7a03503c84b7ad · c8efcc786146a951091588e5fa7e3c754850cb3c to < 828c02c65e2b0541f0cce403e336b978f92b6dfa · c8efcc786146a951091588e5fa7e3c754850cb3c to < 783a7fc454991544bf92268d8f2413af1a7c7eb8 · 6.6.32 to < 6.6.163 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.61 through 6.18.* (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.117-1~deb12u1 | DLA-4927-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Show 13 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.3 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
- Scenarios
- en: AV:N - The SMB2 CREATE Name and DH2C/DHnC durable-reconnect context arrive on TCP/445; ksmbd_conn_handler_loop() queues handle_ksmbd_work(), which calls smb2_open() and, for a lease reconnect, smb2_check_durable_oplock() then ksmbd_validate_name_reconnect(), whose strcmp uses that Name. AC:L - A client that can tree-connect opens the share root or a short-path file with a durable v2 lease (HANDLE_CACHING), drops its own TCP session so session_fd_check() keeps the fp, then sends CREATE/DH2C with a chosen Name; strcmp(&ab_pathname[share->path_sz+1], name) then runs deterministically. PR:L - smb2_check_user_session() accepts SMB2_CREATE only after a session reaches SMB2_SESSION_VALID, get_ksmbd_tcon() requires a tree connect, and smb2_check_durable_oplock() accepts the reconnect only when ksmbd_vfs_compare_durable_owner() matches sess->user. UI:N - The attacker alone sends the durable CREATE, closes that connection, and sends the reconnect CREATE on a new TCP session to port 445. S:U - The out-of-bounds strcmp and the fp->share_conf update in ksmbd_reopen_durable_fd() both occur in the host kernel that runs ksmbd, the same security authority as the SMB server. C:H - d_path() stores the NUL at the last byte of the kmalloc(PATH_MAX) buffer, so when strlen(ab_pathname) <= share->path_sz, strcmp(&ab_pathname[share->path_sz+1], name) reads past the object. Reconnect returns STATUS_SUCCESS only if those bytes equal the CREATE Name, an unbounded heap equality oracle. I:L - When the CREATE Name equals the path suffix at ab_pathname[share->path_sz+1], ksmbd_validate_name_reconnect() returns 0 without a share-prefix check, and ksmbd_reopen_durable_fd() points fp->share_conf at that other share, republishing only the caller's existing filp. A:H - strcmp walks from ab_pathname[share->path_sz+1] until a NUL. d_path() places that NUL at the last byte of the kmalloc(PATH_MAX) buffer, so a longer reconnect share path reads off the allocation and oopses, and the share-root case (strlen(ab_pathname)==share->path_sz) starts one byte past the object.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 8df4bcdb0a4232192b2445256c39b787d58ef14d to < 89b539970af70a003a475c1ec975b16f6b4dae69 (affected · git)c8efcc786146a951091588e5fa7e3c754850cb3c to < 0129f7196a05a974bfb3ac4efd8380be651a51b9 (affected · git)c8efcc786146a951091588e5fa7e3c754850cb3c to < 93cb902b0ca04c9dc28b38776f7a03503c84b7ad (affected · git)c8efcc786146a951091588e5fa7e3c754850cb3c to < 828c02c65e2b0541f0cce403e336b978f92b6dfa (affected · git)c8efcc786146a951091588e5fa7e3c754850cb3c to < 783a7fc454991544bf92268d8f2413af1a7c7eb8 (affected · git)6.6.32 to < 6.6.163 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 6.9 (affected)0 to < 6.9 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.61 through 6.18.* (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/0129f7196a05a974bfb3ac4efd8380be651a51b9
- https://git.kernel.org/stable/c/783a7fc454991544bf92268d8f2413af1a7c7eb8
- https://git.kernel.org/stable/c/828c02c65e2b0541f0cce403e336b978f92b6dfa
- https://git.kernel.org/stable/c/89b539970af70a003a475c1ec975b16f6b4dae69
- https://git.kernel.org/stable/c/93cb902b0ca04c9dc28b38776f7a03503c84b7ad
Provider assertions
1Linux · cna
ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d80f67c8d370ead243b66e9d157c9eddbe600f14d50c2d906082a435c734129b
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record