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 9862B1A3163 for ; Wed, 26 Feb 2025 01:58:31 +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=1740535111; cv=none; b=HLPMD9MQTObGjwkp3VDTIx/L4xesDHZ+d7I6KazIcAZiSOSGXwXKBQ+OHrJZ3i3DvKRNSnSiQD4rS/qSJm1uvMNqsM85iUDIz65dkZ+zvhUy4/HJorV8KwPwH31hHxW0pOwbHYV/1EKNY9iKbpqGBdbDITbMjPWeENpy6gFADb4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535111; c=relaxed/simple; bh=ay2mfifY2jNKATimZm85kYwV5AIPGP7ZwBpPLqDPrhM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aUmY+SK0D2UWWT0Z8bCK8pxyzFNkxP2vqw/jAff7TEz+ahVAq87yAHpVItoazfFgHbqGUjP5UwSWU8+j0vhVISYO5pDefVC/DSn6D9PfhvOEoeO5klNFO3zIqMAmAR7Bp0eHUGzOTIUa5/u9vVOO5lRCOXOMvUxce9rlif1LdzA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eGHaTRDu; 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="eGHaTRDu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63E93C4CEDD; Wed, 26 Feb 2025 01:58:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535111; bh=ay2mfifY2jNKATimZm85kYwV5AIPGP7ZwBpPLqDPrhM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eGHaTRDuEKvXuli6UjwzuaiWmgumO6eQWDIJxqOlRMTSBwUfF5uDZGaq9A+UPjdKx orylzmOBlh7KcHYrSQ9sfD1RRlA6HyQDldGJg/5/ba+2I/cY4rRmV+Lcbc1QI7/MqO S6LEWduDEcmv6nbw20wHh8Fa5pURqOIoYc5eD5AU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49125: drm/sprd: fix potential NULL dereference Date: Wed, 26 Feb 2025 02:55:30 +0100 Message-ID: <2025022604-CVE-2022-49125-5909@gregkh> X-Mailer: git-send-email 2.48.1 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=1837; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ay2mfifY2jNKATimZm85kYwV5AIPGP7ZwBpPLqDPrhM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Smy2a62uWHSb/UjWjuBZf9JP+9d6XJRenHF2xgPO+ riUPvaNHTEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR2cEMMw6WuZ/V+3FaXl05 W/9nqNnFfQ9OMSy4sLHUWPDMIia+oyq7pijdmVT+pjUIAA== 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: drm/sprd: fix potential NULL dereference 'drm' could be null in sprd_drm_shutdown, and drm_warn maybe dereference it, remove this warning log. v1 -> v2: - Split checking platform_get_resource() return value to a separate patch - Use dev_warn() instead of removing the warning log The Linux kernel CVE team has assigned CVE-2022-49125 to this issue. Affected and fixed versions =========================== Fixed in 5.17.3 with commit c3acc8db1bc221604e2db9807f01d8a44b97a64d Fixed in 5.18 with commit 8668658aebb0a19d877d5a81c004baf716c4aaa6 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-49125 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/gpu/drm/sprd/sprd_drm.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/c3acc8db1bc221604e2db9807f01d8a44b97a64d https://git.kernel.org/stable/c/8668658aebb0a19d877d5a81c004baf716c4aaa6