CVE-2025-22041: ksmbd: fix use-after-free in ksmbd_sessions_deregister()

Published Apr 16, 2025
·
Updated

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

ksmbd: fix use-after-free in ksmbdsessionsderegister()

In multichannel mode, UAF issue can occur in sessionderegister when the second channel sets up a session through the connection of the first channel. session that is freed through the global session table can be accessed again through ->sessions of connection.

Affected Software

6 affected components
Linux Linux kernel<6.1.134
Linux Linux kernel>=6.2<6.6.87
Linux Linux kernel>=6.7<6.12.13
Linux Linux kernel>=6.13<6.13.11
Linux Linux kernel>=6.14<6.14.2
Linux Kernel

Event History

Apr 16, 2025
CVE Published
via MITRE·02:11 PM
Data Sourced
via MITRE·02:11 PM
DescriptionSeverity
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 11, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
May 2, 58221
Event
via MITRE·05:04 PM

Frequently Asked Questions

1

What is the severity of CVE-2025-22041?

CVE-2025-22041 has been classified as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-22041?

To fix CVE-2025-22041, update the Linux kernel to the patched version provided by your distribution.

3

What systems are affected by CVE-2025-22041?

CVE-2025-22041 affects the Linux kernel, specifically systems using the ksmbd functionality.

4

What does CVE-2025-22041 exploit?

CVE-2025-22041 exploits a use-after-free vulnerability during session deregistration in multichannel mode.

5

Is there a workaround for CVE-2025-22041?

Currently, no specific workaround exists for CVE-2025-22041 apart from applying the necessary updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203