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 7CAF9384230 for ; Thu, 25 Jun 2026 08:46:36 +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=1782377197; cv=none; b=QTQVtCWzue6y1IiWq637TkGOeYuM3K5C25w4Tn8Ux6zfvp4ieBOAbLfFdMtOXd/9SdUwyMo9ahHpmJuM95biKQLG0q5xRmjSpj7Oqs5YVPfkx3zgJiYeL78+uAsaws04Z5vTifnecHB1wEK1c3YlMegJAPuaZVxDq4xqi17XgoI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377197; c=relaxed/simple; bh=pvjZWAyWIqPHlEWJ5oiFMlqfeNbjXX6U1KLIT4wbNW8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ju98UTDjVYs+wPsIv10BEzQJilNIWb53WJcW9TnQ1n4UsW+A4SL69So5y6fe02scGiQfHNg/sBNGa1k4INN+zOySyYzbEpbqeNcN2ubXBikAPBew1dgepgntRS+f4KieOB+kPtJ32Wq9UW4z/JcIwXsUpoHyCbnOPn9hPU83jC0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IwcUYG0L; 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="IwcUYG0L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 792081F000E9; Thu, 25 Jun 2026 08:46:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377196; bh=l8eSGbaZbY+LSdHn2ATFu6HXVxWEgNeoXfAC/9Neh8M=; h=From:To:Cc:Subject:Date:Reply-To; b=IwcUYG0L2QK03M/HhMB5kaNX/KcF14fwvMCpYoALzEJB1jMM60OlO3JmUje3hqXUn ZlIPJZdn5AdZTwlg/e+3NTyKuaEfST1/SuZGdVW0SMJAHQifwO02FDGxWwfNagw7Qy AALs9/WPtEBQyfEL3CWU6QrTP7bZJesYIMCYlh3Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53210: tee: shm: fix shm leak in register_shm_helper() Date: Thu, 25 Jun 2026 09:40:58 +0100 Message-ID: <2026062503-CVE-2026-53210-7fd4@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=2499; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uhjGKmN1265jWX8MAoy3UvruLUTcP25ZGzfAAADjEy0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2L5N1eHrVZ54L27DD199UOCFu19w55dxnNmp8X/Z/d 8UCPb4LHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRsq8M872DuCv8WVn8v3Zt PXnto90lp88yrAzzQzvTE6f9utN6Tvid14sr2f+m7yxyBwA= 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: tee: shm: fix shm leak in register_shm_helper() register_shm_helper() allocates shm before calling iov_iter_npages(). If iov_iter_npages() returns 0, the function jumps to err_ctx_put and leaks shm. This can be triggered by TEE_IOC_SHM_REGISTER with struct tee_ioctl_shm_register_data where length is 0. Jump to err_free_shm instead. The Linux kernel CVE team has assigned CVE-2026-53210 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 7bdee41575919773818e525ea19e54eb817770af and fixed in 6.12.94 with commit 4277759906b44d923a38c8f59f5576501b187b0d Issue introduced in 6.8 with commit 7bdee41575919773818e525ea19e54eb817770af and fixed in 6.18.36 with commit c10c9c48b2903f41ed4c532043b0576e86228236 Issue introduced in 6.8 with commit 7bdee41575919773818e525ea19e54eb817770af and fixed in 7.0.13 with commit dbf779db927414f5b37c1f666013e9b48a88cfde Issue introduced in 6.8 with commit 7bdee41575919773818e525ea19e54eb817770af and fixed in 7.1 with commit 26682f5efc276e3ad96d102019472bfbf03833b2 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-53210 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/tee/tee_shm.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/4277759906b44d923a38c8f59f5576501b187b0d https://git.kernel.org/stable/c/c10c9c48b2903f41ed4c532043b0576e86228236 https://git.kernel.org/stable/c/dbf779db927414f5b37c1f666013e9b48a88cfde https://git.kernel.org/stable/c/26682f5efc276e3ad96d102019472bfbf03833b2