{"id":"CVE-2026-31709","published":"2026-05-01T13:56:06Z","modified":"2026-10-19T19:06:06Z","title":"smb: client: validate the whole DACL before rewriting it in cifsacl","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: validate the whole DACL before rewriting it in cifsacl\n\nbuild_sec_desc() and id_mode_to_cifs_acl() derive a DACL pointer from a\nserver-supplied dacloffset and then use the incoming ACL to rebuild the\nchmod/chown security descriptor.\n\nThe original fix only checked that the struct smb_acl header fits before\nreading dacl_ptr->size or dacl_ptr->num_aces.  That avoids the immediate\nheader-field OOB read, but the rewrite helpers still walk ACEs based on\npdacl->num_aces with no structural validation of the incoming DACL body.\n\nA malicious server can return a truncated DACL that still contains a\nheader, claims one or more ACEs, and then drive\nreplace_sids_and_copy_aces() or set_chmod_dacl() past the validated\nextent while they compare or copy attacker-controlled ACEs.\n\nFactor the DACL structural checks into validate_dacl(), extend them to\nvalidate each ACE against the DACL bounds, and use the shared validator\nbefore the chmod/chown rebuild paths.  parse_dacl() reuses the same\nvalidator so the read-side parser and write-side rewrite paths agree on\nwhat constitutes a well-formed incoming DACL.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00345,"percentile":0.2875,"provenance":"source"},"cwes":[{"id":"CWE-1288","name":"Improper Validation of Consistency within Input"},{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://git.kernel.org/stable/c/b8603d9ae6c9087662b098619996bc4a8064319d","tags":[]},{"url":"https://git.kernel.org/stable/c/c2abdebf72000a64603ced84d36ccbd164f11391","tags":[]},{"url":"https://git.kernel.org/stable/c/8e47d297e7cf9a6029a0d38e7b22faba7d7aaf12","tags":[]},{"url":"https://git.kernel.org/stable/c/d92f3f0b22414e7515696a02224d0af55e3004a3","tags":[]},{"url":"https://git.kernel.org/stable/c/ff0ca46b13b9ef6edbcd238a3b6caacfef8ba0e5","tags":[]},{"url":"https://git.kernel.org/stable/c/b78db9bddc84136f6a0bb49e8883cf200dfb87a8","tags":[]},{"url":"https://git.kernel.org/stable/c/0a8cf165566ba55a39fd0f4de172119dd646d39a","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-31709","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2464476","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31709.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24343","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:23329","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22940","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:23237","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:23224","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21556","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21706","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21745","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22900","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":5.75},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= bc3e9dd9d104ca1b75644eab87b38ce8a924aef4, < b8603d9ae6c9087662b098619996bc4a8064319d",">= bc3e9dd9d104ca1b75644eab87b38ce8a924aef4, < c2abdebf72000a64603ced84d36ccbd164f11391",">= bc3e9dd9d104ca1b75644eab87b38ce8a924aef4, < 8e47d297e7cf9a6029a0d38e7b22faba7d7aaf12",">= bc3e9dd9d104ca1b75644eab87b38ce8a924aef4, < d92f3f0b22414e7515696a02224d0af55e3004a3",">= bc3e9dd9d104ca1b75644eab87b38ce8a924aef4, < ff0ca46b13b9ef6edbcd238a3b6caacfef8ba0e5",">= bc3e9dd9d104ca1b75644eab87b38ce8a924aef4, < b78db9bddc84136f6a0bb49e8883cf200dfb87a8",">= bc3e9dd9d104ca1b75644eab87b38ce8a924aef4, < 0a8cf165566ba55a39fd0f4de172119dd646d39a"]},{"vendor":"Linux","product":"Linux","versions":["5.12"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T15:12:47.844968Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-26518","exploited":false,"provenance":"source"}}