Read the docs

Overflow in ksmbd DACL offset bounds check in Linux kernel

Priority LOW 22Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from CNA.

Summary

The ksmbd SMB server in the Linux kernel has an overflow in the dacloffset bounds check in build_sec_desc(). Affected are Linux kernel versions from 5.15.62 before 5.16, from 5.18.18 before 5.19, from 5.19.2 before 5.20, and from 6.0. On 32-bit builds, a large dacl_offset value makes the check overflow, so the kernel reads up to 8 bytes before the allocated buffer. A remote client that can send SMB2 requests to the server can trigger it.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

Description from the CNA

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.

Why it matters now

EPSS 0.00209 11th percentileScored 2026-11-16
Fix Fixed Linux (Linux): 5.16, 5.19, 5.20 +4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
LinuxLinux5.15.62 to before 5.16; 5.18.18 to before 5.19; 5.19.2 to before 5.205.16, 5.19, 5.20Patch availableCNA
LinuxLinux6.0 and later6.12.117, 6.18.61, 7.3.2, 7.4-rc1Patch availableCNA
  • Linux VendorLinux Affected 5.15.62 to before 5.16; 5.18.18 to before 5.19; 5.19.2 to before 5.20 Fixed in 5.16, 5.19, 5.20 Patch available CNA
  • Linux VendorLinux Affected 6.0 and later Fixed in 6.12.117, 6.18.61, 7.3.2, 7.4-rc1 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*——Linux
  • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions — — ·Linux

Remediation

Fixed versions of the Linux kernel are 5.16, 5.19, 5.20, 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

  • Fix · CNA Linux (Linux) Fixed in 5.16, 5.19, 5.20
  • Fix · CNA Linux (Linux) Fixed in 6.12.117, 6.18.61, 7.3.2, 7.4-rc1

Timeline

  1. 2026-11-16 Threatist record created from CVE-2026-99309
  2. 2026-11-16 Alias added: GHSA-772j-v3x2-5prg

References

  • 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
See all 21768 →

Sources