Skip to main content

Linux Kernel CVE-2026-31704

| EUVDEUVD-2026-26513 MEDIUM
2026-05-01 416baaa9-dc9f-4396-8d5f-8c081fb06d67
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Local user accesses ksmbd-enabled host
  2. Delivery
    Creates file with excessive POSIX ACL entries
  3. Exploit
    Triggers DACL construction in set_posix_acl_entries_dacl()
  4. Execution
    u16 size accumulator overflows past 65535
  5. Persist
    Corrupted pointer overwrites earlier ACE buffer data
  6. Impact
    ksmbd crash or malformed DACL causes SMB service disruption

Vulnerability Assessment

Exploitation Conditions

Exploitation requires the ksmbd kernel module to be loaded and actively serving SMB connections - ksmbd is not enabled by default in most Linux distributions and must be explicitly configured, which is the primary limiting factor for real-world exposure. A local user with at minimum low-privilege access (PR:L per CVSS) to the host must be able to create files and set POSIX ACL entries; the triggering condition is accumulating enough POSIX ACL entries on a single file that their combined ACE sizes exceed 65535 bytes, causing the u16 overflow in smbacl.c. The attack is strictly local (AV:L), ruling out remote exploitation over the network. No elevated privileges beyond a standard low-privilege local account are required once ksmbd is running, and no user interaction from any other user or administrator is needed.

Impact

The CVSS 3.1 score of 5.5 (Medium) with vector AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H accurately characterizes this as a local-only, low-privilege availability issue. EPSS at 0.02% (5th percentile) and absence from CISA KEV both reinforce that real-world exploitation is not occurring at scale. The practical risk is further narrowed by the fact that ksmbd must be explicitly loaded and configured - it is not active by default in most distributions, which substantially reduces the exposed population below what the Linux kernel's ubiquitous footprint might suggest. The CVSS I:N rating merits a note: the description explicitly states earlier ACE entries are overwritten, which is a data integrity event within the buffer, but the official scorer's choice of I:N is defensible if the corruption is fully contained and produces only a crash or malformed structure rather than exploitable data modification. This is a genuine medium-priority patch for environments actively running ksmbd with untrusted local users, but it is not an urgent cross-environment emergency. EPSS and KEV signals are aligned: no elevated real-world exploitation pressure.

Exploit ScenarioDerived

A local user with low-privileged access to a system running the ksmbd SMB server creates a file and applies an unusually large number of POSIX ACL entries - enough that the cumulative ACE byte sizes exceed 65535. When the kernel processes the DACL for that file via set_posix_acl_entries_dacl() or set_ntacl_dacl(), the u16 size accumulator overflows, redirecting subsequent ACE writes into already-written buffer memory and corrupting the DACL structure. The ksmbd subsystem then either produces a malformed DACL response or crashes, resulting in loss of SMB service availability on that host. No public proof-of-concept exploit has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Integer overflow in the ksmbd SMB server component of the Linux kernel allows a local low-privileged user to corrupt DACL buffer memory by creating files with a high number of POSIX ACL entries. The functions set_posix_acl_entries_dacl() and set_ntacl_dacl() accumulate ACE sizes in u16 variables; when those totals exceed 65535, pointer arithmetic redirects subsequent writes into already-written ACE data, producing a malformed DACL with a truncated size field and potential kernel memory corruption within the ksmbd subsystem. No public exploit has been identified at time of analysis, and the EPSS score of 0.02% (5th percentile) confirms minimal exploitation interest, consistent with the local-only attack vector.

RemediationAI

Update the Linux kernel to one of the following patched versions, selecting the branch that matches your current stable series: 6.6.136, 6.12.84, 6.18.25, or 7.0.2 (stable), or 7.1-rc1 (mainline). The corresponding upstream fix commits are available at https://git.kernel.org/stable/c/299f962c0b02d048fb45d248b4da493d03f3175d, https://git.kernel.org/stable/c/5e7b8f3c539d69b2ed5f2408e2f75e68ce7eef43, https://git.kernel.org/stable/c/8d5729350b236896f51379588d9a690b7fafb8db, https://git.kernel.org/stable/c/e1955a94b6f17f4b058afa955a6f187eb3ed7615, and https://git.kernel.org/stable/c/ef7902be3f215b6bf7babe4dc9dd9a7d57dad7a7. Ubuntu users should apply packages referenced in USN-8488-1 at https://ubuntu.com/security/notices/USN-8488-1. Where patching is not immediately possible, unloading the ksmbd kernel module via 'modprobe -r ksmbd' eliminates the entire attack surface with the trade-off of terminating all SMB services provided by ksmbd; Samba can serve as a functional replacement during the maintenance window. A narrower workaround is to enforce POSIX ACL entry limits per user via filesystem quotas or ACL policies, though determining the exact entry threshold that triggers overflow requires per-ACE-size analysis and is not a reliable long-term control. A patched version for the Linux 5.15 longterm branch is not independently confirmed from available data - users on 5.15 should verify with their distribution vendor.

Affected VersionsENISA

Linux patch: 6.18.25
Linux patch: 6.6.136
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <5e7b8f3c539d69b2ed5f2408e2f75e68ce7eef43
Linux patch: 7.1-rc1
Linux patch: 7.0.2
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <ef7902be3f215b6bf7babe4dc9dd9a7d57dad7a7
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <e1955a94b6f17f4b058afa955a6f187eb3ed7615
Linux patch: 6.12.84
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <8d5729350b236896f51379588d9a690b7fafb8db
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <299f962c0b02d048fb45d248b4da493d03f3175d
Linux patch: 0
Linux 5.15

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ksmbd is the in-kernel SMB3 server first introduced in Linux 5.15, implemented in fs/smb/server/. The vulnerability sits in smbacl.c, specifically in set_posix_acl_entries_dacl() and set_ntacl_dacl(), which build a Windows-style DACL (Discretionary Access Control List) by iterating over POSIX ACL entries and appending ACE (Access Control Entry) structures sequentially into a buffer. Both functions track the running total of ACE sizes using u16 variables - a 16-bit unsigned type capped at 65535. When a file carries enough POSIX ACL entries that their combined sizes surpass that cap, the accumulator wraps silently (a classic CWE-190 integer overflow / CWE-122 heap-based buffer overwrite scenario, though CWE is listed as N/A in NVD). After wrap, the expression (char *)pndace + *size resolves to an address inside already-written ACE data, so subsequent ACE copies overwrite earlier entries. The fix applies check_add_overflow() at each accumulation site to detect overflow before it corrupts the buffer, mirroring the existing use of check_mul_overflow() elsewhere in smbacl.c. The affected CPE is cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* covering multiple stable branches.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

Local-only attack via ksmbd requiring a low-privileged account; no remote vector; impact is availability loss from buffer corruption, with no confirmed confidentiality or integrity exposure.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

5
CVSS changed
May 06, 2026 - 20:52 NVD
5.5 (MEDIUM)
Patch released
May 01, 2026 - 15:24 nvd
Patch available
Patch available
May 01, 2026 - 15:02 EUVD
CVE Published
May 01, 2026 - 14:16 nvd
MEDIUM 5.5
CVE Published
May 01, 2026 - 14:16 nvd
N/A

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Prevalence
High
Linux kernel is near-universal, though ksmbd feature rarely enabled
Threat Intel
1
1 sources
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat Yes
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: +10
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

Threat IntelligenceMISP

CISA Advisories
Sources: Microsoft MSRC, CISA (public domain)

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy