# CVE-2022-49938: cifs: fix small mempool leak in SMB2_negotiate()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-06-18T10:54:39.458Z
- Modified: 2026-11-05T20:17:18.577Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 9764c02fcbad40001fd3f63558d918e4d519bb75 before 9e3c9efa7caf16e5acc05eab5e4d0a714e1610b0; from 9764c02fcbad40001fd3f63558d918e4d519bb75 before 38a6b469bf22f153282fbe7d702a24e9eb43f50e; from 9764c02fcbad40001fd3f63558d918e4d519bb75 before 27893dfc1285f80f80f46b3b8c95f5d15d2e66d0; 1ae6f05d4204d3a128bb9ba2c42e2a6c4ac687f1; from 4.13.5 before 4.14; 4.14 (not affected: before 4.14; from 5.15.66 up to 5.15.*; from 5.19.8 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: before 5.15.66; from 5.16 before 5.19.8; 6.0

## References

- <https://git.kernel.org/stable/c/9e3c9efa7caf16e5acc05eab5e4d0a714e1610b0> (patch)
- <https://git.kernel.org/stable/c/38a6b469bf22f153282fbe7d702a24e9eb43f50e> (patch)
- <https://git.kernel.org/stable/c/27893dfc1285f80f80f46b3b8c95f5d15d2e66d0> (patch)

## Sources

- CVE List: [CVE-2022-49938](https://www.cve.org/CVERecord?id=CVE-2022-49938), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-49938](https://nvd.nist.gov/vuln/detail/CVE-2022-49938), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-49938 · Whole record: https://cve.day/CVE-2022-49938.json · Rebuilt by cve.day 2026-11-25T22:58:20.971Z
