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 9EC097EEF8 for ; Tue, 21 May 2024 15:05: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=1716303908; cv=none; b=V3BJuCfy2ac/p4FC4N7v7T1umP0cXJ/Hk6cH/zbHQwZP0y2h8UNhtZGHw0v/epNAC5ZsWiTtVW53g5CotUDV1JDXpoG+wbsvUyUUz4m/cY+7CjUTWM9IoHDhIcweatbU5AbN46Mx21eF7ERyEOBrW01cgck8s3K12yI9g+3pKtM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716303908; c=relaxed/simple; bh=35jBpkbNjMPfWH9zrYex2cRt+CwGIv4mWKFxqfhcsTg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P3zC6oaQyW/XnZ/fNpIp10GQDNzU1imLvwKfvfKdMln+Lx35ozZzEvKA4vbqurlDBREHg6wC8CY/vWQkRGDFOiTMHP1Gdskz8skPj5MKv98uWdWNImcz/Nq/oNQStdTl+P61N+5MtuqGG3lJWSQbGcIfkUf2XZoDrGX+b7Q2cvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xsSHLmGY; 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="xsSHLmGY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26F6DC32786; Tue, 21 May 2024 15:05:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716303908; bh=35jBpkbNjMPfWH9zrYex2cRt+CwGIv4mWKFxqfhcsTg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xsSHLmGY9Dhi741U4Xus4+TAK8h5/6Av0Myjx1kTcWhMLHM/5dVbCvGEH5zi+QkWR rwz7GFnO5W6tu87C081XYSGiankJEwXUxC1qeeFfMDRwCnMStg9xDbE0fo3IFbAsbP YHk3f+uQPlOGao7fYEDyPadh83O0ewCPU3hhDkHo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47382: s390/qeth: fix deadlock during failing recovery Date: Tue, 21 May 2024 17:03:59 +0200 Message-ID: <2024052143-CVE-2021-47382-87ee@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=2331; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=35jBpkbNjMPfWH9zrYex2cRt+CwGIv4mWKFxqfhcsTg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+289zTbin0OSzT6ilzsyuwC8z7fXmjKneHze8Mea4F LLskJhWRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEp4NhwSZnM95jcjH9N9M/ yR0zfj6te/b5HwzzgyPkTzHZT9gpELWo6N9bZtWNsyeWAQA= 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: s390/qeth: fix deadlock during failing recovery Commit 0b9902c1fcc5 ("s390/qeth: fix deadlock during recovery") removed taking discipline_mutex inside qeth_do_reset(), fixing potential deadlocks. An error path was missed though, that still takes discipline_mutex and thus has the original deadlock potential. Intermittent deadlocks were seen when a qeth channel path is configured offline, causing a race between qeth_do_reset and ccwgroup_remove. Call qeth_set_offline() directly in the qeth_do_reset() error case and then a new variant of ccwgroup_set_offline(), without taking discipline_mutex. The Linux kernel CVE team has assigned CVE-2021-47382 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit b41b554c1ee7 and fixed in 5.14.10 with commit 0bfe74174132 Issue introduced in 5.11 with commit b41b554c1ee7 and fixed in 5.15 with commit d2b59bd4b06d Issue introduced in 5.10.8 with commit af0c184ea106 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-2021-47382 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: arch/s390/include/asm/ccwgroup.h drivers/s390/cio/ccwgroup.c drivers/s390/net/qeth_core_main.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/0bfe741741327822d1482c7edef0184636d08b40 https://git.kernel.org/stable/c/d2b59bd4b06d84a4eadb520b0f71c62fe8ec0a62