Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B33103D669B for ; Wed, 27 May 2026 12:27:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884866; cv=none; b=R140p6+FI2X69iwqixkXU/NjrNoGXK6ZVuQ4i56SPfpharlnngQtnWxlZeNYNRu6Us40KdVxantGnPrW0/3bXRm5VYzxyyUMmDAEJ5MX8avsKR+t367U7/fsT0wKQ/M8XxDr/wGo9TxGRKsSni4hxCIOejbPdqlDtQcqZ+zyx54= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884866; c=relaxed/simple; bh=sUelr8hr3uHmwosi2RldjRgsobm+hgt2r52CO3zFGoM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MhQA5digb1xcCBCZeBxaHGP3BQBAGn+diX0nKkgp09wuGJbsnSF6C0eh3D2QS/8GKTOkK0VH8lBHZz8XT7mprGiTePINESKIN5sL/iOWCgLjQI/u6eMn+h27fUPWId1xO8kUqxzNOc5dd1LGM2OhasfyTafUr9g+YrI4+UCCMbI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZNoI32ON; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ZNoI32ON" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DA4F1F000E9; Wed, 27 May 2026 12:27:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884865; bh=3YTS0cq9JSLdav2ErKcoOB2WIq2wpTmrfHbADviTDdo=; h=From:To:Cc:Subject:Date:Reply-To; b=ZNoI32ON27e1KjfvNnK1ErDf/BL5SUE8f8hX/X3A7XD5qFxHa6bw7PEUMGFVtGTEJ o5a3KjghZv6C5OhC7237sXqNel0V9+ydO6/SAm05AcF/2sQmpk5Ks2LOrpnwkrc5AR A898EckGI2EPiwVfGDPa9qPmNoj6tU/XXCB8VM/g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45976: drm/amdgpu: Fix memory leak in amdgpu_ras_init() Date: Wed, 27 May 2026 14:20:18 +0200 Message-ID: <2026052737-CVE-2026-45976-efa6@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2830; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ghC7toBN3nZkulkF3ulXLpHRQ/a2mZxSU5WhEIwFOJY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD2UP3p/6Lk/Df13dI/27V7hXPYh+sf+v9RKvTQofe o7tkLzY2BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT0V7FMM8yfvdjQz7pyx5b XHZvuTCN/f6TqtsM82u4dlXLaf1cVZ28guv4P+YXIQfljgAA 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/amdgpu: Fix memory leak in amdgpu_ras_init() When amdgpu_nbio_ras_sw_init() fails in amdgpu_ras_init(), the function returns directly without freeing the allocated con structure, leading to a memory leak. Fix this by jumping to the release_con label to properly clean up the allocated memory before returning the error code. Compile tested only. Issue found using a prototype static analysis tool and code review. The Linux kernel CVE team has assigned CVE-2026-45976 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf and fixed in 6.6.128 with commit f8a5426652bdadd4a5cb48326d48abbdfebe8153 Issue introduced in 6.4 with commit fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf and fixed in 6.12.75 with commit c11cd77a18115d2cd3f4b6915c4a537b6042f950 Issue introduced in 6.4 with commit fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf and fixed in 6.18.14 with commit 2fef8c2ac67e7c1b0409d23653300b134c63e54c Issue introduced in 6.4 with commit fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf and fixed in 6.19.4 with commit 3f43e7812b30d6b2e850218f9bb1dae60727fcef Issue introduced in 6.4 with commit fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf and fixed in 7.0 with commit ee41e5b63c8210525c936ee637a2c8d185ce873c 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-2026-45976 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/amd/amdgpu/amdgpu_ras.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/f8a5426652bdadd4a5cb48326d48abbdfebe8153 https://git.kernel.org/stable/c/c11cd77a18115d2cd3f4b6915c4a537b6042f950 https://git.kernel.org/stable/c/2fef8c2ac67e7c1b0409d23653300b134c63e54c https://git.kernel.org/stable/c/3f43e7812b30d6b2e850218f9bb1dae60727fcef https://git.kernel.org/stable/c/ee41e5b63c8210525c936ee637a2c8d185ce873c