PT-2025-38182 · Linux · Linux

Published

2025-09-17

·

Updated

2025-09-17

·

CVE-2022-50372

None

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

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>] mempool alloc+0xe1/0x260

[<00000000adfa6c63>] cifs small buf get+0x24/0x60

[<00000000ebb404c7>] smb2 plain req init+0x32/0x460

[<00000000bcf875b4>] SMB2 sess alloc buffer+0xa4/0x3f0

[<00000000753a2987>] SMB2 sess auth rawntlmssp negotiate+0xf5/0x480

[<00000000f0c1f4f9>] SMB2 sess setup+0x253/0x410

[<00000000a8b83303>] cifs setup session+0x18f/0x4c0

[<00000000854bd16d>] cifs get smb ses+0xae7/0x13c0

[<000000006cbc43d9>] mount get conns+0x7a/0x730

[<000000005922d816>] cifs mount+0x103/0xd10

[<00000000e33def3b>] cifs smb3 do mount+0x1dd/0xc90

[<0000000078034979>] smb3 get tree+0x1d5/0x300

[<000000004371f980>] vfs get tree+0x41/0xf0

[<00000000b670d8a7>] path mount+0x9b3/0xdd0

[<000000005e839a7d>] x64 sys mount+0x190/0x1d0

[<000000009404c3b9>] do syscall 64+0x35/0x80

When build ntlmssp negotiate blob failed, the session setup request

should be freed.

Related Identifiers

CVE-2022-50372

Affected Products

Linux