Skip to content
CVE Ledger
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API docsPage
  • MCP serverPage
  • AboutPage
  • Data sourcesPage
  • Data statusPage
  • ChangelogPage
  • How it's builtPage
  • Support the projectPage

14 results

Back

CVE-2026-31704ksmbd: use check_add_overflow() to prevent u16 DACL size overflow

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

  1. ID reserved

    By Linux

  2. · 53 days later

    Published

  3. · 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

CVSS scores of CVE-2026-31704, by who scored it
Scored byCVSSScoreVector
NVDNVD · Modified3.1Medium5.5CVSS: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)
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.

Affected products

  • Linux · Linux

    • affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 – < 41e53a773db6342ac9a689ee5ba635c31744c9f0
    • affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 – < 8d5729350b236896f51379588d9a690b7fafb8db
    • affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 – < e1955a94b6f17f4b058afa955a6f187eb3ed7615
    • affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 – < 5e7b8f3c539d69b2ed5f2408e2f75e68ce7eef43
    • affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 – < ef7902be3f215b6bf7babe4dc9dd9a7d57dad7a7
    • affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 – < 299f962c0b02d048fb45d248b4da493d03f3175d
  • Linux · Linux

    • 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

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2026-31704 badge
[![CVE-2026-31704](https://cveledger.app/badge/CVE-2026-31704.svg)](https://cveledger.app/cve/CVE-2026-31704)

Record last updated .