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 264922557E for ; Tue, 27 Feb 2024 18:47:57 +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=1709059677; cv=none; b=kxA/bhvAYqksvLtU2ZwBX6N2Z6/CSVdZ174YDhcLYY6w6HwtMxLMS5+rnxQChGFXq16mmhH0eUxBmUxZf48SGO5IeHAZMPA3VrYJ1cngZfEsNdoNsxIHJbEzFRmfEObEl/aRKpCQGDIAvoDMlVf1okTVUszS1iCbsPeMcbKfg0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709059677; c=relaxed/simple; bh=NN0h3SlbDpyRxNmX2cXU842JlMcBWSHSer1YtAmTAQE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AgAp238lMCg+U7ohHvayr7EfxQoQnHD9ojJrGKNxH8NQ06JJk40IbMTShLdPV8PPUrn4mz2Xb4rkWoO40FhWLxitS2FelNolWA3dElL2Z2kI5jOxzGsVkcQvu5ydHHHQsGRYBB7FHF4GjIzynrx9ZU8S9xZcqQsin4yo7xDIe1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y0tJFep/; 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="y0tJFep/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7C24C433F1; Tue, 27 Feb 2024 18:47:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709059677; bh=NN0h3SlbDpyRxNmX2cXU842JlMcBWSHSer1YtAmTAQE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=y0tJFep/0EwLMH1lE9T+tDnQRqEU1m363G2Z06P6ZPz+M65B1/Se9Y9hROchbrZ1W HSaRqIAwBHOf4dsHkjcLCHaa29tmgli1uuS7Pd3UsEZQUSVAqR7HEYnlAT2RG0WSUD QeISDz4GnC2j9VeIcvQj4Oow9+GHjuND4BjA+8x0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46973: net: qrtr: Avoid potential use after free in MHI send Date: Tue, 27 Feb 2024 19:47:33 +0100 Message-ID: <2024022721-CVE-2021-46973-20ce@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=2395; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NN0h3SlbDpyRxNmX2cXU842JlMcBWSHSer1YtAmTAQE=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn39Cybl5w6efvr6522HaxP4qrdNnzS6Tee6MP0uejm6 S1R5U6OHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARjwMMCya8/Fc7c7+iWrHn frOY1ujE81eWSzAsWM4+b/7GvVX3dgewbchMZZn+WO3dDQA= 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: net: qrtr: Avoid potential use after free in MHI send It is possible that the MHI ul_callback will be invoked immediately following the queueing of the skb for transmission, leading to the callback decrementing the refcount of the associated sk and freeing the skb. As such the dereference of skb and the increment of the sk refcount must happen before the skb is queued, to avoid the skb to be used after free and potentially the sk to drop its last refcount.. The Linux kernel CVE team has assigned CVE-2021-46973 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 6e728f321393 and fixed in 5.10.35 with commit 48ec949ac979 Issue introduced in 5.8 with commit 6e728f321393 and fixed in 5.11.19 with commit ea474054c2cc Issue introduced in 5.8 with commit 6e728f321393 and fixed in 5.12.2 with commit 03c649dee8b1 Issue introduced in 5.8 with commit 6e728f321393 and fixed in 5.13 with commit 47a017f33943 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-46973 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: net/qrtr/mhi.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/48ec949ac979b4b42d740f67b6177797af834f80 https://git.kernel.org/stable/c/ea474054c2cc6e1284604b21361f475c7cc8c0a0 https://git.kernel.org/stable/c/03c649dee8b1eb5600212a249542a70f47a5ab40 https://git.kernel.org/stable/c/47a017f33943278570c072bc71681809b2567b3a