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 328A44596F for ; Mon, 20 May 2024 09:49:42 +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=1716198582; cv=none; b=bhDwJGJElZhyy+9KJj0nLZMnm1Re9RyZ4j1uZyxynW1V0UPBfQWfQ2ACtPchH+03P9JiLhYomdqCcFbR4tP6m69Gxu7S/eIOwLqCDWNMyODXLHFCL4Ah81E4y+xTrZvZTWJWjTvr5msRK+7BfBclvAIxIGF/sDkET7yKe3BfQU4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716198582; c=relaxed/simple; bh=MCkw+p0uW9KP4wu1lDKFog/h2wfRh0ul7lhS1YUr8LQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A3gJe8uRdgm14r83m2tshUkeTpkgJiy1y8MyiyfoUVspE82Km0xx3CM7STxDEForvo9pd5SUXdrbzsTs008Be8Vwjh2dUOrxzvet2CbZU5TVvcMNzd3L7e07oc6ARG8MO1PUOXqgPwDxrimYUou3R+wmAG+pNyQL34+9p+bHaPA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hPWw93RB; 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="hPWw93RB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF32EC2BD10; Mon, 20 May 2024 09:49:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716198582; bh=MCkw+p0uW9KP4wu1lDKFog/h2wfRh0ul7lhS1YUr8LQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hPWw93RBS8SUPxP8ojKjR1rhihAN3OGkTy0nqvpov+j5o6mC65D3LAU+ZvGY5GT6Y UfwCA2dPxPjRMLAm0X7Wps9BZNopI8SJv26wGd+Hghbh094c3/Ap0fJx91qRgTLBh/ z8TMuJ3gK22lUgI8KN/WW99k4ce+nWLAZyD99c8U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35998: smb3: fix lock ordering potential deadlock in cifs_sync_mid_result Date: Mon, 20 May 2024 11:48:34 +0200 Message-ID: <2024052022-CVE-2024-35998-96a4@gregkh> X-Mailer: git-send-email 2.45.1 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=2079; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MCkw+p0uW9KP4wu1lDKFog/h2wfRh0ul7lhS1YUr8LQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGneMmnp7WKPJxW8vvdzYXPIRV7xb1s9/E6ddd23M0jIi umyjoFORywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkIQvDPLOeGcwOKY/Nru45 alnXdGELU9cqOYYFiyP/zD2+82mKXMC62knSIUXL9ptoAQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: smb3: fix lock ordering potential deadlock in cifs_sync_mid_result Coverity spotted that the cifs_sync_mid_result function could deadlock "Thread deadlock (ORDER_REVERSAL) lock_order: Calling spin_lock acquires lock TCP_Server_Info.srv_lock while holding lock TCP_Server_Info.mid_lock" Addresses-Coverity: 1590401 ("Thread deadlock (ORDER_REVERSAL)") The Linux kernel CVE team has assigned CVE-2024-35998 to this issue. Affected and fixed versions =========================== Fixed in 6.1.90 with commit c7a4bca289e5 Fixed in 6.6.30 with commit 699f8958dece Fixed in 6.8.9 with commit 8248224ab5b8 Fixed in 6.9 with commit 8861fd518047 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-2024-35998 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/smb/client/transport.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/c7a4bca289e50bb4b2650f845c41bb3e453f4c66 https://git.kernel.org/stable/c/699f8958dece132709c0bff6a9700999a2a63b75 https://git.kernel.org/stable/c/8248224ab5b8ca7559b671917c224296a4d671fc https://git.kernel.org/stable/c/8861fd5180476f45f9e8853db154600469a0284f