CVE & CISA-KEV Catalog

CVE-2026-31704

HIGH
7.5
CVSS v3
NVD

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.

How to fix

Remediation Available
linuxDebian
Fixed in:6.1.176-1CVE-2026-31704
Fixed in:6.12.85-1CVE-2026-31704
Fixed in:7.0.3-1CVE-2026-31704

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.12%probability of exploitation in 30 days
2ndpercentile

Low risk: more likely to be exploited than 2% of all known CVEs.

References

Embed a live status badge for CVE-2026-31704
CVE-2026-31704 severity badge

Markdown

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

HTML

<a href="https://tridentstack.com/cve/CVE-2026-31704"><img src="https://tridentstack.com/cve/badge/CVE-2026-31704.svg" alt="CVE-2026-31704"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-01.