---
id: CVE-2025-40286
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  smb/server: fix possible memory leak in smb2_read()

  Memory leak occurs when ksmbd_vfs_read() fails.
  Fix this by adding the missing kvfree().
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  smb/server: fix possible memory leak in smb2_read()

  Memory leak occurs when ksmbd_vfs_read() fails.
  Fix this by adding the missing kvfree().
severity: none
published: '2025-12-06'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T19:10:00.173'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-40286'
references:
  - url: 'https://git.kernel.org/stable/c/0797c6cf3b857cc229ab2bc69552938dcd738d78'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/63d8706a2c09a0c29b8b0e8a44bc7a1339685de9'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/6fced056d2cc8d01b326e6fcfabaacb9850b71a4'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/bfda5422a16651d0bf864ec468b1c216e1b10d91'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/f1305587731886da37a214cda812ade246c653b0'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
epss: 0.00186
epssPercentile: 0.07601
ingestedAt: '2026-10-15T19:25:46.335Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

smb/server: fix possible memory leak in smb2_read()

Memory leak occurs when ksmbd_vfs_read() fails.
Fix this by adding the missing kvfree().

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
