Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99389

published high CVSS 3.1 · 7.5

smb: server: size directory name conversion buffer correctly

Published
19 Nov 2026, 14:23:28 UTC
Updated
23 Nov 2026, 08:02:17 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxe2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 534f1360fa87a1a72a5f25541103c66b8d42f73c · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 9b9d681fd3a78932331ab1246503f102d489cd63 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 84e2e9e1167ea4a6ea68b90eb190bd0350e7be74 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < e736ee3660eac5922729a9b3c55cecd74611663c · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 93d1fbe38f0c1f230fdd24410353b1fd9e5883d3 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < c8a4c381fd68895bbb077df9b5322c8987b31cf5 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < f1f37834eaba5904103af1f18afe3510c7e9dc71 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (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 / vendorReleasePackage / productPublisher statusFixed buildSource
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: smb: server: size directory name conversion buffer correctly A 2048-byte ASCII directory name needs 4098 bytes when converted to UTF-16, including the terminator. ksmbd_convert_dir_info_name() caps its allocation at PATH_MAX and writes past the end of that buffer. Allocate space for one UTF-16 code unit per input byte plus the terminator. Use kmalloc_array() to check the size calculation.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

2

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.5 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - ksmbd_convert_dir_info_name() is reached from smb2_query_dir() through __query_dir() and smb2_populate_readdir_entry(). The bytes it converts are the directory entry the client previously sent as the SMB2 CREATE Name, via smb2_get_name() and smb2_creat()/ksmbd_vfs_create(), not a pre-existing on-disk structure. AC:H - The kmalloc is min(4*name_len, PATH_MAX), so smb_strtoUTF16() writes past it only when name_len>=2048 (2*name_len+2>4096). ext4_lookup() returns -ENAMETOOLONG above EXT4_NAME_LEN (255). The attacker cannot switch the share to a FUSE mount with fc->name_max set to FUSE_NAME_MAX. PR:L - smb2_check_user_session() and smb2_get_ksmbd_tcon() run before smb2_query_dir(), and planting the component requires smb2_creat() with write access on the share. That is an authenticated share user, not a pre-authentication packet and not CAP_SYS_ADMIN. UI:N - The same authenticated client sends the SMB2 CREATE that stores the long component and the SMB2 QUERY_DIRECTORY that converts it. No other user has to mount media or open a file. S:U - The out-of-bounds store is in the ksmbd worker's kernel heap and yields host kernel privilege. It does not cross a guest-to-host or IOMMU boundary. C:H - With a PATH_MAX-1 component, smb_strtoUTF16() writes 2*name_len+2 bytes (8192) into the 4096-byte buffer in ksmbd_convert_dir_info_name(). Corrupting adjacent slab objects is enough to build a kernel memory disclosure. I:H - The bytes written past that buffer are the UTF-16 form of the attacker-chosen SMB2 CREATE name, and the client picks the length. That heap out-of-bounds write can overwrite neighboring objects and control data. A:H - A 2048-byte ASCII name writes the terminating UTF-16 NUL two bytes past the PATH_MAX allocation and oopses the ksmbd thread. A longer accepted name smashes a full neighboring page.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 534f1360fa87a1a72a5f25541103c66b8d42f73c (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 9b9d681fd3a78932331ab1246503f102d489cd63 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 84e2e9e1167ea4a6ea68b90eb190bd0350e7be74 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < e736ee3660eac5922729a9b3c55cecd74611663c (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 93d1fbe38f0c1f230fdd24410353b1fd9e5883d3 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < c8a4c381fd68895bbb077df9b5322c8987b31cf5 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < f1f37834eaba5904103af1f18afe3510c7e9dc71 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (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

0

No weakness assertions.

References

7

Provider assertions

1

Linux · cna

smb: server: size directory name conversion buffer correctly

Provenance

Schema
5.2
Searchable
yes
Content hash
1c07578677f81b392377a52b00fba64078360218df41ae95062cb540743de6e9
Ingested
23 Nov 2026, 14:35:29 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected