CVE-2022-50372: cifs: Fix memory leak when build ntlmssp negotiate blob failed

Published Sep 17, 2025
·
Updated

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

cifs: Fix memory leak when build ntlmssp negotiate blob failed

There is a memory leak when mount cifs: unreferenced object 0xffff888166059600 (size 448): comm "mount.cifs", pid 51391, jiffies 4295596373 (age 330.596s) hex dump (first 32 bytes): fe 53 4d 42 40 00 00 00 00 00 00 00 01 00 82 00 .SMB@........... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<0000000060609a61>] mempoolalloc+0xe1/0x260 [<00000000adfa6c63>] cifssmallbufget+0x24/0x60 [<00000000ebb404c7>] smb2plainreqinit+0x32/0x460 [<00000000bcf875b4>] SMB2sessallocbuffer+0xa4/0x3f0 [<00000000753a2987>] SMB2sessauthrawntlmsspnegotiate+0xf5/0x480 [<00000000f0c1f4f9>] SMB2sesssetup+0x253/0x410 [<00000000a8b83303>] cifssetupsession+0x18f/0x4c0 [<00000000854bd16d>] cifsgetsmbses+0xae7/0x13c0 [<000000006cbc43d9>] mountgetconns+0x7a/0x730 [<000000005922d816>] cifsmount+0x103/0xd10 [<00000000e33def3b>] cifssmb3domount+0x1dd/0xc90 [<0000000078034979>] smb3gettree+0x1d5/0x300 [<000000004371f980>] vfsgettree+0x41/0xf0 [<00000000b670d8a7>] pathmount+0x9b3/0xdd0 [<000000005e839a7d>] x64sysmount+0x190/0x1d0 [<000000009404c3b9>] dosyscall64+0x35/0x80

When build ntlmssp negotiate blob failed, the session setup request should be freed.

Affected Software

3 affected components
Linux Linux kernel
Linux Linux kernel>=5.16<6.0.6
Linux Linux kernel=6.1-rc1

Event History

Sep 17, 2025
CVE Published
via MITRE·02:56 PM
Data Sourced
via MITRE·02:56 PM
Description
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-50372?

CVE-2022-50372 is classified as a medium-severity vulnerability due to the potential for resource exhaustion.

2

How do I fix CVE-2022-50372?

To fix CVE-2022-50372, it is recommended to update the Linux kernel to the latest version that addresses this memory leak.

3

What systems are affected by CVE-2022-50372?

CVE-2022-50372 affects the Linux kernel, specifically systems that utilize the CIFS (Common Internet File System) protocol.

4

What are the implications of CVE-2022-50372?

The implications of CVE-2022-50372 include potential system instability and performance degradation due to memory leakage during CIFS mounts.

5

How was CVE-2022-50372 discovered?

CVE-2022-50372 was discovered as part of ongoing stability and security audits of the Linux kernel's CIFS implementation.

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