ksmbd: Fix acl.sd_buf memory leak and invalid sd_size error handling (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.17 % · centile 7 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Statut NVD
- Received
Rechercher sur…
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: Fix acl.sd_buf memory leak and invalid sd_size error handling 1. When ndr_decode_v4_ntacl() fails, the code jumped to free_n_data which only freed n.data, skipping kfree(acl.sd_buf) and leaking the buffer. Zero-initialize struct xattr_ntacl acl, reorder error labels to out_free to release acl.sd_buf on all error paths. 2. if (acl.sd_size < sizeof(struct smb_ntsd)) is true, original code returned success without freeing sd_buf and left stale *pntsd. Set rc = -EINVAL before jumping to out_free to return error code and free buffer.
Références
- https://git.kernel.org/stable/c/f46a70a082bdbfecbe074af8a719c26c4deb58c6
- https://git.kernel.org/stable/c/86c2625fb9863139b359805fc6be1e31edbd3d65
- https://git.kernel.org/stable/c/edc17db83085624a2b1bacf6a4521d7f15571737
- https://git.kernel.org/stable/c/c3836f55e0dab96314774215e12d87f63fa919f2
- https://git.kernel.org/stable/c/6e6329322ad733c5b23555c609353841560b26bc
- https://git.kernel.org/stable/c/d708a36634bb7b6f94d0e76d587d2ec50b2b93b5
Références européennes
- ENISA EUVD · EUVD-2026-86198
- GCVE · GCVE-0-2026-93811
Avis du CERT-FR
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1375 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1289 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1253 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions |
|---|---|
| Linux · Linux | affected cb69d4d6f709f87c94afa28ae64c501576692171 < f46a70a082bdbfecbe074af8a719c26c4deb58c6 ; affected 8f0541186e9ad1b62accc9519cc2b7a7240272a7 < 86c2625fb9863139b359805fc6be1e31edbd3d65 ; affected 8f0541186e9ad1b62accc9519cc2b7a7240272a7 < edc17db83085624a2b1bacf6a4521d7f15571737 ; affected 8f0541186e9ad1b62accc9519cc2b7a7240272a7 < c3836f55e0dab96314774215e12d87f63fa919f2 ; affected 8f0541186e9ad1b62accc9519cc2b7a7240272a7 < 6e6329322ad733c5b23555c609353841560b26bc ; affected 8f0541186e9ad1b62accc9519cc2b7a7240272a7 < d708a36634bb7b6f94d0e76d587d2ec50b2b93b5 |
| Linux · Linux | affected 6.0 ; unaffected 0 < 6.0 ; unaffected 5.15.222 ≤ 5.15.* ; unaffected 6.1.189 ≤ 6.1.* ; unaffected 6.6.158 ≤ 6.6.* ; unaffected 6.12.111 ≤ 6.12.* |
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 |