Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154471; b=ogRxHgR7JqmbBfS9992X7vmATjO3fRHI4f7a1H9qRk71QcqEetf1RcLIq1Rva4drVDRM 0fzoSpfcjNaGC87QqqwCAZAQv2QUjADPI15E38bbh+UQrpdOPPhB1z1c24kvX+OfGZwX4 Wj1aylQHhNH1hxrnPoz6Jk/H/RzdQvHVw98JToHec6bEV00f2Q5Fk59U4/QEY0m/wsLCo gN3/VcSfi2FcLg3TPZCW6OEYp2VCgreJyGbpf/n9NdK3o2IVEbp6zR0Mi+e1qmK1bvN73 0eGH5QY1l9UjG2dHfiO2NmCAfhKPwNF8QMRPk3Hs4acF0tmAJXIdFD8IZ8DVKdByfiQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154471; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=xk5F5ht3n69pxEE6VwkdhjxjJYTOdm/JfPRHC6AMGnI=; b=cBkviXW/kbC9/iac767Xkdp1fMRp2aZyVSeNXGapojMBMCQSk2+FkimPGwedNh7UeN8k mfohDN9z1pquGlroVIMAWSkTYenJqTnLWX+i1SpmyMzanxz/GlW1x5OavOZHOF/OwFefJ Vzh0an5IKgKFfKtBRB/4UlxHoexY2bqXzxygSlHhjI/tSU5xngaDGVagD3v51rwmCMO88 xB6R6fDMYRz2o4mcEQJxkiw5sYIaNZOZE2z6SPSVm72Kh+1yFoUkcckQHXEVCThItHUyJ TpdLDthdUxO60W7HbtuMpeXeU5RbrvgX7BmJ9kdM+Kln+iLeKPLm4jte5mQINynV8bg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ZH8hd1lq; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0E12606A51C for ; Fri, 20 Nov 2026 06:01:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ZH8hd1lq Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DC771F000D0; Fri, 20 Nov 2026 06:01:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154471; bh=xk5F5ht3n69pxEE6VwkdhjxjJYTOdm/JfPRHC6AMGnI=; h=From:To:Cc:Subject:Date:Reply-To; b=ZH8hd1lq4mFIvMdp8c3r+iAnfE4knyf4UEqp7/sgi9+P0WZY7XR5WW2z/6uSygVvK UJQ5727C1jbkdqgVXIbovhQdKUd1QPK4aBLBnNRKvLR8kEaxOzveboOqgJRWo1do1K Guke3B3mBAAvznqmHChpB9eJtULgtsrmTHJxpMj4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99753: drm/loongson: Fix double free on BO initialization failure Date: Fri, 20 Nov 2026 06:52:19 +0100 Message-ID: <2026112021-CVE-2026-99753-8e85@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3132; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BovKfeyrgrL/rHeWONffnUE7cdcFjeFCayOvCf2aPVI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/78/b5Sde2/tL9Efw87vp7sanZjV+3rzy4pSz3ZONh T++qahh6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJSCUwzC8x8VFkCPsfWHO+ vdF3a4jW5WDhSQzzNKXevHpoJKLxZEXs3oteHwwO2Z1xAwA= 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/loongson: Fix double free on BO initialization failure If ttm_bo_init_validate() fails, it drops the buffer object's reference and cleans it up through the supplied destroy callback. lsdc_bo_destroy() releases the GEM object and frees the enclosing lsdc_bo, so freeing it again in lsdc_bo_create() causes a double free on a synchronous failure path. Let TTM own the cleanup after initialization has started and return the error directly. Keep the explicit free on drm_gem_object_init() failure, which occurs before ownership is passed to TTM. Tested on LS7A2000 by making drm_vma_offset_add() return -ENOSPC for one selected dumb-buffer creation. The error reached userspace, the destroy callback ran once, and no handle was published or tracked BO retained. Normal buffer creation, zeroing, mapping, readback and release passed. AI assistance was used for the ownership analysis, fix, fault-injection tools, build and test execution. The Linux kernel CVE team has assigned CVE-2026-99753 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit f39db26c54281da6a785259498ca74b5e470476f and fixed in 6.12.118 with commit 6ad25544f1dd24ac512e4d03b5613f4d6d40576d Issue introduced in 6.6 with commit f39db26c54281da6a785259498ca74b5e470476f and fixed in 6.18.64 with commit dd76e36520a9553a4416412aa114217541218f97 Issue introduced in 6.6 with commit f39db26c54281da6a785259498ca74b5e470476f and fixed in 7.3.5 with commit c8da4789c0c916fed4d546a2b07423151e5f9d59 Issue introduced in 6.6 with commit f39db26c54281da6a785259498ca74b5e470476f and fixed in 7.4-rc2 with commit f086dbdeb6e56510e158a853d752c6d8ed9e0674 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-99753 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/loongson/lsdc_ttm.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/6ad25544f1dd24ac512e4d03b5613f4d6d40576d https://git.kernel.org/stable/c/dd76e36520a9553a4416412aa114217541218f97 https://git.kernel.org/stable/c/c8da4789c0c916fed4d546a2b07423151e5f9d59 https://git.kernel.org/stable/c/f086dbdeb6e56510e158a853d752c6d8ed9e0674