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 1D8D92264AD for ; Fri, 23 Jan 2026 14:15:33 +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=1769177734; cv=none; b=Xz70zPS5VCZeF9olQJVXhYCyjP+2DPq8LLuVCWmofutA2+5p6xYwF7Xb8/Lqd15nsX3g9jlhRct8da5HuyHq/VcCENSlgKOB6QDYvO1EsQs7WmTo7GWXqsiU/xT1o99r8MxTWqjb7M9Tnq5MBT73YUAgjW16gpmyKcVFG3w0Du4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769177734; c=relaxed/simple; bh=A0KSjkboLe9oz7WgoZl37EmHG8MkTm5vz/TmqCsNkIY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E4mDseHDR8L0xtVojAM9nqYGtADwUWk/jzOD8fforN4bpTBK6EvY/hJuwtjA5OP4Hm0UpE4B5v3Kab9yF4/jzDzH8UAgBCBwTR2TLEHwoVB2n7hBnxZ6scdmpS2kh1zpPT53fkSR03O0p16fE9d7t0ntCCdFpQpaqHZ1/ZutNTE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=k018MJyy; 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="k018MJyy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39E44C4CEF1; Fri, 23 Jan 2026 14:15:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769177733; bh=A0KSjkboLe9oz7WgoZl37EmHG8MkTm5vz/TmqCsNkIY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=k018MJyys4Bwts6+UZnHKndcDAEi/erBO3Hfr/ThajTY5lfUJzjA7G4TsGKdgvwgq l8Dfn/YmySXb/l/SamehwTXXTEwEpu3fjamZEs8Lc1/WoyINctSN0BXFPUxSseerIs B01P7GTB1TzoI3sGzgWvoFIlKReC9P77fCJbOTCs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71147: KEYS: trusted: Fix a memory leak in tpm2_load_cmd Date: Fri, 23 Jan 2026 15:15:27 +0100 Message-ID: <2026012327-CVE-2025-71147-a296@gregkh> X-Mailer: git-send-email 2.52.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=2875; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OmvfGEpr75K5+dxhwzv4gAbs6smALKdoToi2KT9Txhg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnFTfVGsdeKTz31iX34LcXviHTgyyNHTVq/vfRQmXXj+ Tk1R5+zHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRg98Z5ikc1tZ/mMWhFH1r YYDpU8Yi9rSZ3xnmSlaK/Du6rnlekF7pviDPnELTCxI7AA== 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: KEYS: trusted: Fix a memory leak in tpm2_load_cmd 'tpm2_load_cmd' allocates a tempoary blob indirectly via 'tpm2_key_decode' but it is not freed in the failure paths. Address this by wrapping the blob into with a cleanup helper. The Linux kernel CVE team has assigned CVE-2025-71147 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit f2219745250f388edacabe6cca73654131c67d0a and fixed in 5.15.198 with commit 3fd7df4636d8fd5e3592371967a5941204368936 Issue introduced in 5.13 with commit f2219745250f388edacabe6cca73654131c67d0a and fixed in 6.1.160 with commit af0689cafb127a8d1af78cc8b72585c9b2a19ecd Issue introduced in 5.13 with commit f2219745250f388edacabe6cca73654131c67d0a and fixed in 6.6.120 with commit 19166de9737218b77122c41a5730ac87025e089f Issue introduced in 5.13 with commit f2219745250f388edacabe6cca73654131c67d0a and fixed in 6.12.64 with commit 9b015f2918b95bdde2ca9cefa10ef02b138aae1e Issue introduced in 5.13 with commit f2219745250f388edacabe6cca73654131c67d0a and fixed in 6.18.3 with commit 9e7c63c69f57b1db1a8a1542359a6167ff8fcef1 Issue introduced in 5.13 with commit f2219745250f388edacabe6cca73654131c67d0a and fixed in 6.19-rc1 with commit 62cd5d480b9762ce70d720a81fa5b373052ae05f 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-2025-71147 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: security/keys/trusted-keys/trusted_tpm2.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/3fd7df4636d8fd5e3592371967a5941204368936 https://git.kernel.org/stable/c/af0689cafb127a8d1af78cc8b72585c9b2a19ecd https://git.kernel.org/stable/c/19166de9737218b77122c41a5730ac87025e089f https://git.kernel.org/stable/c/9b015f2918b95bdde2ca9cefa10ef02b138aae1e https://git.kernel.org/stable/c/9e7c63c69f57b1db1a8a1542359a6167ff8fcef1 https://git.kernel.org/stable/c/62cd5d480b9762ce70d720a81fa5b373052ae05f