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 64B2478C6E for ; Wed, 22 May 2024 06:24:06 +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=1716359046; cv=none; b=OuaxQOQMprziltTocEqlx5f8ZRVrbwGnOE4MVxysDZx7Z64zcm35OuyJ7ZE0TJ1aNaUFoZ4mpN0LwbGdc77audPLKx+WuYj79cLpr4PRxJHidGE4ByN6Vh2IPtXA3cGbgDIfgjlnDtYMzMfJewtVEpbQ6Zi8mJGZTtgtgp3KgZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716359046; c=relaxed/simple; bh=aVp1CnzJKU45q/+t7NaapkoOR+KBZAdWUHrd4e49ZCM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Y0c4c3zcOftADdXbtfrR7DlQavrd1Q30y51PvwbIHG7rgYiPPb4OZl6flq6DEKbDYaXlgL3y4aKnAyh6QgK5v7t+oaxMwvwJcO6bkaLA95/iWMKzSQoa5AD7yEL7zpYzrTWeJ4WPAxp29nI/5EsEZdm5MotmNDkhdhdr8/mKnGc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tTRYtEPH; 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="tTRYtEPH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1213C2BD11; Wed, 22 May 2024 06:24:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716359046; bh=aVp1CnzJKU45q/+t7NaapkoOR+KBZAdWUHrd4e49ZCM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tTRYtEPHyxJ+qll8iNI8Z1f/bjcxhANCDtgtMbTEzvrLj1stAUKqs74yQ54SJOayM ZeplR5yTd9CkwAVCj58xpYw9rRMgPBJjGLuMvQm4mEvptqcGpn/uobNgw//G+KfHqY Aqk8fLQpBdNg9Ku+IPmBbGqkO9UaXdC8BEuGnFrQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47471: drm: mxsfb: Fix NULL pointer dereference crash on unload Date: Wed, 22 May 2024 08:23:37 +0200 Message-ID: <2024052228-CVE-2021-47471-3ef4@gregkh> X-Mailer: git-send-email 2.45.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=2146; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aVp1CnzJKU45q/+t7NaapkoOR+KBZAdWUHrd4e49ZCM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm+/QmKJ+dnTlyhnns2+VbdtkVC89gskm++7RIVmhFlY hdoLP+uI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZyOpRhwY2Z+rwl/5a0sMsm vVe7O8vt/D/5IwwLpmRmbe9tSdp9YZ76qlfcT3pfXz87DQA= 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: mxsfb: Fix NULL pointer dereference crash on unload The mxsfb->crtc.funcs may already be NULL when unloading the driver, in which case calling mxsfb_irq_disable() via drm_irq_uninstall() from mxsfb_unload() leads to NULL pointer dereference. Since all we care about is masking the IRQ and mxsfb->base is still valid, just use that to clear and mask the IRQ. The Linux kernel CVE team has assigned CVE-2021-47471 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit ae1ed0093281 and fixed in 5.10.76 with commit f40c2281d2c0 Issue introduced in 5.10 with commit ae1ed0093281 and fixed in 5.14.15 with commit b0e6db0656dd Issue introduced in 5.10 with commit ae1ed0093281 and fixed in 5.15 with commit 3cfc183052c3 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-2021-47471 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/mxsfb/mxsfb_drv.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/f40c2281d2c0674d32ba732fee45222d76495472 https://git.kernel.org/stable/c/b0e6db0656ddfd8bb57303c2ef61ee1c1cc694a8 https://git.kernel.org/stable/c/3cfc183052c3dbf8eae57b6c1685dab00ed3db4a