From mboxrd@z Thu Jan 1 00:00:00 1970 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 1806B1D1519 for ; Mon, 21 Oct 2024 20:13:47 +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=1729541627; cv=none; b=lrT5ldDuDFfibpeGeZnNdS7qg5Nll5LSuJPlQd/t4pCHW41ac/6TtB3DVJRh7NnNNXcnpgWe8abfniZ8WpZAm56rF43vgEhEIjrePt1IHpAlQJSxXTBODUTMgSVPjcrRKKKRyK9mqwMwdRITynDaAo/W4C55WI9RH02pc783e6U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541627; c=relaxed/simple; bh=qcC0j+cxH10i7i1rShDqrcr+3ydcsU4DmQgaC7UR5Qw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XbC2h3D4/hbPZLSDRW6KRIj6EzTsUuQjI/+p53fi5TQqWxm+imG1yWf4NuDEEe7WQ+y+4Iwv9v/IB7J+zR2tTqRUZG/+zvlAiCoFkApFv1sPQR/pi1aCdQU+7fc0n51n0Q8/6+qeIurCzEAMdypdZKo45KDbSZkd1qpDtEoZ8ro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WgssBBll; 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="WgssBBll" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 903F0C4CEC3; Mon, 21 Oct 2024 20:13:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541627; bh=qcC0j+cxH10i7i1rShDqrcr+3ydcsU4DmQgaC7UR5Qw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WgssBBllCsh+R7dxUL10BPhhuguMRRl9TCjMwaCDsdXeZ3UkrFITqmNMhQcn0KCuN o9P17JJ6NFiFzpWIx8SdZWmEFZ3J1z+hitNodlFO2qT1Vff+BH+6KeDtdWU59jDX4o PKG2+JHIGdxm4Zc/arjuvfRMMBcxdHIBtCzpKstU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49024: can: m_can: pci: add missing m_can_class_free_dev() in probe/remove methods Date: Mon, 21 Oct 2024 22:06:56 +0200 Message-ID: <2024102154-CVE-2022-49024-e31a@gregkh> X-Mailer: git-send-email 2.47.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=2052; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qcC0j+cxH10i7i1rShDqrcr+3ydcsU4DmQgaC7UR5Qw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW5TkZL+uXlvy/VfK1zPNG+/WZi/Q05D9ahbz1l9I4 ohFvdX+jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIzmuGeaZTph+fGh+6l2t3 +9Y4J9btSUJxIQwLGkUPZk99kvFbP8Uj8fNyY/k+u+28AA== 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: can: m_can: pci: add missing m_can_class_free_dev() in probe/remove methods In m_can_pci_remove() and error handling path of m_can_pci_probe(), m_can_class_free_dev() should be called to free resource allocated by m_can_class_allocate_dev(), otherwise there will be memleak. The Linux kernel CVE team has assigned CVE-2022-49024 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit cab7ffc0324f and fixed in 5.15.82 with commit ea8dc27bb044 Issue introduced in 5.11 with commit cab7ffc0324f and fixed in 6.0.12 with commit 0bbb88651ef6 Issue introduced in 5.11 with commit cab7ffc0324f and fixed in 6.1 with commit 1eca1d4cc21b 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-2022-49024 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/net/can/m_can/m_can_pci.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/ea8dc27bb044e19868155e500ce397007be98656 https://git.kernel.org/stable/c/0bbb88651ef6b7fbb1bf75ec7ba69add632e834b https://git.kernel.org/stable/c/1eca1d4cc21b6d0fc5f9a390339804c0afce9439