CVE-2022-49938

cifs: fix small mempool leak in SMB2_negotiate()

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 10:54 AM UTC
Updated: June 17, 2026 at 05:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 4.13.5v < 5.15.664.13.5 ≤ v < 4.144.14 ≤ v < 5.15.664.14 ≤ v < 5.19.84.14 ≤ v < 6.05.16 ≤ v < 5.19.81ae6f05d4204d3a128bb9ba2c42e2a6c4ac687f14.13.54.146.0 rc16.0 rc26.0 rc39764c02fcbad40001fd3f63558d918e4d519bb75
Vendor states this is fixed in 27893dfc1285f80f80f46b3b8c95f5d15d2e66d0 (fixed)
Vendor states this is fixed in 38a6b469bf22f153282fbe7d702a24e9eb43f50e (fixed)
Vendor states this is fixed in 9e3c9efa7caf16e5acc05eab5e4d0a714e1610b0 (fixed)
Vendor states this is fixed in 4.14 (unaffected)
Vendor states this is fixed in 5.15.66 (unaffected)
Vendor states this is fixed in 5.19.8 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/27893dfc1285f80f80f46b3b8c95f5d15d2e66d0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/38a6b469bf22f153282fbe7d702a24e9eb43f50e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9e3c9efa7caf16e5acc05eab5e4d0a714e1610b0

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card