{"id":"CVE-2026-31709","aliases":["CVE-2026-31709"],"related":[],"kind":"vulnerability","state":"published","title":"smb: client: validate the whole DACL before rewriting it in cifsacl","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nsmb: cliente: validar todo el DACL antes de reescribirlo en cifsacl\n\nbuild_sec_desc() e id_mode_to_cifs_acl() derivan un puntero DACL de un dacloffset proporcionado por el servidor y luego usan el ACL entrante para reconstruir el descriptor de seguridad chmod/chown.\n\nLa corrección original solo verificaba que el encabezado de la estructura smb_acl encajara antes de leer dacl_ptr  ->  size o dacl_ptr  ->  num_aces. Eso evita la lectura OOB inmediata del campo de encabezado, pero los ayudantes de reescritura aún recorren los ACE basándose en pdacl  ->  num_aces sin validación estructural del cuerpo del DACL entrante.\n\nUn servidor malicioso puede devolver un DACL truncado que aún contiene un encabezado, reclama uno o más ACE, y luego impulsa replace_sids_and_copy_aces() o set_chmod_dacl() más allá del alcance validado mientras comparan o copian ACE controlados por el atacante.\n\nFactorizar las comprobaciones estructurales del DACL en validate_dacl(), extenderlas para validar cada ACE contra los límites del DACL, y usar el validador compartido antes de las rutas de reconstrucción de chmod/chown. parse_dacl() reutiliza el mismo validador para que el analizador del lado de lectura y las rutas de reescritura del lado de escritura estén de acuerdo sobre lo que constituye un DACL entrante bien formado.","source":"nvd"}],"published":"2026-05-01T13:56:06.522Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-125","CWE-1288"],"affected":[{"ranges":[{"type":"git","introduced":"bc3e9dd9d104ca1b75644eab87b38ce8a924aef4","fixed":"b8603d9ae6c9087662b098619996bc4a8064319d","status":"affected"},{"type":"git","introduced":"bc3e9dd9d104ca1b75644eab87b38ce8a924aef4","fixed":"c2abdebf72000a64603ced84d36ccbd164f11391","status":"affected"},{"type":"git","introduced":"bc3e9dd9d104ca1b75644eab87b38ce8a924aef4","fixed":"8e47d297e7cf9a6029a0d38e7b22faba7d7aaf12","status":"affected"},{"type":"git","introduced":"bc3e9dd9d104ca1b75644eab87b38ce8a924aef4","fixed":"d92f3f0b22414e7515696a02224d0af55e3004a3","status":"affected"},{"type":"git","introduced":"bc3e9dd9d104ca1b75644eab87b38ce8a924aef4","fixed":"ff0ca46b13b9ef6edbcd238a3b6caacfef8ba0e5","status":"affected"},{"type":"git","introduced":"bc3e9dd9d104ca1b75644eab87b38ce8a924aef4","fixed":"b78db9bddc84136f6a0bb49e8883cf200dfb87a8","status":"affected"},{"type":"git","introduced":"bc3e9dd9d104ca1b75644eab87b38ce8a924aef4","fixed":"0a8cf165566ba55a39fd0f4de172119dd646d39a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.12","status":"unaffected"},{"type":"semver","introduced":"5.15.210","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.176","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.140","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.86","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.35","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.2","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:6.12.0-211.20.1.el10_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"kernel","cpe":"cpe:/o:redhat:enterprise_linux:10.2","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:6.12.0-55.77.1.el10_0","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10.0 Extended Update Support","package":"kernel","cpe":"cpe:/o:redhat:enterprise_linux_eus:10.0","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-553.126.1.rt7.467.el8_10","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"kernel-rt","cpe":"cpe:/a:redhat:enterprise_linux:8::nfv","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-553.126.1.el8_10","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"kernel","cpe":"cpe:/o:redhat:enterprise_linux:8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-687.12.1.el9_8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"kernel","cpe":"cpe:/a:redhat:enterprise_linux:9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-284.174.1.el9_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions","package":"kernel","cpe":"cpe:/a:redhat:rhel_e4s:9.2","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-284.174.1.rt14.459.el9_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions","package":"kernel-rt","cpe":"cpe:/a:redhat:rhel_e4s:9.2::nfv","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-427.129.1.el9_4","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions","package":"kernel","cpe":"cpe:/a:redhat:rhel_e4s:9.4","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-570.119.1.el9_6","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.6 Extended Update Support","package":"kernel","cpe":"cpe:/a:redhat:rhel_eus:9.6","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","package":"kernel","cpe":"cpe:/o:redhat:enterprise_linux:6","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","package":"kernel","cpe":"cpe:/o:redhat:enterprise_linux:7","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","package":"kernel-rt","cpe":"cpe:/o:redhat:enterprise_linux:7","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"kernel-rt","cpe":"cpe:/o:redhat:enterprise_linux:9","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.12","fixed":"7.0.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b8603d9ae6c9087662b098619996bc4a8064319d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c2abdebf72000a64603ced84d36ccbd164f11391","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8e47d297e7cf9a6029a0d38e7b22faba7d7aaf12","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d92f3f0b22414e7515696a02224d0af55e3004a3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ff0ca46b13b9ef6edbcd238a3b6caacfef8ba0e5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b78db9bddc84136f6a0bb49e8883cf200dfb87a8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0a8cf165566ba55a39fd0f4de172119dd646d39a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-31709","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2464476","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31709.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24343","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:23329","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22940","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:23237","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:23224","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21556","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21706","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21745","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22900","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:12:47.844Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31709","url":"https://www.cve.org/CVERecord?id=CVE-2026-31709","licence":"CVE Terms of Use","modified":"2026-10-19T19:06:06.980Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31709","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31709","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.342Z","epss":{"score":0.00351,"percentile":0.30712,"date":"2026-12-01T12:00:22.000Z"}}