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

published high CVSS 3.1 · 8.8

ksmbd: validate num_aces and harden ACE walk in smb_inherit_dacl()

Published
01 May 2026, 13:56:04 UTC
Updated
30 Oct 2026, 12:24:34 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxe2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 4d37830c2c834987de329d58fb9a319067400361 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < ad7d18df7423c522ed9dc7e33bd5d54c66b1bc37 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 063a7409b0de46d7c770b65bb0338e6fdb3b1f0a · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 3e5360b422dd741cb315654a191fa73869a37414 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 59c32abaaec9cdd6164811c7e864e72f7554b82d · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 3e4e2ea2a781018ed5d75f969e3e5606beb66e48 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.160 through 6.6.* (unaffected · semver) · 6.12.84 through 6.12.* (unaffected · semver) · 6.18.25 through 6.18.* (unaffected · semver) · 7.0.2 through 7.0.* (unaffected · semver) · 7.1 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 Advisory build 6.1.192-1 DLA-4906-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develaarch64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
Ubuntu bionic linux Advisory build 4.15.0-260.272 LSN-0122-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develppc64le Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed kernel-devels390x Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develx86_64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosaarch64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosppc64le Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macross390x Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosx86_64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceaarch64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceppc64le Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sources390x Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourcex86_64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillaaarch64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillappc64le Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillas390x Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillax86_64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
Ubuntu bionic linux-aws Advisory build 4.15.0-1197.210 LSN-0122-1
Ubuntu bionic linux-azure-4.15 Advisory build 4.15.0-1207.222 LSN-0122-1
Ubuntu bionic linux-gcp-4.15 Advisory build 4.15.0-1190.207 LSN-0122-1
Ubuntu bionic linux-hwe-5.4 Advisory build 5.4.0-245.265~18.04.1 LSN-0122-1
Ubuntu bionic linux-oracle Advisory build 4.15.0-1160.171 LSN-0122-1
Ubuntu focal linux Advisory build 5.4.0-245.265 LSN-0122-1
Ubuntu jammy linux Advisory build 5.15.0-202.212 LSN-0122-1
Ubuntu jammy linux-aws Advisory build 5.15.0-1119.126 LSN-0122-1
Ubuntu jammy linux-aws-6.8 Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-aws-6.8 Advisory build 6.8.0-1065.68~22.04.1 LSN-0122-1
Ubuntu jammy linux-aws-6.8-cloud-tools-6.8.0-1061 Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-aws-6.8-headers-6.8.0-1061 Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-aws-6.8-tools-6.8.0-1061 Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-azure Advisory build 5.15.0-1125.134 LSN-0122-1
Ubuntu jammy linux-azure-6.8 Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-azure-6.8-cloud-tools-6.8.0-1063 Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-azure-6.8-headers-6.8.0-1063 Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-azure-6.8-tools-6.8.0-1063 Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-azure-fde-6.8 Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-azure-fde-6.8-cloud-tools-6.8.0-1062 Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-azure-fde-6.8-headers-6.8.0-1062 Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-azure-fde-6.8-tools-6.8.0-1062 Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-buildinfo-6.8.0-1058-oracle Advisory build 6.8.0-1058.61~22.04.1 USN-8595-1
Ubuntu jammy linux-buildinfo-6.8.0-1058-oracle-64k Advisory build 6.8.0-1058.61~22.04.1 USN-8595-1
Ubuntu jammy linux-buildinfo-6.8.0-1059-nvidia Advisory build 6.8.0-1059.62~22.04.1 USN-8596-1
Ubuntu jammy linux-buildinfo-6.8.0-1059-nvidia-64k Advisory build 6.8.0-1059.62~22.04.1 USN-8596-1
Ubuntu jammy linux-buildinfo-6.8.0-1061-aws Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-buildinfo-6.8.0-1061-aws-64k Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-buildinfo-6.8.0-1061-ibm Advisory build 6.8.0-1061.62~22.04.1 USN-8574-3
Ubuntu jammy linux-buildinfo-6.8.0-1062-azure-fde Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-buildinfo-6.8.0-1063-azure Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-buildinfo-6.8.0-1064-gcp Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-buildinfo-6.8.0-1064-gcp-64k Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-buildinfo-6.8.0-136-generic Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-buildinfo-6.8.0-136-generic-64k Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-buildinfo-6.8.0-136-lowlatency Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-buildinfo-6.8.0-136-lowlatency-64k Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-buildinfo-6.8.1-1056-realtime Advisory build 6.8.1-1056.57~22.04.2 USN-8567-1
Ubuntu jammy linux-cloud-tools-6.8.0-1061-aws Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-cloud-tools-6.8.0-1061-aws-64k Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-cloud-tools-6.8.0-1062-azure-fde Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-cloud-tools-6.8.0-1063-azure Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-cloud-tools-6.8.0-136-generic Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-cloud-tools-6.8.0-136-lowlatency Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-cloud-tools-6.8.1-1056-realtime Advisory build 6.8.1-1056.57~22.04.2 USN-8567-1
Ubuntu jammy linux-gcp Advisory build 5.15.0-1120.130 LSN-0122-1
Ubuntu jammy linux-gcp-6.8 Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-gcp-6.8 Advisory build 6.8.0-1069.77~22.04.1 LSN-0122-1
Ubuntu jammy linux-gcp-6.8-headers-6.8.0-1064 Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-gcp-6.8-tools-6.8.0-1064 Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-gke Advisory build 5.15.0-1115.121 LSN-0122-1
Ubuntu jammy linux-headers-6.8.0-1058-oracle Advisory build 6.8.0-1058.61~22.04.1 USN-8595-1
Ubuntu jammy linux-headers-6.8.0-1058-oracle-64k Advisory build 6.8.0-1058.61~22.04.1 USN-8595-1
Ubuntu jammy linux-headers-6.8.0-1059-nvidia Advisory build 6.8.0-1059.62~22.04.1 USN-8596-1
Ubuntu jammy linux-headers-6.8.0-1059-nvidia-64k Advisory build 6.8.0-1059.62~22.04.1 USN-8596-1
Ubuntu jammy linux-headers-6.8.0-1061-aws Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-headers-6.8.0-1061-aws-64k Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-headers-6.8.0-1061-ibm Advisory build 6.8.0-1061.62~22.04.1 USN-8574-3
Ubuntu jammy linux-headers-6.8.0-1062-azure-fde Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-headers-6.8.0-1063-azure Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-headers-6.8.0-1064-gcp Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-headers-6.8.0-1064-gcp-64k Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-headers-6.8.0-136-generic Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-headers-6.8.0-136-generic-64k Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-headers-6.8.0-136-lowlatency Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-headers-6.8.0-136-lowlatency-64k Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-headers-6.8.1-1056-realtime Advisory build 6.8.1-1056.57~22.04.2 USN-8567-1
Ubuntu jammy linux-hwe-6.8 Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-hwe-6.8 Advisory build 6.8.0-149.149~22.04.1 LSN-0122-1
Ubuntu jammy linux-hwe-6.8-cloud-tools-6.8.0-136 Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-hwe-6.8-headers-6.8.0-136 Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-hwe-6.8-tools-6.8.0-136 Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-ibm Advisory build 5.15.0-1113.117 LSN-0122-1
Ubuntu jammy linux-ibm-6.8 Advisory build 6.8.0-1061.62~22.04.1 USN-8574-3
Ubuntu jammy linux-ibm-6.8 Advisory build 6.8.0-1066.67~22.04.1 LSN-0122-1
Ubuntu jammy linux-ibm-6.8-headers-6.8.0-1061 Advisory build 6.8.0-1061.62~22.04.1 USN-8574-3
Ubuntu jammy linux-ibm-6.8-tools-6.8.0-1061 Advisory build 6.8.0-1061.62~22.04.1 USN-8574-3
Ubuntu jammy linux-image-6.8.0-136-generic Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-image-unsigned-6.8.0-1058-oracle Advisory build 6.8.0-1058.61~22.04.1 USN-8595-1
Ubuntu jammy linux-image-unsigned-6.8.0-1058-oracle-64k Advisory build 6.8.0-1058.61~22.04.1 USN-8595-1
Ubuntu jammy linux-image-unsigned-6.8.0-1059-nvidia Advisory build 6.8.0-1059.62~22.04.1 USN-8596-1
Ubuntu jammy linux-image-unsigned-6.8.0-1059-nvidia-64k Advisory build 6.8.0-1059.62~22.04.1 USN-8596-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate num_aces and harden ACE walk in smb_inherit_dacl() smb_inherit_dacl() trusts the on-disk num_aces value from the parent directory's DACL xattr and uses it to size a heap allocation: aces_base = kmalloc(sizeof(struct smb_ace) * num_aces * 2, ...); num_aces is a u16 read from le16_to_cpu(parent_pdacl->num_aces) without checking that it is consistent with the declared pdacl_size. An authenticated client whose parent directory's security.NTACL is tampered (e.g. via offline xattr corruption or a concurrent path that bypasses parse_dacl()) can present num_aces = 65535 with minimal actual ACE data. This causes a ~8 MB allocation (not kzalloc, so uninitialized) that the subsequent loop only partially populates, and may also overflow the three-way size_t multiply on 32-bit kernels. Additionally, the ACE walk loop uses the weaker offsetof(struct smb_ace, access_req) minimum size check rather than the minimum valid on-wire ACE size, and does not reject ACEs whose declared size is below the minimum. Reproduced on UML + KASAN + LOCKDEP against the real ksmbd code path. A legitimate mount.cifs client creates a parent directory over SMB (ksmbd writes a valid security.NTACL xattr), then the NTACL blob on the backing filesystem is rewritten to set num_aces = 0xFFFF while keeping the posix_acl_hash bytes intact so ksmbd_vfs_get_sd_xattr()'s hash check still passes. A subsequent SMB2 CREATE of a child under that parent drives smb2_open() into smb_inherit_dacl() (share has "vfs objects = acl_xattr" set), which fails the page allocator: WARNING: mm/page_alloc.c:5226 at __alloc_frozen_pages_noprof+0x46c/0x9c0 Workqueue: ksmbd-io handle_ksmbd_work __alloc_frozen_pages_noprof+0x46c/0x9c0 ___kmalloc_large_node+0x68/0x130 __kmalloc_large_node_noprof+0x24/0x70 __kmalloc_noprof+0x4c9/0x690 smb_inherit_dacl+0x394/0x2430 smb2_open+0x595d/0xabe0 handle_ksmbd_work+0x3d3/0x1140 With the patch applied the added guard rejects the tampered value with -EINVAL before any large allocation runs, smb2_open() falls back to smb2_create_sd_buffer(), and the child is created with a default SD. No warning, no splat. Fix by: 1. Validating num_aces against pdacl_size using the same formula applied in parse_dacl(). 2. Replacing the raw kmalloc(sizeof * num_aces * 2) with kmalloc_array(num_aces * 2, sizeof(...)) for overflow-safe allocation. 3. Tightening the per-ACE loop guard to require the minimum valid ACE size (offsetof(smb_ace, sid) + CIFS_SID_BASE_SIZE) and rejecting under-sized ACEs, matching the hardening in smb_check_perm_dacl() and parse_dacl(). v1 -> v2: - Replace the synthetic test-module splat in the changelog with a real-path UML + KASAN reproduction driven through mount.cifs and SMB2 CREATE; Namjae flagged the kcifs3_test_inherit_dacl_old name in v1 since it does not exist in ksmbd. - Drop the commit-hash citation from the code comment per Namjae's review; keep the parse_dacl() pointer.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

33

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 - ksmbd processes SMB2 CREATE requests over TCP/445, and the vulnerable `smb_inherit_dacl()` path is reached remotely through the in-kernel SMB server. AC:L - An attacker with access to a writable ACL-xattr share can deterministically store or arrange a malformed parent DACL and then create a child object to trigger inheritance; no race or uncontrollable condition is required. PR:L - The SMB2 CREATE path requires a valid SMB session and tree connection, and the practical attack requires share write/ACL-setting privileges, but not kernel, root, or administrative privileges. UI:N - After the attacker has SMB access, exploitation is driven entirely by attacker-sent SMB requests and does not require victim interaction. S:U - The vulnerable component and impacted resource are both within the same kernel/ksmbd security authority; this is not a VM escape or cross-boundary isolation bypass. C:H - The hardened ACE walk addresses attacker-controlled malformed DACL data that can drive out-of-bounds reads of kernel heap-backed security descriptor data; under the required high-severity tie-break rule, this is scored as high confidentiality impact. I:H - The malformed inherited ACE construction can corrupt kernel-managed ACL/security descriptor state and has plausible heap memory-corruption consequences, so the highest defensible integrity impact is high. A:H - The documented reproduction triggers a kernel allocator warning from attacker-controlled SMB activity, and such kernel warnings/oops conditions can crash or destabilize the server, especially with panic-on-warn configurations.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 4d37830c2c834987de329d58fb9a319067400361 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < ad7d18df7423c522ed9dc7e33bd5d54c66b1bc37 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 063a7409b0de46d7c770b65bb0338e6fdb3b1f0a (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 3e5360b422dd741cb315654a191fa73869a37414 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 59c32abaaec9cdd6164811c7e864e72f7554b82d (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 3e4e2ea2a781018ed5d75f969e3e5606beb66e48 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.15 (affected)0 to < 5.15 (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.160 through 6.6.* (unaffected · semver)6.12.84 through 6.12.* (unaffected · semver)6.18.25 through 6.18.* (unaffected · semver)7.0.2 through 7.0.* (unaffected · semver)7.1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

1

Linux · cna

ksmbd: validate num_aces and harden ACE walk in smb_inherit_dacl()

Provenance

Schema
5.2
Searchable
yes
Content hash
08790fdd1cca97bbf5c761f8c65307a5694e106995d10a49c8000c804fe3decc
Ingested
30 Oct 2026, 12:31:36 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