cifs: fix small mempool leak in SMB2_negotiate()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.66, 5.19.8
- CVEs
- CVE-2022-49938
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 21:33 UTC · Revision 1
Source evidence
cifs: fix small mempool leak in SMB2_negotiate()
core-osv · Original sourcePublished 18 Jun 2025, 10:54 UTC
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.
osv:CVE-2022-49938
Kernel
Fixed versions: 5.15.66, 5.19.8
Complete source record
{
"id": "ddcf8982b34a9413d01e8ff1bff9e4a42d9d0b715e4040cb4edbd7b034a56486",
"url": "https://osv.dev/vulnerability/CVE-2022-49938",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "cifs: fix small mempool leak in SMB2_negotiate()",
"summary": "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.",
"evidence": "osv:CVE-2022-49938",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.66",
"evidence": "/affected/1/ranges"
},
{
"value": "5.19.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-49938",
"aliases": [
"CVE-2022-49938"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "9764c02fcbad40001fd3f63558d918e4d519bb75"
},
{
"fixed": "9e3c9efa7caf16e5acc05eab5e4d0a714e1610b0"
},
{
"fixed": "38a6b469bf22f153282fbe7d702a24e9eb43f50e"
},
{
"fixed": "27893dfc1285f80f80f46b3b8c95f5d15d2e66d0"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "4.13.5"
},
{
"fixed": "4.14"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "1ae6f05d4204d3a128bb9ba2c42e2a6c4ac687f1"
}
]
}
],
"versions": [
"v4.13.16",
"v4.13.15",
"v4.13.14",
"v4.13.13",
"v4.13.12",
"v4.13.11",
"v4.13.10",
"v4.13.9",
"v4.13.8",
"v4.13.7",
"v4.13.6",
"v4.13.5"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49938.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.14.0"
},
{
"fixed": "5.15.66"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.19.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49938.json"
}
}
],
"modified": "2026-10-28T02:30:24.072418338Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/27893dfc1285f80f80f46b3b8c95f5d15d2e66d0",
"https://git.kernel.org/stable/c/38a6b469bf22f153282fbe7d702a24e9eb43f50e",
"https://git.kernel.org/stable/c/9e3c9efa7caf16e5acc05eab5e4d0a714e1610b0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49938.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49938",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49938.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49938",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 490311,
"published_at": "2025-06-18T10:54:39.458+00:00"
}