CVE-2022-49938

published 18 Jun 2025 · updated 17 Nov 2026

cifs: fix small mempool leak in SMB2_negotiate()

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.15.66, Kernel 5.19.8, Kernel 27893dfc1285f80f80f46b3b8c95f5d15d2e66d0 and 3 more.

In the Linux kernel, the following vulnerability has been resolved: cifs: fix small mempool leak in SMB2_negotiate() In some cases of failure (dialect mismatches) in SMB2_negotiate(), after the request is sent, the checks would return -EIO when they should be rather setting rc = -EIO and jumping to neg_exit to free the response buffer from mempool.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel<5.15.66, >=5.16 <5.19.8, =6.0, >=9764c02fcbad40001fd3f63558d918e4d519bb75 <27893dfc1285f80f80f46b3b8c95f5d15d2e66d0, >=9764c02fcbad40001fd3f63558d918e4d519bb75 <38a6b469bf22f153282fbe7d702a24e9eb43f50e, >=9764c02fcbad40001fd3f63558d918e4d519bb75 <9e3c9efa7caf16e5acc05eab5e4d0a714e1610b0, =1ae6f05d4204d3a128bb9ba2c42e2a6c4ac687f1, =4.14, >=4.13.5 <4.145.15.66, 5.19.8, 27893dfc1285f80f80f46b3b8c95f5d15d2e66d0, 38a6b469bf22f153282fbe7d702a24e9eb43f50e, 9e3c9efa7caf16e5acc05eab5e4d0a714e1610b0, 4.14
linux-kernel: Kernel>=4.13.5 <4.14, >=4.14.0 <5.15.66, >=5.16.0 <5.19.84.14, 5.15.66, 5.19.8

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-49938 severity on Zeptric[![CVE-2022-49938](https://zeptric.io/badge/cve/CVE-2022-49938.svg)](https://zeptric.io/cve/CVE-2022-49938)