Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C463B27F017 for ; Wed, 18 Jun 2025 10:55:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244108; cv=none; b=SX9XLkVZq3n+YZuxA/RsI5KmjpMVGDcG4AFcbAnr/2RGNKYCLScahUshS4ZSm9z4b3/bgYewdBA+tJkVqMQtVV6ctISP5AGNPARNH5WCyYGAGDiZhuoc0pJEH+85CYlIcbwipMbY4aRY8FHYEona0+TC0C8q7emtlgT3WPFcmBc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244108; c=relaxed/simple; bh=THDDC9hYOnR4bUl13X/2i6ldNZCMmjEVDfjUY+rk06c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fIdLOAgMo/v3BRnzoGXsvTK6//VP17T6e6EoUpZPfU4ElFiCSbG4x4C7etEPt0lGdnIga9ae8RSNQH9XP8o1p+0qgThLKnGVTS4NTeIUcBqtFbfvplT/4JWnzlguEtLwSavHjkiLYOny4AhT092cy5kQeZ4qirFpl0ZHsWfzAOs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qOpIqhwU; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="qOpIqhwU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6C74C4CEE7; Wed, 18 Jun 2025 10:55:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244108; bh=THDDC9hYOnR4bUl13X/2i6ldNZCMmjEVDfjUY+rk06c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qOpIqhwU+oqYGXY64FseLxpTYgBPofRsCrjV+eN6JXgmlrezzT8JoUrLqochhVoc3 q1Z5bdcaHTcsnbB26HsaBM5gaOWuwbAxgUzV70UPt7oxOmkcb5MjOSiCRf24IjjZEu EoYyPyw2xZD94v7MKIlbCf6HQh3rAixV0wfMg4P8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49938: cifs: fix small mempool leak in SMB2_negotiate() Date: Wed, 18 Jun 2025 12:54:49 +0200 Message-ID: <2025061848-CVE-2022-49938-3c2f@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=1967; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vtabtMpU3HgBiWnggkMsSyNzkLF4X/YzSLiA8/7WrS4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBs36c7/l4+lWkxnYP/pSNdjK98u9mPirIvBEQ+vmxd dvm9L/rOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiRhkMCxY0n3h0J17jecKF M0kitn+mePBV2jPM0z9qrxdayXIhWDv1jdTN0HdsYQ2iAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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