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 193664EB50 for ; Tue, 27 Feb 2024 18:47:46 +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=1709059666; cv=none; b=RSDQ5oO+aRVT53WVd9xo2m6KghtOHhXeeiE4WlVtW9qCNSbI9fRHjdg7GOlY41L0FzWX2m0vPK/yR54aNmcf886RumnH4UiMQGwq3+Wyc1VrwkV3VhShK2yhxuvg0neZDQ1MszBjc6iKU98shtDBkNmQY38BYw23mtpPMMbcDic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709059666; c=relaxed/simple; bh=OppdhYdJn0jWMuuz4Wnqwz8GW/dZLQOjCwGFolpCW4s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rUPWIeuEGgqiaE95pU/1PICxJdp8NivdQYyjvtC1cqStIU+tpC/39YSJm0a9XHFE323Vn6HQ01XUwwne3wwDFlMzXnrApjAvWKOjq4hMQijzt2LyGEE2r2CxG1zdlrU4ZmgdfOXfiHfWa+eFReWmf0OtlYmhIM61jhQpyyJSMFE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Dc/uW/ZH; 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="Dc/uW/ZH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85957C433F1; Tue, 27 Feb 2024 18:47:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709059665; bh=OppdhYdJn0jWMuuz4Wnqwz8GW/dZLQOjCwGFolpCW4s=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Dc/uW/ZHS2wsccXxObzs83RQiWFHj2NOpnikoFoOg1qP0wBVyteHFlrDmwZwTq3he 9WYNrrRQi+ERgVuTJY6V7BDxokzEx0u81C1ZLINIY41SfPi2C4R0v6JK6a658HKP7u 1KHEMtC4+bq7x9hd+kGtkTA95yq1htbgCoOJNia0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46969: bus: mhi: core: Fix invalid error returning in mhi_queue Date: Tue, 27 Feb 2024 19:47:29 +0100 Message-ID: <2024022720-CVE-2021-46969-3263@gregkh> X-Mailer: git-send-email 2.44.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=2296; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OppdhYdJn0jWMuuz4Wnqwz8GW/dZLQOjCwGFolpCW4s=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn39CymrffKP2L7POXZvobFIrMNWPQWOsXHm99/ZnaCf 4rLQaF5HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRZCeGBf2/uJJnylwRfH6m vOiUqTJH+hTZjQzzy1rd8qWcEz0jH3M2mf2b2q6lrLIZAA== 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: bus: mhi: core: Fix invalid error returning in mhi_queue mhi_queue returns an error when the doorbell is not accessible in the current state. This can happen when the device is in non M0 state, like M3, and needs to be waken-up prior ringing the DB. This case is managed earlier by triggering an asynchronous M3 exit via controller resume/suspend callbacks, that in turn will cause M0 transition and DB update. So, since it's not an error but just delaying of doorbell update, there is no reason to return an error. This also fixes a use after free error for skb case, indeed a caller queuing skb will try to free the skb if the queueing fails, but in that case queueing has been done. The Linux kernel CVE team has assigned CVE-2021-46969 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit a8f75cb348fd and fixed in 5.12.3 with commit a99b661c3187 Issue introduced in 5.12 with commit a8f75cb348fd and fixed in 5.13 with commit 0ecc1c70dcd3 Please see https://www.kernel.org or 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-46969 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/bus/mhi/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/a99b661c3187365f81026d89b1133a76cd2652b3 https://git.kernel.org/stable/c/0ecc1c70dcd32c0f081b173a1a5d89952686f271