Cloudanix VulnDB

CVE-2025-38437

None

CVSS

—

EPSS

0.4%

Published

Jul 25, 2025

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A bug in Linux file-sharing code could let attackers crash servers or gain extra access until the system is updated.

Chainable
Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
Moderate
Impact
Privilege Gain
Component
OS kernel
Class
Use After Free
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Potential use-after-free in ksmbd when ksmbd_iov_pin_rsp returns an error during oplock or lease break acknowledgment, allowing access to freed opinfo state and duplicate calls to opinfo_put and ksmbd_fd_put.

Why it matters to the business

Linux servers providing SMB file shares may suffer crashes, resource corruption, or privilege escalation, leading to service outages and potential unauthorized access on Debian 12 deployments until upgraded.

How an attack unfolds

An attacker establishes an SMB session and forces an oplock or lease break condition; when response pinning fails, the resulting use-after-free can be leveraged for memory corruption, potentially chaining into privilege escalation observed in Linux kernel campaigns by actors such as Advanced Spyware Campaign or September 2025 Active Exploitation Campaigns.

How to fix it

Upgrade the linux package on Debian 12 to version 6.1.147-1 or newer; reboot to load the fixed kernel and validate SMB share functionality post-update.

How to confirm the fix worked

Confirm running kernel version meets or exceeds 6.1.147-1 via uname or package manager; exercise oplock/lease SMB operations under load to verify stability and absence of prior double-free paths.

Typical attack path

  1. Connect to ksmbd SMB service and negotiate session
  2. Trigger oplock or lease acquisition followed by break request
  3. Induce error return from ksmbd_iov_pin_rsp
  4. Access freed opinfo structures to corrupt kernel memory
  5. Escalate to code execution or denial of service

How to detect it

Inspect kernel logs for oops or panic entries referencing ksmbd oplock or lease handling; correlate with SMB connection logs showing abnormal break acknowledgment sequences during the exploitation window.

What your security team should do

  • Prioritize kernel upgrade to 6.1.147-1 across all Debian 12 hosts exposing SMB
  • Review and restrict unnecessary SMB exposure while monitoring for kernel oops involving ksmbd
  • Incorporate this fix into standard patching cycles given rising EPSS trend and related kernel exploit activity

The record

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix potential use-after-free in oplock/lease break ack If ksmbd_iov_pin_rsp return error, use-after-free can happen by accessing opinfo->state and opinfo_put and ksmbd_fd_put could called twice.

Affected packages

Ecosystem Package Introduced Fixed
Debian:12 linux 0 6.1.147-1
Debian:13 linux 0 6.12.41-1
Debian:14 linux 0 No fix
Debian:14 linux 0 6.16.3-1
Linux Kernel 5.15.0 6.1.146
Mageia:9 kernel 0 6.6.101-1.mga9
Mageia:9 kernel-linus 0 6.6.101-1.mga9
Mageia:9 kmod-virtualbox 0 7.1.10-7.mga9
Mageia:9 kmod-xtables-addons 0 3.24-83.mga9
Mageia:9 wireless-regdb 0 20250710-1.mga9

Related vulnerabilities