ksmbd: validate security descriptor offsets before pointer arithmetic (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.21 % · percentile 12 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate security descriptor offsets before pointer arithmetic parse_sec_desc() constructs SID and DACL pointers by adding untrusted 32-bit offsets to the security descriptor before checking their bounds. The existing checks reject offsets into the descriptor header, but do not reject offsets beyond the descriptor's length. On a 32-bit kernel, a large offset can wrap the pointer before the descriptor. The end-only checks in parse_sid() and parse_dacl() can then accept it, allowing an authenticated SMB2 SET_INFO request to access memory outside the security descriptor and fault the kernel. Check each nonzero offset against acl_len before constructing its pointer. Initialize the optional owner and group SID pointers to NULL so an omitted SID remains absent when parsing the DACL.
References
- https://git.kernel.org/stable/c/6d9bd792f0aedef467fe76430a2c5b8d19de5a0d
- https://git.kernel.org/stable/c/a20f213f0bac5b911268ec2c3b932ee85e05c87d
- https://git.kernel.org/stable/c/1e1bf8ea2768f8b32fc280308a96f1dcbd5cf24c
- https://git.kernel.org/stable/c/f2eca58cf5de3554f7083c0ae5f78a93e2fe88c3
- https://git.kernel.org/stable/c/e8aa0ac634f0d30a5df8106791ba67b17f71e2ae
- https://git.kernel.org/stable/c/e14b640498c4c5dae35ee1c605a76527f01fdc8b
- https://git.kernel.org/stable/c/3474e1a304fbf9f7c996b24adcd519e031227a90
European references
- ENISA EUVD · EUVD-2026-130255
- GCVE · GCVE-0-2026-99532
CERT-FR advisories
- CERTFR-2026-AVI-1639 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf < 6d9bd792f0aedef467fe76430a2c5b8d19de5a0d affected : ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf < a20f213f0bac5b911268ec2c3b932ee85e05c87d affected : ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf < 1e1bf8ea2768f8b32fc280308a96f1dcbd5cf24c affected : ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf < f2eca58cf5de3554f7083c0ae5f78a93e2fe88c3 affected : ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf < e8aa0ac634f0d30a5df8106791ba67b17f71e2ae affected : ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf < e14b640498c4c5dae35ee1c605a76527f01fdc8b affected : ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf < 3474e1a304fbf9f7c996b24adcd519e031227a90 Other versions : unaffected |
| Linux · Linux | affected : 5.15 unaffected : ≥ 0 < 5.15 unaffected : ≥ 5.15.226 ≤ 5.15.* unaffected : ≥ 6.1.193 ≤ 6.1.* unaffected : ≥ 6.6.163 ≤ 6.6.* unaffected : ≥ 6.12.117 ≤ 6.12.* unaffected : ≥ 6.18.61 ≤ 6.18.* unaffected : ≥ 7.3.2 ≤ 7.3.* unaffected : ≥ 7.4-rc1 ≤ * Other versions : affected |
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 |