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 6E04E64D for ; Thu, 27 Mar 2025 16:45:55 +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=1743093955; cv=none; b=CoVFJaI0iv65rGem+/hCeIlWYOY2QT6WUvs5PhKw6ivhCH9V9yJLZXOmagICwQ71nAAwJLviZYglEgowhLZtj4o+hjAxKxNU1ww7wVlK5J5h0CMHNSUV98dF14G3776yJwKoAW3Z3a3cgLSyf/xGnLSVj0oS8U4mlp55O3HL/xM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093955; c=relaxed/simple; bh=SI9W71YzdSW3WbK81QdKBicmWvqHKeNTH6G6VM+3ulg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NQttyvM5OjwZM+oQF43u0yFXAqeRw7f5DuVTwtS6eisoUhAuPXhbqS03L3hccBEBRFkqUIhx4LQ1yRs8ubUiGKQt67VwlLTREd7Xg9VaSJXR9cfUMJ0y1D005OU47tIxi9RYeshVgqN6yJa2FLorZjZHCNn8fA4dAm4oNc2R8jg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YZ6MKfFo; 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="YZ6MKfFo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D50EEC4CEDD; Thu, 27 Mar 2025 16:45:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093955; bh=SI9W71YzdSW3WbK81QdKBicmWvqHKeNTH6G6VM+3ulg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YZ6MKfFo8EdmFhf49WXmVHHKJ8sWkeIzXTT36FTEs+NLATUamImQZufu2OH9e4vLm NxEjgUwZsWU98+k+fncV5GATVCHT2fBpaHEYWMgWt92/4Gn54JCqvPbYWSChqiNSi9 teSKvHR346Tfv67OBYKJonL6NhHhZLT2CfcMkAiE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53003: EDAC/qcom: Do not pass llcc_driv_data as edac_device_ctl_info's pvt_info Date: Thu, 27 Mar 2025 17:43:50 +0100 Message-ID: <2025032712-CVE-2023-53003-8256@gregkh> X-Mailer: git-send-email 2.49.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=2901; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SI9W71YzdSW3WbK81QdKBicmWvqHKeNTH6G6VM+3ulg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPGxTOfqzmSJi78nfmSt2LT8oL28+VrcueuK0kMYE3Q KP54cYjHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRejeGBUd+F9kxiGRkKeyX P1rcyzfv2bTOrwwLNpodDrBbulb75Pwm29K/QVdSFL/uAwA= 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: EDAC/qcom: Do not pass llcc_driv_data as edac_device_ctl_info's pvt_info The memory for llcc_driv_data is allocated by the LLCC driver. But when it is passed as the private driver info to the EDAC core, it will get freed during the qcom_edac driver release. So when the qcom_edac driver gets probed again, it will try to use the freed data leading to the use-after-free bug. Hence, do not pass llcc_driv_data as pvt_info but rather reference it using the platform_data pointer in the qcom_edac driver. The Linux kernel CVE team has assigned CVE-2023-53003 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit 27450653f1db0b9d5b5048a246c850c52ee4aa61 and fixed in 5.4.231 with commit 66e10d5f399629ef7877304d9ba2b35d0474e7eb Issue introduced in 4.20 with commit 27450653f1db0b9d5b5048a246c850c52ee4aa61 and fixed in 5.10.166 with commit 76d9ebb7f0bc10fbc78b6d576751552edf743968 Issue introduced in 4.20 with commit 27450653f1db0b9d5b5048a246c850c52ee4aa61 and fixed in 5.15.91 with commit bff5243bd32661cf9ce66f6d9210fc8f89bda145 Issue introduced in 4.20 with commit 27450653f1db0b9d5b5048a246c850c52ee4aa61 and fixed in 6.1.9 with commit 6f0351d0c311951b8b3064db91e61841e85b2b96 Issue introduced in 4.20 with commit 27450653f1db0b9d5b5048a246c850c52ee4aa61 and fixed in 6.2 with commit 977c6ba624f24ae20cf0faee871257a39348d4a9 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-2023-53003 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/edac/qcom_edac.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/66e10d5f399629ef7877304d9ba2b35d0474e7eb https://git.kernel.org/stable/c/76d9ebb7f0bc10fbc78b6d576751552edf743968 https://git.kernel.org/stable/c/bff5243bd32661cf9ce66f6d9210fc8f89bda145 https://git.kernel.org/stable/c/6f0351d0c311951b8b3064db91e61841e85b2b96 https://git.kernel.org/stable/c/977c6ba624f24ae20cf0faee871257a39348d4a9