CVE-2022-49938
JSON

5.5medium

cifs: fix small mempool leak in SMB2_negotiate()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.27% (higher than 13% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelbefore 5.15.66, from 5.16 before 5.19.8, 6.0NVD

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: cifs: corrige una pequeña pérdida de mempool en SMB2_negotiate() En algunos casos de falla (desajustes de dialecto) en SMB2_negotiate(), después de enviar la solicitud, las verificaciones devolverían -EIO cuando deberían establecer rc = -EIO y saltar a neg_exit para liberar el búfer de respuesta de mempool.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49938 changed 2026-11-05CVE Terms of Use
NVDCVE-2022-49938 changed 2026-11-05Public domain