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 338FA54911 for ; Fri, 17 May 2024 13:42:02 +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=1715953323; cv=none; b=TkkBHZSqBUZt6PbEZOcURT4pfD6y7ecNKXYh79Wm45P2ca9WeqDv1PzBp1SmVLDbs6EtgLssuJd/VaUTJcNW8qrKITrHKqM7uDRWCSIhHASXmEh+4TEKQHSyClgBagsNK2RtCWDtIDZTnBEX+FcKWy8oUHgWl9L6dLwFbqU7h+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715953323; c=relaxed/simple; bh=FRnzDz9tsC1LcplOnsyXBnnooX02+UTbBZ7niDEZUrE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QfEFcZqpwXXP5TamaDH5+TvHylJHseEYwUNVj6CHY8Drxwv5zj98rJIqPa7bTXSjS5LPpSf7lvSiTe5/ldCuByRbQPEH7LK1WCINcwb8Hq0wa49XLpoE2+ajCQryNRMtfbvEQwvBebxLMwKBPnmktk6okhP/zba+NiAfm0d5qBE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=w5dHXRWC; 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="w5dHXRWC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F55AC2BD10; Fri, 17 May 2024 13:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715953322; bh=FRnzDz9tsC1LcplOnsyXBnnooX02+UTbBZ7niDEZUrE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=w5dHXRWCefvJmPNTPXsz2PM9j/btKFflJHTwfssbyaF3ViFi3+Dw3aFq7l8WYCHyE y59F5vMrKh5vE7sRnbOS70zhfx7HSNxuNUdNubD+NRfTSxe5BrEScfhM4gUqBtpGLM NfBpn4wBpROP3o/vc8N/p9lZpfdOTQ6KBtYMlCJI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35829: drm/lima: fix a memleak in lima_heap_alloc Date: Fri, 17 May 2024 15:41:44 +0200 Message-ID: <2024051741-CVE-2024-35829-2457@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=2592; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FRnzDz9tsC1LcplOnsyXBnnooX02+UTbBZ7niDEZUrE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnucVPnP8tS4uDZ+0Ts5FMNhd9nzhy6EHRhzZNCV+lVw tfePWO174hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJMHEzzNPYnWdvqhvWWfFQ XvnajQVnZW0OJzIsOCe9myv+Skh2jXq08vR57S89ytTmAgA= 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/lima: fix a memleak in lima_heap_alloc When lima_vm_map_bo fails, the resources need to be deallocated, or there will be memleaks. The Linux kernel CVE team has assigned CVE-2024-35829 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 6aebc51d7aef and fixed in 5.10.214 with commit f2e80ac9344a Issue introduced in 5.7 with commit 6aebc51d7aef and fixed in 5.15.153 with commit 746606d37d66 Issue introduced in 5.7 with commit 6aebc51d7aef and fixed in 6.1.83 with commit f6d51a91b417 Issue introduced in 5.7 with commit 6aebc51d7aef and fixed in 6.6.23 with commit 8e25c0ee5665 Issue introduced in 5.7 with commit 6aebc51d7aef and fixed in 6.7.11 with commit 4ab14eccf557 Issue introduced in 5.7 with commit 6aebc51d7aef and fixed in 6.8.2 with commit ec6bb037e4a3 Issue introduced in 5.7 with commit 6aebc51d7aef and fixed in 6.9 with commit 04ae3eb470e5 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-35829 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/lima/lima_gem.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/f2e80ac9344aebbff576453d5c0290b332e187ed https://git.kernel.org/stable/c/746606d37d662c70ae1379fc658ee9c65f06880f https://git.kernel.org/stable/c/f6d51a91b41704704e395de6839c667b0f810bbf https://git.kernel.org/stable/c/8e25c0ee5665e8a768b8e21445db1f86e9156eb7 https://git.kernel.org/stable/c/4ab14eccf5578af1dd5668a5f2d771df27683cab https://git.kernel.org/stable/c/ec6bb037e4a35fcbb5cd7bc78242d034ed893fcd https://git.kernel.org/stable/c/04ae3eb470e52a3c41babe85ff8cee195e4dcbea