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 2911816EC02 for ; Fri, 12 Jul 2024 12:33:19 +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=1720787600; cv=none; b=OSH5z8INVIl+QD2IMvGFQiGV4lgfTJFFoi4y0kE4cs1Y7YoVPQqk1BC1AWjE63mT6Vn3QEnHYbHfUtzZKspr3heKCUHAASjhlT7FUt1sMdCbru4I1SPS4m9wOOJVh8HUi30yuTf+f264pketGu/cRX1knZ0Sp+7WjSjhvQ5+5Xw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787600; c=relaxed/simple; bh=Id8GDbNanRn4LGK4ge6pmCBLjwpe1CfK/SGkVswlJHA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WgzG9tOPmZxX8cOXpNlQFJUGoZ9bIW1TxglsnlVu7dMIDgXAVR/URYN4JAcLIr90TdT2isYibbKYQ4SJ5IzbVpdO/njoxTbAiXPDaWDdglhItCax3Wty6wlMm93Vpnk4gIzIc/vT+o7GPl+aHFYvNS2eT+GQvifz6hFpybGhOeU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=w+qtwb2m; 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="w+qtwb2m" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 204B1C32782; Fri, 12 Jul 2024 12:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787599; bh=Id8GDbNanRn4LGK4ge6pmCBLjwpe1CfK/SGkVswlJHA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=w+qtwb2m/00qTNmBBrmyquf+Iq8HWTxh1SFbaVW0+61vfyDypFR5KZSS12cPkslIt bmW+t2OZfAOY2THnKeJnntsMH/G3jB5uN2LdaepMQ673Lhv5jIKI3bawAC7gOObfLX MRELFVG76pEvd+g0rfpiUAN8qV54DjIq0S5lrBSQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40967: serial: imx: Introduce timeout when waiting on transmitter empty Date: Fri, 12 Jul 2024 14:32:43 +0200 Message-ID: <2024071227-CVE-2024-40967-665f@gregkh> X-Mailer: git-send-email 2.45.2 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=2130; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Id8GDbNanRn4LGK4ge6pmCBLjwpe1CfK/SGkVswlJHA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTlaIFDv+XXbfNNI07UK6B2fdFxJSsL28TDO7fa+w9y JL0LPh3RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk8CrDgparl966yR28uYrh T5On/1J/k9fa0xkWLLT1a1O0Ut7Z9fpebZvXg5wgH9kYAA== 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: serial: imx: Introduce timeout when waiting on transmitter empty By waiting at most 1 second for USR2_TXDC to be set, we avoid a potential deadlock. In case of the timeout, there is not much we can do, so we simply ignore the transmitter state and optimistically try to continue. The Linux kernel CVE team has assigned CVE-2024-40967 to this issue. Affected and fixed versions =========================== Fixed in 5.15.162 with commit 7f2b9ab6d0b2 Fixed in 6.1.96 with commit 7f9e70c68b7a Fixed in 6.6.36 with commit 982ae3376c4c Fixed in 6.9.7 with commit 53b2c9554742 Fixed in 6.10-rc1 with commit e533e4c62e99 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-40967 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: drivers/tty/serial/imx.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/7f2b9ab6d0b26f16cd38dd9fd91d51899635f7c7 https://git.kernel.org/stable/c/7f9e70c68b7ace0141fe3bc94bf7b61296b71916 https://git.kernel.org/stable/c/982ae3376c4c91590d38dc8a676c10f7df048a44 https://git.kernel.org/stable/c/53b2c95547427c358f45515a9f144efee95e3701 https://git.kernel.org/stable/c/e533e4c62e9993e62e947ae9bbec34e4c7ae81c2