CVE-2025-22041
Linux Kernel vulnerability analysis and mitigation

Overview

A use-after-free vulnerability (CVE-2025-22041) was discovered in the Linux kernel's ksmbd component, specifically in the ksmbd_sessions_deregister() function. The vulnerability was disclosed on April 16, 2025, affecting multiple versions of the Linux kernel from 6.2 through 6.14.2 (NVD).

Technical details

The vulnerability occurs in multichannel mode when the second channel attempts to set up a session through the connection of the first channel. A use-after-free condition arises in session_deregister where a session that is freed through the global session table can be accessed again through the ->sessions of connection. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H and is classified as CWE-416 (Use After Free) (NVD).

Impact

The vulnerability affects multiple Linux distributions and versions, including Ubuntu releases from 20.04 LTS to 24.04 LTS, and various kernel configurations including aws, azure, gcp, and oracle variants. The high CVSS score indicates potential for significant impact if exploited, with possible consequences for confidentiality, integrity, and availability of affected systems (Ubuntu).

Mitigation and workarounds

The vulnerability has been fixed in Linux kernel version 6.12.25-1 and patches have been released for affected systems. Multiple patch commits have been made available through the kernel.org repository to address this issue (Debian).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-gcp
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-uki-virt
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-modules-extra
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management