CVE-2026-31608

smb: server: avoid double-free in smb_direct_free_sendmsg after smb_direct_flush_send_list()

Published Apr 24, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

smb: server: avoid double-free in smb_direct_free_sendmsg after smb_direct_flush_send_list()

smb_direct_flush_send_list() already calls smb_direct_free_sendmsg(),
so we should not call it again after post_sendmsg()
moved it to the batch list.

Analysis

AI-generated

Technical impact

A double‑free bug in the Linux kernel SMB server is triggered by calling smb_direct_free_sendmsg() twice, once by smb_direct_flush_send_list() and again after a message is sent. This flaw, identified as CWE‑1341 and CWE‑415, can corrupt kernel memory structures, although the advisory text does not mention any observed crashes or exploitation. The vulnerability has been resolved by moving the duplicate call to the batch list so that both paths are no longer executed.

Affected Systems

The issue affects Linux kernel releases that do not yet contain the referenced commits, as indicated by the Git commit links in the advisory. Administrators should verify that the running kernel includes the fix applied in the commits listed, otherwise the system remains vulnerable.

Risk and Exploitability

The CVSS score of 9.8 underscores the criticality, while the EPSS value of <1% suggests a low likelihood of current exploitation. The double‑free occurs within the SMB protocol stack, so a likely attack vector would be an attacker sending malicious SMB packets to trigger the flaw. The vulnerability is not listed in the CISA KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest stable Linux kernel that includes the patch from the referenced Git commits to eliminate the double‑free error.
  • Reboot the host to load the updated kernel so that the SMB service runs the fixed code path.
  • If SMB is unnecessary, disable the service or restrict access to trusted hosts with firewall rules.

Generated by OpenCVE AI on April 30, 2026 at 14:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8488-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8488-2 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8507-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8569-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-415
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: smb: server: avoid double-free in smb_direct_free_sendmsg after smb_direct_flush_send_list() smb_direct_flush_send_list() already calls smb_direct_free_sendmsg(), so we should not call it again after post_sendmsg() moved it to the batch list.
Title smb: server: avoid double-free in smb_direct_free_sendmsg after smb_direct_flush_send_list()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-1341

    Multiple Releases of Same Resource or Handle

  • CWE-415

    Double Free

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 5, 2026, 12:23 PM
Reserved
Mar 9, 2026, 3:48 PM
Status
Analyzed
Published
Apr 24, 2026, 3:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Public date
Apr 24, 2026, 12:00 AM