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 EDB6D35CED2 for ; Thu, 11 Sep 2025 16:58: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=1757609887; cv=none; b=SPa9RXqL8ZFUpTSkOYZOOsBcrrCuoBRtQDMUtAWYHbgha6kES0XId8bX4SddagL8kl8mpFRFfxFHr+dxa9oSFxiaTD4WWFCyLs6ibmBvakPquBSjZ0295LOqr5gn98YMGCsKaM4N/fRpYq+sTgqIbFokShJUwfnjnP15Zc4BCTY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757609887; c=relaxed/simple; bh=MTXYmtT7PEm1/IbyxGYNKsIhoUCWmQQMDeMTAvNmESg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nm0oAxxdjkRc5rNQnfo6psqMRjkLYHmxF21LMWNdwrtu+Mu2c4CZejKmuFhh3Je3bRbghV2hEuMkAShaMRxaZViJXxYT4mgM2TtqM+WITrR0sRbtqdUGxHnoSUY+42Vj4RaJePKB4ASEugDneDCq9cJGu8hmaOrsBjV8rBNHzjI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YggZJxXE; 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="YggZJxXE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F893C4CEF0; Thu, 11 Sep 2025 16:58:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757609886; bh=MTXYmtT7PEm1/IbyxGYNKsIhoUCWmQQMDeMTAvNmESg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YggZJxXEq6AUMhtCw9HILxdps5QyL/fyJDTfXkOk39zBqJukMfcw2dFsXf8gwb/jq v+AVf+1JtChodotdwYu3z7VuKm+zyvBDoexw/jSzzUiCFtR+coqvu9xwiGTe5Uch6E Y+OOeUB8NM7fwKVsF5s/YZg3+N8F2EVg87gOp/Pk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39772: drm/hisilicon/hibmc: fix the hibmc loaded failed bug Date: Thu, 11 Sep 2025 18:56:51 +0200 Message-ID: <2025091146-CVE-2025-39772-ddb9@gregkh> X-Mailer: git-send-email 2.51.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=2955; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lYwrlxZYPoHhp3Wfaw6HeNlKYjx72BItxYJlkwub/ss=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmH/vttWG3EURnBsNng4qccP2Mj+9Zk9ZJdZuvO71+28 u4E2c/CHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRoDaGBTdffWE9JXxhT7Pa ph9h4sy/1j+9OZVhwZ6HmivmnNzBOe3iZC0jMa2KhquOcwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/hisilicon/hibmc: fix the hibmc loaded failed bug When hibmc loaded failed, the driver use hibmc_unload to free the resource, but the mutexes in mode.config are not init, which will access an NULL pointer. Just change goto statement to return, because hibnc_hw_init() doesn't need to free anything. The Linux kernel CVE team has assigned CVE-2025-39772 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit b3df5e65cc03696b0624a877d03a3ddf3ef43f52 and fixed in 5.15.190 with commit ddf1691f25345699296e642f0f59f2d464722fa3 Issue introduced in 4.14 with commit b3df5e65cc03696b0624a877d03a3ddf3ef43f52 and fixed in 6.1.149 with commit c950e1be3a24d021475b56efdb49daa7fbba63a9 Issue introduced in 4.14 with commit b3df5e65cc03696b0624a877d03a3ddf3ef43f52 and fixed in 6.6.103 with commit f93032e5d68f459601c701f6ab087b5feb3382e8 Issue introduced in 4.14 with commit b3df5e65cc03696b0624a877d03a3ddf3ef43f52 and fixed in 6.12.44 with commit a4f1b9c57092c48bdc7958abd23403ccaed437b2 Issue introduced in 4.14 with commit b3df5e65cc03696b0624a877d03a3ddf3ef43f52 and fixed in 6.16.4 with commit d3e774266c28aefab3e9db334fdf568f936cae04 Issue introduced in 4.14 with commit b3df5e65cc03696b0624a877d03a3ddf3ef43f52 and fixed in 6.17-rc3 with commit 93a08f856fcc5aaeeecad01f71bef3088588216a 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-2025-39772 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/hisilicon/hibmc/hibmc_drm_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/ddf1691f25345699296e642f0f59f2d464722fa3 https://git.kernel.org/stable/c/c950e1be3a24d021475b56efdb49daa7fbba63a9 https://git.kernel.org/stable/c/f93032e5d68f459601c701f6ab087b5feb3382e8 https://git.kernel.org/stable/c/a4f1b9c57092c48bdc7958abd23403ccaed437b2 https://git.kernel.org/stable/c/d3e774266c28aefab3e9db334fdf568f936cae04 https://git.kernel.org/stable/c/93a08f856fcc5aaeeecad01f71bef3088588216a