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 0800313A3E8 for ; Wed, 17 Apr 2024 10:10:20 +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=1713348621; cv=none; b=YaX8Aztp7vtqQuN2fTWZZsXuGI6hGtG2WCvRlNMXYiGnyfGj/dO+ct35bRO5NuGeOx+EdP1tTJ9K7YDnP5OPf7/pbM252HpdxQC/AMV+NdDxu2y+LTu/0oklI/wK0qYU048XWwBR3Ngt0yQKLggeJ4zBING9xJb6aGWiegV/lE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713348621; c=relaxed/simple; bh=UM0bj+UVkc1XjRMwqvk75Ev65yF7n0BpEjZXbIxo6NM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PTOAdDS8Hn97akOMf+b//sukOBT0XDGDasQG1XDLirQ4Q4itdFS0XnIKrbgno06/P/0uD6h2+Em2buAkJKAJWHRrFchz8vR/NqEWfkO/LFbfvegZsYhxNbLWqPWrk5bq/ZX5H3XogNt01y0fOeZcNtP2+ScuHuded433N/L3YQk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0O89cTU+; 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="0O89cTU+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37BD6C072AA; Wed, 17 Apr 2024 10:10:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713348620; bh=UM0bj+UVkc1XjRMwqvk75Ev65yF7n0BpEjZXbIxo6NM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0O89cTU+zKsSsBZTxJLuJoR1pVoAi0Q6hO+RRq4NNKXbfvMY0VdOo3BPV4YPyKX4V AZjv1LQWEZZMaegpnhFJuHCcrdSrXdjioiL+v7g8VcG5VDsDX7p4HfsLRdR4Q+KTPn jZBRldbpJvkGDjuzjeOOSP6ILRwaX239nQALKMT8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26833: drm/amd/display: Fix memory leak in dm_sw_fini() Date: Wed, 17 Apr 2024 12:10:15 +0200 Message-ID: <2024041714-CVE-2024-26833-b435@gregkh> X-Mailer: git-send-email 2.44.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=3717; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UM0bj+UVkc1XjRMwqvk75Ev65yF7n0BpEjZXbIxo6NM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnyC9ger2B3/asodEh9R+p3vkqteYodR2efF13tY6/aJ pe+wfVQRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkvjjD/LLs/CgdcaOuf4pz Is581VkQ5ZyQxDA//spu7p6kkrrUTSnXeCJWTAxZLJcJAA== 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/amd/display: Fix memory leak in dm_sw_fini() After destroying dmub_srv, the memory associated with it is not freed, causing a memory leak: unreferenced object 0xffff896302b45800 (size 1024): comm "(udev-worker)", pid 222, jiffies 4294894636 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc 6265fd77): [] kmalloc_trace+0x29d/0x340 [] dm_dmub_sw_init+0xb4/0x450 [amdgpu] [] dm_sw_init+0x15/0x2b0 [amdgpu] [] amdgpu_device_init+0x1417/0x24e0 [amdgpu] [] amdgpu_driver_load_kms+0x15/0x190 [amdgpu] [] amdgpu_pci_probe+0x187/0x4e0 [amdgpu] [] local_pci_probe+0x3e/0x90 [] pci_device_probe+0xc3/0x230 [] really_probe+0xe2/0x480 [] __driver_probe_device+0x78/0x160 [] driver_probe_device+0x1f/0x90 [] __driver_attach+0xce/0x1c0 [] bus_for_each_dev+0x70/0xc0 [] bus_add_driver+0x112/0x210 [] driver_register+0x55/0x100 [] do_one_initcall+0x41/0x300 Fix this by freeing dmub_srv after destroying it. The Linux kernel CVE team has assigned CVE-2024-26833 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 743b9786b14a and fixed in 5.10.211 with commit b49b022f7dfc Issue introduced in 5.6 with commit 743b9786b14a and fixed in 5.15.150 with commit 33f649f1b1ce Issue introduced in 5.6 with commit 743b9786b14a and fixed in 6.1.80 with commit 58168005337e Issue introduced in 5.6 with commit 743b9786b14a and fixed in 6.6.19 with commit 10c6b90e9753 Issue introduced in 5.6 with commit 743b9786b14a and fixed in 6.7.7 with commit 541e79265ea7 Issue introduced in 5.6 with commit 743b9786b14a and fixed in 6.8 with commit bae67893578d 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-2024-26833 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/display/amdgpu_dm/amdgpu_dm.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/b49b022f7dfce85eb77d0d987008fde5c01d7857 https://git.kernel.org/stable/c/33f649f1b1cea39ed360e6c12bba4fac83118e6e https://git.kernel.org/stable/c/58168005337eabef345a872be3f87d0215ff3b30 https://git.kernel.org/stable/c/10c6b90e975358c17856a578419dc449887899c2 https://git.kernel.org/stable/c/541e79265ea7e339a7c4a462feafe9f8f996e04b https://git.kernel.org/stable/c/bae67893578d608e35691dcdfa90c4957debf1d3