smb: client: fix slab-out-of-bounds write in id_mode_to_cifs_acl() (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.43 % · centile 39 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Produits affectés
- Linux · Linux
- Statut NVD
- Received
Rechercher sur…
Description
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix slab-out-of-bounds write in id_mode_to_cifs_acl() In id_mode_to_cifs_acl(), while the chown branch reserves sizeof(struct smb_ntsd) + 2 * sizeof(struct smb_sid) (plus sizeof(struct smb_acl) and the worst-case ACE space after commit 0ee150794c75 ("smb: client: fix heap overflow in DACL owner/group rewrite")), the chmod branch only adds 2 * sizeof(struct smb_ace) or 5 * sizeof(struct smb_ace) to secdesclen (or 1 * sizeof(struct smb_ace) on posix). However, the chmod branch also invokes build_sec_desc() -> copy_sec_desc(), which unconditionally writes the Owner SID at pnntsd + sidsoffset and the Group SID at pnntsd + sidsoffset + sizeof(struct smb_sid) (2 * 68 = 136 bytes total), and set_chmod_dacl() always writes a struct smb_acl header (8 bytes) even when the source descriptor has dacloffset == 0. When a security descriptor has compact or overlapping Owner/Group SIDs (or dacloffset == 0), calling chmod() under-allocates pnntsd and writes past the end of the slab buffer. Reserve sizeof(struct smb_acl) + 2 * sizeof(struct smb_sid) (plus sizeof(struct smb_ntsd) on the posix path) in the chmod branch of id_mode_to_cifs_acl().
Références
- https://git.kernel.org/stable/c/d1f14e890dff3b19fbc8dec1eb09f09c71ca69a8
- https://git.kernel.org/stable/c/773c30f94a027e6a0a9774906d6cff3902dbe15c
- https://git.kernel.org/stable/c/51e5772fdfc92a453995aba07ff2aa6e107b580d
- https://git.kernel.org/stable/c/cde80904e285a7ac29ba2e06bc23a60b09b05f54
- https://git.kernel.org/stable/c/ba57bfe1a9fa1566757cd3f3310ccdf88f4b7673
- https://git.kernel.org/stable/c/be1bcc9147facd85dc2ebe48688afde6d5590f10
- https://git.kernel.org/stable/c/a377a3645c7d0246af0bc4ef24db94bb2670bdde
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
Références européennes
- ENISA EUVD · EUVD-2026-126198
- GCVE · GCVE-0-2026-99292
Avis du CERT-FR
- CERTFR-2026-AVI-1639 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions affectées |
|---|---|
| Linux · Linux | affectée : ≥ 7ee0b4c635c091eb3c805977ba886bae2fd33f0c < d1f14e890dff3b19fbc8dec1eb09f09c71ca69a8 affectée : ≥ 7ee0b4c635c091eb3c805977ba886bae2fd33f0c < 773c30f94a027e6a0a9774906d6cff3902dbe15c affectée : ≥ 7ee0b4c635c091eb3c805977ba886bae2fd33f0c < 51e5772fdfc92a453995aba07ff2aa6e107b580d affectée : ≥ 7ee0b4c635c091eb3c805977ba886bae2fd33f0c < cde80904e285a7ac29ba2e06bc23a60b09b05f54 affectée : ≥ 7ee0b4c635c091eb3c805977ba886bae2fd33f0c < ba57bfe1a9fa1566757cd3f3310ccdf88f4b7673 affectée : ≥ 7ee0b4c635c091eb3c805977ba886bae2fd33f0c < be1bcc9147facd85dc2ebe48688afde6d5590f10 affectée : ≥ 7ee0b4c635c091eb3c805977ba886bae2fd33f0c < a377a3645c7d0246af0bc4ef24db94bb2670bdde Autres versions : non affectée |
| Linux · Linux | affectée : 3.8 non affectée : ≥ 0 < 3.8 non affectée : ≥ 5.15.226 ≤ 5.15.* non affectée : ≥ 6.1.193 ≤ 6.1.* non affectée : ≥ 6.6.163 ≤ 6.6.* non affectée : ≥ 6.12.117 ≤ 6.12.* non affectée : ≥ 6.18.61 ≤ 6.18.* non affectée : ≥ 7.3.2 ≤ 7.3.* non affectée : ≥ 7.4-rc1 ≤ * Autres versions : affectée |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |