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-99309

published high CVSS 3.1 · 8.8

ksmbd: fix overflow in dacloffset bounds check in build_sec_desc()

Published
16 Nov 2026, 09:59:32 UTC
Updated
23 Nov 2026, 08:01:14 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxcb69d4d6f709f87c94afa28ae64c501576692171 to < e32f5d4b1817ba3e9b2b09e4ad2ae6f100f94820 · 8f0541186e9ad1b62accc9519cc2b7a7240272a7 to < 5ac0483e543a8ecf18f5c571cab4cd7d215e1af5 · 8f0541186e9ad1b62accc9519cc2b7a7240272a7 to < 82048635ea5fbc625ed810dfb4dc85a7e47a594b · 8f0541186e9ad1b62accc9519cc2b7a7240272a7 to < bd92e03122f33c159b552867a4abc098d405dfed · 8f0541186e9ad1b62accc9519cc2b7a7240272a7 to < 4f238380ea3803afdc815c615521c6f6b13989a3 · 8f0541186e9ad1b62accc9519cc2b7a7240272a7 to < d1e92aa651caa352261fb3b78460b7722357835c · 8f0541186e9ad1b62accc9519cc2b7a7240272a7 to < eb96e2a0e817807c48dc8387ca6a5249fdeae3a0 · 6e8f4abf584253cbaa596ea4ad13110cf61cd4c9 · 8e33102309bd6839b2e2e158f93a7b378cb4655d · 5.15.62 to < 5.15.226 · 5.18.18 to < 5.19 · 5.19.2 to < 5.20 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.0 (affected) · 0 to < 6.0 (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: ksmbd: fix overflow in dacloffset bounds check in build_sec_desc() When the large dacl_offset is provided, dacl_offset + sizeof(struct smb_acl) overflows on 32-bit builds and the check is passed, Which makes le16_to_cpu(ppdacl_ptr->size) read out-of-bounds. This only happens for dacl_offset in range [0xFFFFFFF8, 0xFFFFFFFF]. So the oob read is max 8 bytes preceding the allocated ppntsd. unsigned int dacl_offset = le32_to_cpu(ppntsd->dacloffset); int ppdacl_size, ntacl_size = ppntsd_size - dacl_offset; if (!dacl_offset || (dacl_offset + sizeof(struct smb_acl) > ppntsd_size)) goto out; Commit beff0bc9d69b ("ksmbd: fix overflow in dacloffset bounds check") fixes similar checks in other functions. But leaves this one out, because it is only valid for 32-bit builds. Reproduced on 32-bit ARM with KASAN, by a client sending SMB2 SET_INFO(SEC) with dacloffset=0xfffffff8, then QUERY_INFO(SEC) on the same file: BUG: KASAN: slab-out-of-bounds in build_sec_desc (fs/smb/server/smbacl.c:1105) Read of size 2 at addr c2a273fa by task kworker/1:1/35 CPU: 1 UID: 0 PID: 35 Comm: kworker/1:1 Not tainted 7.3.0-rc2+ #5 Workqueue: ksmbd-io handle_ksmbd_work Call trace: kasan_check_range from build_sec_desc (fs/smb/server/smbacl.c:1105) build_sec_desc from smb2_query_info (fs/smb/server/smb2pdu.c:7676) smb2_query_info from handle_ksmbd_work (fs/smb/server/server.c:160) handle_ksmbd_work from process_one_work (kernel/workqueue.c:3401) process_one_work from worker_thread (kernel/workqueue.c:3473) worker_thread from kthread (kernel/kthread.c:436) Add overflow check.

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
8.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - The malformed dacloffset arrives in the SMB2 SET_INFO security buffer (InfoType SMB2_O_INFO_SECURITY), which set_info_sec() stores through ksmbd_vfs_set_sd_xattr() as security.NTACL; smb2_query_info() -> smb2_get_info_sec() reloads it and calls build_sec_desc(). ksmbd_conn_handler_loop() reads that PDU from the TCP/445 socket. AC:L - On a 32-bit build with the share acl-xattr flag, the attacker creates a file and sends SET_INFO with dacloffset 0xFFFFFFFE (DACL_PRESENT clear so parse_sec_desc() accepts it) then QUERY_INFO. The unsigned add in build_sec_desc() wraps, revision and type supply the DACL size and num_aces, and the copy is deterministic. PR:L - smb2_check_user_session() requires a valid SMB2 session before SET_INFO or QUERY_INFO. smb2_set_info() requires a writable tree connection, smb2_set_info_sec() requires FILE_WRITE_DAC_LE or FILE_WRITE_OWNER_LE, and smb2_get_info_sec() requires FILE_READ_CONTROL_LE for DACL_SECINFO; creating the file with GENERIC_ALL_FLAGS grants those to a normal share user. UI:N - The same authenticated client creates the file, writes the security descriptor with SMB2 SET_INFO, and triggers the overflow with SMB2 QUERY_INFO. No other user has to mount an image or open the file. S:U - The overflow is in the ksmbd worker's kernel heap (the kvzalloc buffer in smb2_get_info_sec()). It stays inside the host kernel that serves SMB and does not cross a VM or IOMMU boundary. C:H - set_ntacl_dacl() memcpy's the attacker-chosen ACE, sized by the u16 at NTSD offset 8, into the scratch buffer from smb_acl_sec_desc_scratch_len(). A DACL-only query of a file with no POSIX ACL allocates 408 bytes, so a larger ACE overwrites adjacent heap and can be turned into a kernel read. I:H - memcpy((char *)pndace + size, ntace, nt_ace_size) in set_ntacl_dacl() writes those attacker-controlled ACE bytes past the kvzalloc region. smb_acl_sec_desc_scratch_len() does not reserve the NT DACL when dacloffset is not less than ppntsd_size, but the wrapped check in build_sec_desc() still accepts 0xFFFFFFFE. A:H - The memcpy runs in handle_ksmbd_work before smb2_get_info_sec() checks secdesclen against scratch_len, so the ksmbd-io worker corrupts kernel heap and can oops. dacloffset 0xfffffff8 also makes le16_to_cpu(ppdacl_ptr->size) read as many as 6 bytes before the NTSD allocation.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux cb69d4d6f709f87c94afa28ae64c501576692171 to < e32f5d4b1817ba3e9b2b09e4ad2ae6f100f94820 (affected · git)8f0541186e9ad1b62accc9519cc2b7a7240272a7 to < 5ac0483e543a8ecf18f5c571cab4cd7d215e1af5 (affected · git)8f0541186e9ad1b62accc9519cc2b7a7240272a7 to < 82048635ea5fbc625ed810dfb4dc85a7e47a594b (affected · git)8f0541186e9ad1b62accc9519cc2b7a7240272a7 to < bd92e03122f33c159b552867a4abc098d405dfed (affected · git)8f0541186e9ad1b62accc9519cc2b7a7240272a7 to < 4f238380ea3803afdc815c615521c6f6b13989a3 (affected · git)8f0541186e9ad1b62accc9519cc2b7a7240272a7 to < d1e92aa651caa352261fb3b78460b7722357835c (affected · git)8f0541186e9ad1b62accc9519cc2b7a7240272a7 to < eb96e2a0e817807c48dc8387ca6a5249fdeae3a0 (affected · git)6e8f4abf584253cbaa596ea4ad13110cf61cd4c9 (affected · git)8e33102309bd6839b2e2e158f93a7b378cb4655d (affected · git)5.15.62 to < 5.15.226 (affected · semver)5.18.18 to < 5.19 (affected · semver)5.19.2 to < 5.20 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.0 (affected)0 to < 6.0 (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

ksmbd: fix overflow in dacloffset bounds check in build_sec_desc()

Provenance

Schema
5.2
Searchable
yes
Content hash
cd35102673a00a642e0124de3e4b33cefc491316b329f3a2cab8365eaa8c609f
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