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

published high CVSS 3.1 · 8.3

ksmbd: require minimum ACE size in smb_check_perm_dacl()

Published
01 May 2026, 13:56:08 UTC
Updated
15 Oct 2026, 01:18:08 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxe2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 282cbbb476b9f35793452bc461934af4c7eca169 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < f20adc4ef7428bc485ee83fd1a592252fb87718b · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 325d4ac11f526cb8964cff14548ccf02d8c756d8 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 95e5aa3c3261da8c95b27d7aecf8ee39b9f86a4c · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 90089584b2e25c4510b7b987387b4405f0673ece · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 151b1799861fde38087c08f613abc2843ef597b0 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < d07b26f39246a82399661936dd0c853983cfade7 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.210 through 5.15.* (unaffected · semver) · 6.1.176 through 6.1.* (unaffected · semver) · 6.6.140 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
Siemens — SIMATIC S7-1500 TM MFP - GNU/Linux subsystem0 and later · Other versions: unknown Affected Not stated siemens-SADP
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.176-1 DLA-4665-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-263.275 LSN-0123-1
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Debian bullseye linux-6.1 Advisory build 6.1.176-1~deb11u1 DLA-4671-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develppc64le Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
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-1200.213 LSN-0123-1
Ubuntu bionic linux-azure-4.15 Advisory build 4.15.0-1210.225 LSN-0123-1
Ubuntu bionic linux-gcp-4.15 Advisory build 4.15.0-1193.210 LSN-0123-1
Ubuntu bionic linux-hwe-5.4 Advisory build 5.4.0-247.267~18.04.1 LSN-0123-1
Ubuntu bionic linux-oracle Advisory build 4.15.0-1162.173 LSN-0123-1
Ubuntu focal linux Advisory build 5.4.0-247.267 LSN-0123-1
Ubuntu focal linux-aws-5.15 Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-aws-5.15-cloud-tools-5.15.0-1117 Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-aws-5.15-headers-5.15.0-1117 Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-aws-5.15-tools-5.15.0-1117 Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-azure-5.15 Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-azure-5.15-cloud-tools-5.15.0-1123 Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-azure-5.15-headers-5.15.0-1123 Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-azure-5.15-tools-5.15.0-1123 Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-azure-fde-5.15 Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-azure-fde-5.15-cloud-tools-5.15.0-1122 Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-azure-fde-5.15-headers-5.15.0-1122 Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-azure-fde-5.15-tools-5.15.0-1122 Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-1070-nvidia-tegra Advisory build 5.15.0-1070.72~20.04.1 USN-8963-1
Ubuntu focal linux-buildinfo-5.15.0-1070-nvidia-tegra-rt Advisory build 5.15.0-1070.72~20.04.1 USN-8963-1
Ubuntu focal linux-buildinfo-5.15.0-1111-ibm Advisory build 5.15.0-1111.115~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-1112-intel-iotg Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-1114-oracle Advisory build 5.15.0-1114.120~20.04.1 USN-8879-1
Ubuntu focal linux-buildinfo-5.15.0-1117-aws Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-1118-gcp Advisory build 5.15.0-1118.128~20.04.1 USN-8878-1
Ubuntu focal linux-buildinfo-5.15.0-1122-azure-fde Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-1123-azure Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-195-lowlatency Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-195-lowlatency-64k Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-198-generic Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-198-generic-64k Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-198-generic-lpae Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-cloud-tools-5.15.0-1112-intel-iotg Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-cloud-tools-5.15.0-1117-aws Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-cloud-tools-5.15.0-1122-azure-fde Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-cloud-tools-5.15.0-1123-azure Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-cloud-tools-5.15.0-195-lowlatency Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-cloud-tools-5.15.0-198-generic Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-gcp-5.15 Advisory build 5.15.0-1118.128~20.04.1 USN-8878-1
Ubuntu focal linux-gcp-5.15-headers-5.15.0-1118 Advisory build 5.15.0-1118.128~20.04.1 USN-8878-1
Ubuntu focal linux-gcp-5.15-tools-5.15.0-1118 Advisory build 5.15.0-1118.128~20.04.1 USN-8878-1
Ubuntu focal linux-headers-5.15.0-1070-nvidia-tegra Advisory build 5.15.0-1070.72~20.04.1 USN-8963-1
Ubuntu focal linux-headers-5.15.0-1070-nvidia-tegra-rt Advisory build 5.15.0-1070.72~20.04.1 USN-8963-1
Ubuntu focal linux-headers-5.15.0-1111-ibm Advisory build 5.15.0-1111.115~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-1112-intel-iotg Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-1114-oracle Advisory build 5.15.0-1114.120~20.04.1 USN-8879-1
Ubuntu focal linux-headers-5.15.0-1117-aws Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-1118-gcp Advisory build 5.15.0-1118.128~20.04.1 USN-8878-1
Ubuntu focal linux-headers-5.15.0-1122-azure-fde Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-1123-azure Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-195-lowlatency Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-195-lowlatency-64k Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-198-generic Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-198-generic-64k Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-198-generic-lpae Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-hwe-5.15 Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-hwe-5.15-cloud-tools-5.15.0-198 Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-hwe-5.15-headers-5.15.0-198 Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-hwe-5.15-tools-5.15.0-198 Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-ibm-5.15 Advisory build 5.15.0-1111.115~20.04.1 USN-8875-1
Ubuntu focal linux-ibm-5.15-headers-5.15.0-1111 Advisory build 5.15.0-1111.115~20.04.1 USN-8875-1
Ubuntu focal linux-ibm-5.15-source-5.15.0 Advisory build 5.15.0-1111.115~20.04.1 USN-8875-1
Ubuntu focal linux-ibm-5.15-tools-5.15.0-1111 Advisory build 5.15.0-1111.115~20.04.1 USN-8875-1
Ubuntu focal linux-image-5.15.0-198-generic Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-image-5.15.0-198-generic-lpae Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-1070-nvidia-tegra Advisory build 5.15.0-1070.72~20.04.1 USN-8963-1
Ubuntu focal linux-image-unsigned-5.15.0-1070-nvidia-tegra-rt Advisory build 5.15.0-1070.72~20.04.1 USN-8963-1
Ubuntu focal linux-image-unsigned-5.15.0-1111-ibm Advisory build 5.15.0-1111.115~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-1112-intel-iotg Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-1114-oracle Advisory build 5.15.0-1114.120~20.04.1 USN-8879-1
Ubuntu focal linux-image-unsigned-5.15.0-1117-aws Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-1118-gcp Advisory build 5.15.0-1118.128~20.04.1 USN-8878-1
Ubuntu focal linux-image-unsigned-5.15.0-1122-azure-fde Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-1123-azure Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-195-lowlatency Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-195-lowlatency-64k Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-198-generic Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-198-generic-64k Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-intel-iotg-5.15 Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-intel-iotg-5.15-cloud-tools-5.15.0-1112 Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-intel-iotg-5.15-cloud-tools-common Advisory build 5.15.0-1112.118~20.04.1 USN-8875-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: require minimum ACE size in smb_check_perm_dacl() Both ACE-walk loops in smb_check_perm_dacl() only guard against an under-sized remaining buffer, not against an ACE whose declared `ace->size` is smaller than the struct it claims to describe: if (offsetof(struct smb_ace, access_req) > aces_size) break; ace_size = le16_to_cpu(ace->size); if (ace_size > aces_size) break; The first check only requires the 4-byte ACE header to be in bounds; it does not require access_req (4 bytes at offset 4) to be readable. An attacker who has set a crafted DACL on a file they own can declare ace->size == 4 with aces_size == 4, pass both checks, and then granted |= le32_to_cpu(ace->access_req); /* upper loop */ compare_sids(&sid, &ace->sid); /* lower loop */ reads access_req at offset 4 (OOB by up to 4 bytes) and ace->sid at offset 8 (OOB by up to CIFS_SID_BASE_SIZE + SID_MAX_SUB_AUTHORITIES * 4 bytes). Tighten both loops to require ace_size >= offsetof(struct smb_ace, sid) + CIFS_SID_BASE_SIZE which is the smallest valid on-wire ACE layout (4-byte header + 4-byte access_req + 8-byte sid base with zero sub-auths). Also reject ACEs whose sid.num_subauth exceeds SID_MAX_SUB_AUTHORITIES before letting compare_sids() dereference sub_auth[] entries. parse_sec_desc() already enforces an equivalent check (lines 441-448); smb_check_perm_dacl() simply grew weaker validation over time. Reachability: authenticated SMB client with permission to set an ACL on a file. On a subsequent CREATE against that file, the kernel walks the stored DACL via smb_check_perm_dacl() and triggers the OOB read. Not pre-auth, and the OOB read is not reflected to the attacker, but KASAN reports and kernel state corruption are possible.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

44

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 - ksmbd is an in-kernel SMB server reachable over the network via SMB2/SMB3 requests, typically TCP/445. The vulnerable DACL walk is reached from remote SMB CREATE processing after a crafted stored ACL is present. AC:L - No race or uncontrollable timing is required; an attacker can set a malformed DACL and then trigger a subsequent CREATE against that file. ACL xattr support is a reasonable ksmbd deployment configuration, not an exploit-complexity barrier. PR:L - The path is not pre-authentication: SMB2 commands require a valid authenticated session and tree connect. The attacker needs ordinary SMB credentials with permission to set an ACL on a file they control, not kernel/root privileges. UI:N - After authentication, the attacker can send the ACL-setting and CREATE requests directly. No victim user action is required. S:U - The impact remains within the kernel/ksmbd host security authority. There is no VM, IOMMU, or sandbox boundary crossing. C:H - The bug causes attacker-triggered out-of-bounds reads from kernel heap data beyond the stored security descriptor, including SID fields. Although not directly reflected, this is more than a strictly bounded few-byte read and the higher-severity rule makes High appropriate. I:L - The out-of-bounds data is consumed as permission-check state such as ACE access bits, so it can corrupt ksmbd access-control decisions for the requested object. There is no clear arbitrary kernel write or control-flow hijack primitive, so the integrity impact is limited rather than High. A:H - The malformed ACE can reliably trigger kernel out-of-bounds reads during SMB CREATE, producing KASAN reports and possible kernel oops/panic depending on configuration. A remote authenticated user can repeat the trigger for denial of service.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 282cbbb476b9f35793452bc461934af4c7eca169 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < f20adc4ef7428bc485ee83fd1a592252fb87718b (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 325d4ac11f526cb8964cff14548ccf02d8c756d8 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 95e5aa3c3261da8c95b27d7aecf8ee39b9f86a4c (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 90089584b2e25c4510b7b987387b4405f0673ece (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 151b1799861fde38087c08f613abc2843ef597b0 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < d07b26f39246a82399661936dd0c853983cfade7 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.210 through 5.15.* (unaffected · semver)6.1.176 through 6.1.* (unaffected · semver)6.6.140 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
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem 0 and later (affected · custom)Default: unknown siemens-SADP · adp

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

2

Linux · cna

ksmbd: require minimum ACE size in smb_check_perm_dacl()

siemens-SADP · adp

Provenance

Schema
5.2
Searchable
yes
Content hash
2c8dfeee403760445c37acbad3e163fc025b6f6df56231655bcd0721f0077e5a
Ingested
15 Oct 2026, 13:15:12 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