[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025061848-CVE-2022-49938-3c2f@gregkh>
Date: Wed, 18 Jun 2025 12:54:49 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-49938: cifs: fix small mempool leak in SMB2_negotiate()
From: Greg Kroah-Hartman <gregkh@...nel.org>
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.
The Linux kernel CVE team has assigned CVE-2022-49938 to this issue.
Affected and fixed versions
===========================
Fixed in 5.15.66 with commit 9e3c9efa7caf16e5acc05eab5e4d0a714e1610b0
Fixed in 5.19.8 with commit 38a6b469bf22f153282fbe7d702a24e9eb43f50e
Fixed in 6.0 with commit 27893dfc1285f80f80f46b3b8c95f5d15d2e66d0
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2022-49938
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/cifs/smb2pdu.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/9e3c9efa7caf16e5acc05eab5e4d0a714e1610b0
https://git.kernel.org/stable/c/38a6b469bf22f153282fbe7d702a24e9eb43f50e
https://git.kernel.org/stable/c/27893dfc1285f80f80f46b3b8c95f5d15d2e66d0
Powered by blists - more mailing lists