CVE-2026-31704ksmbd: use check_add_overflow() to prevent u16 DACL size overflow
- 5.5MediumCVSS base score
- 0.12%Exploitation in 30 daysEPSS · top 98% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: use check_add_overflow() to prevent u16 DACL size overflow set_posix_acl_entries_dacl() and set_ntacl_dacl() accumulate ACE sizes in u16 variables. When a file has many POSIX ACL entries, the accumulated size can wrap past 65535, causing the pointer arithmetic (char *)pndace + *size to land within already-written ACEs. Subsequent writes then overwrite earlier entries, and pndacl->size gets a truncated value. Use check_add_overflow() at each accumulation point to detect the wrap before it corrupts the buffer, consistent with existing check_mul_overflow() usage elsewhere in smbacl.c.
Timeline
ID reserved
By Linux
- 53 days later
· 53 days later
Published
- 6 months later
· 6 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.12% · top 98% of all CVEs (17 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 – < 41e53a773db6342ac9a689ee5ba635c31744c9f0
- affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 – < 8d5729350b236896f51379588d9a690b7fafb8db
- affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 – < e1955a94b6f17f4b058afa955a6f187eb3ed7615
- affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 – < 5e7b8f3c539d69b2ed5f2408e2f75e68ce7eef43
- affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 – < ef7902be3f215b6bf7babe4dc9dd9a7d57dad7a7
- affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 – < 299f962c0b02d048fb45d248b4da493d03f3175d
- affected 5.15
- unaffected < 5.15
- unaffected 6.1.175 – ≤ 6.1.*
- unaffected 6.6.136 – ≤ 6.6.*
- unaffected 6.12.84 – ≤ 6.12.*
- unaffected 6.18.25 – ≤ 6.18.*
- unaffected 7.0.2 – ≤ 7.0.*
- unaffected 7.1 – ≤ *
References
References7
- https://git.kernel.org/stable/c/41e53a773db6342ac9a689ee5ba635c31744c9f0 (opens in a new tab)
- https://git.kernel.org/stable/c/8d5729350b236896f51379588d9a690b7fafb8db (opens in a new tab)
- https://git.kernel.org/stable/c/e1955a94b6f17f4b058afa955a6f187eb3ed7615 (opens in a new tab)
- https://git.kernel.org/stable/c/5e7b8f3c539d69b2ed5f2408e2f75e68ce7eef43 (opens in a new tab)
- https://git.kernel.org/stable/c/ef7902be3f215b6bf7babe4dc9dd9a7d57dad7a7 (opens in a new tab)
- https://git.kernel.org/stable/c/299f962c0b02d048fb45d248b4da493d03f3175d (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-26513 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-31704)Record last updated .