8.3
HIGH CVSS 3.1
CVE-2026-31712
ksmbd: require minimum ACE size in smb_check_perm_dacl()
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.

INFO

Published Date :

May 1, 2026, 2:16 p.m.

Last Modified :

Nov. 11, 2026, 9:10 p.m.

Remotely Exploit :

Yes !

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-31712 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
Apply Linux kernel updates to fix out-of-bounds read vulnerabilities.
  • Update the Linux kernel to the latest stable version.
  • Apply security patches for the ksmbd component.
  • Verify the integrity of file Access Control Lists (ACLs).
  • Reboot the system after applying updates.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-31712 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-31712 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-31712 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-31712 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Nov. 11, 2026

    Action Type Old Value New Value
    Added Translation Title: Linux Kernel, Description: En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: requerir tamaño mínimo de ACE en smb_check_perm_dacl() Ambos bucles de recorrido de ACE en smb_check_perm_dacl() solo protegen contra un búfer restante de tamaño insuficiente, no contra un ACE cuyo ’ace -> size’ declarado es más pequeño que la estructura que afirma describir: if (offsetof(struct smb_ace, access_req) > aces_size) break; ace_size = le16_to_cpu(ace -> size); if (ace_size > aces_size) break; La primera comprobación solo requiere que el encabezado ACE de 4 bytes esté dentro de los límites; no requiere que access_req (4 bytes en el desplazamiento 4) sea legible. Un atacante que ha establecido un DACL manipulado en un archivo de su propiedad puede declarar ace -> size == 4 con aces_size == 4, pasar ambas comprobaciones y luego granted |= le32_to_cpu(ace -> access_req); /* upper loop */ compare_sids(&sid, &ace -> sid); /* lower loop */ lee access_req en el desplazamiento 4 (fuera de límites por hasta 4 bytes) y ace -> sid en el desplazamiento 8 (fuera de límites por hasta CIFS_SID_BASE_SIZE + SID_MAX_SUB_AUTHORITIES * 4 bytes). Ajustar ambos bucles para requerir ace_size >= offsetof(struct smb_ace, sid) + CIFS_SID_BASE_SIZE que es el diseño de ACE en la red más pequeño y válido (encabezado de 4 bytes + access_req de 4 bytes + base sid de 8 bytes con cero sub-autoridades). También rechazar ACEs cuyo sid.num_subauth excede SID_MAX_SUB_AUTHORITIES antes de permitir que compare_sids() desreferencie las entradas de sub_auth[]. parse_sec_desc() ya aplica una comprobación equivalente (líneas 441-448); smb_check_perm_dacl() simplemente desarrolló una validación más débil con el tiempo. Alcanzabilidad: cliente SMB autenticado con permiso para establecer una ACL en un archivo. En un CREATE posterior contra ese archivo, el kernel recorre el DACL almacenado a través de smb_check_perm_dacl() y desencadena la lectura fuera de límites (OOB). No es pre-autenticación, y la lectura fuera de límites (OOB) no se refleja al atacante, pero los informes de KASAN y la corrupción del estado del kernel son posibles.
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Oct. 15, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/151b1799861fde38087c08f613abc2843ef597b0
    Added Reference https://git.kernel.org/stable/c/282cbbb476b9f35793452bc461934af4c7eca169
    Added Reference https://git.kernel.org/stable/c/325d4ac11f526cb8964cff14548ccf02d8c756d8
    Added Reference https://git.kernel.org/stable/c/90089584b2e25c4510b7b987387b4405f0673ece
    Added Reference https://git.kernel.org/stable/c/95e5aa3c3261da8c95b27d7aecf8ee39b9f86a4c
    Added Reference https://git.kernel.org/stable/c/d07b26f39246a82399661936dd0c853983cfade7
    Added Reference https://git.kernel.org/stable/c/f20adc4ef7428bc485ee83fd1a592252fb87718b
    Removed Reference https://git.kernel.org/stable/c/151b1799861fde38087c08f613abc2843ef597b0
    Removed Reference https://git.kernel.org/stable/c/282cbbb476b9f35793452bc461934af4c7eca169
    Removed Reference https://git.kernel.org/stable/c/325d4ac11f526cb8964cff14548ccf02d8c756d8
    Removed Reference https://git.kernel.org/stable/c/90089584b2e25c4510b7b987387b4405f0673ece
    Removed Reference https://git.kernel.org/stable/c/95e5aa3c3261da8c95b27d7aecf8ee39b9f86a4c
    Removed Reference https://git.kernel.org/stable/c/d07b26f39246a82399661936dd0c853983cfade7
    Removed Reference https://git.kernel.org/stable/c/f20adc4ef7428bc485ee83fd1a592252fb87718b
    Removed Reference Type https://git.kernel.org/stable/c/151b1799861fde38087c08f613abc2843ef597b0 Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/90089584b2e25c4510b7b987387b4405f0673ece Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/95e5aa3c3261da8c95b27d7aecf8ee39b9f86a4c Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/d07b26f39246a82399661936dd0c853983cfade7 Types: Patch
  • CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e

    Oct. 15, 2026

    Action Type Old Value New Value
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/31xxx/CVE-2026-31712.json">CVE-2026-31712</a>
    Added Reference https://cert-portal.siemens.com/productcert/html/ssa-784472.html
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 19, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/282cbbb476b9f35793452bc461934af4c7eca169
    Added Reference https://git.kernel.org/stable/c/f20adc4ef7428bc485ee83fd1a592252fb87718b
    Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '325d4ac11f526cb8964cff14548ccf02d8c756d8', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '95e5aa3c3261da8c95b27d7aecf8ee39b9f86a4c', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '90089584b2e25c4510b7b987387b4405f0673ece', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '151b1799861fde38087c08f613abc2843ef597b0', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': 'd07b26f39246a82399661936dd0c853983cfade7', 'versionType': 'git'}], 'programFiles': ['fs/smb/server/smbacl.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.15'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.15', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.140', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.84', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.25', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.2', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/smb/server/smbacl.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '282cbbb476b9f35793452bc461934af4c7eca169', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': 'f20adc4ef7428bc485ee83fd1a592252fb87718b', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '325d4ac11f526cb8964cff14548ccf02d8c756d8', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '95e5aa3c3261da8c95b27d7aecf8ee39b9f86a4c', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '90089584b2e25c4510b7b987387b4405f0673ece', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '151b1799861fde38087c08f613abc2843ef597b0', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': 'd07b26f39246a82399661936dd0c853983cfade7', 'versionType': 'git'}], 'programFiles': ['fs/smb/server/smbacl.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.15'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.15', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.15.210', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.176', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.140', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.84', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.25', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.2', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/smb/server/smbacl.c'], 'defaultStatus': 'affected'}]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '325d4ac11f526cb8964cff14548ccf02d8c756d8', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '95e5aa3c3261da8c95b27d7aecf8ee39b9f86a4c', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '90089584b2e25c4510b7b987387b4405f0673ece', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '151b1799861fde38087c08f613abc2843ef597b0', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': 'd07b26f39246a82399661936dd0c853983cfade7', 'versionType': 'git'}], 'programFiles': ['fs/smb/server/smbacl.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.15'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.15', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.140', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.84', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.25', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.2', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/smb/server/smbacl.c'], 'defaultStatus': 'affected'}]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 17, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/325d4ac11f526cb8964cff14548ccf02d8c756d8
  • Initial Analysis by [email protected]

    May. 06, 2026

    Action Type Old Value New Value
    Added CWE CWE-787
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.25 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 7.0.2 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.15 up to (excluding) 6.12.84
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/151b1799861fde38087c08f613abc2843ef597b0 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/90089584b2e25c4510b7b987387b4405f0673ece Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/95e5aa3c3261da8c95b27d7aecf8ee39b9f86a4c Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/d07b26f39246a82399661936dd0c853983cfade7 Types: Patch
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 03, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 01, 2026

    Action Type Old Value New Value
    Added 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.
    Added Reference https://git.kernel.org/stable/c/151b1799861fde38087c08f613abc2843ef597b0
    Added Reference https://git.kernel.org/stable/c/90089584b2e25c4510b7b987387b4405f0673ece
    Added Reference https://git.kernel.org/stable/c/95e5aa3c3261da8c95b27d7aecf8ee39b9f86a4c
    Added Reference https://git.kernel.org/stable/c/d07b26f39246a82399661936dd0c853983cfade7
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.