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 2B7C432FA00 for ; Mon, 5 Jan 2026 09:33:21 +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=1767605602; cv=none; b=PSmXu0wpB3dfkYEAm4mkP+df6zu/pBPLI3ZK0Vktq/YW26Ab9CxL2HJF/bYXnzsrwu6uIs1Tr/ZPdlCiWnjrr/OP/kg6darLRvnTRcJDDF9zyW7PoqAN3UdPUn3rT2U55sMrEQWtah0LXCVSG1x3tGbknhJSaTgc77FZyxa81i0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767605602; c=relaxed/simple; bh=iyZ2boWpYWrGplEsf+nBN7+5HkmPcNkAsMUO3Rlexgg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aGWjoRpgq5jkUzO2UwTnyVGAgNmAggVLBx7kWoHCB70Pt4c8bXG6CNCsmYpA8bmN0N26xkTLB2R1DnPqZFuSe2a0Gsn9rW7UOySuURbQ8NNxalA/Rb/QPCRBEW8sei8roVLnrCZDI74aRpEQmoDos6ngCcqlW0sIBegKYRqX58U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UqFQ/FKV; 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="UqFQ/FKV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9DA3C116D0; Mon, 5 Jan 2026 09:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767605599; bh=iyZ2boWpYWrGplEsf+nBN7+5HkmPcNkAsMUO3Rlexgg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=UqFQ/FKVWr2s73EHdB1aJt+KhmUJOy0TUpuwgMaBzcgk0pBpItdY2RSBg6LjUotL1 YX6Y8LgOzx+dcGIWZXahuCS0UvjNtw+oMsRjMdNVOLYDkUEJKD4EdF/PutoNsWYFgn RmpERZa+qksY0B7HtpL+P9jRQwT/OOfBRzn0ekoI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68754: rtc: amlogic-a4: fix double free caused by devm Date: Mon, 5 Jan 2026 10:32:50 +0100 Message-ID: <2026010549-CVE-2025-68754-7189@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=2396; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6zhMgBwM9ej6ra3rH4lnOj4PxpSWcVOsz/g1Eataihc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnRrY5741NnP9OKublAfNuW0P6pazPDzA4ktNpVeDd7c c2t/PqwI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACay9zzDfI8zt46e6t21/BL7 XslDZtVR99prPjIsWOTpLqWfkP9LXcu7YKqOc+hcqXxpAA== 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: rtc: amlogic-a4: fix double free caused by devm The clock obtained via devm_clk_get_enabled() is automatically managed by devres and will be disabled and freed on driver detach. Manually calling clk_disable_unprepare() in error path and remove function causes double free. Remove the redundant clk_disable_unprepare() calls from the probe error path and aml_rtc_remove(), allowing the devm framework to automatically manage the clock lifecycle. The Linux kernel CVE team has assigned CVE-2025-68754 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit c89ac9182ee297597f1c6971045382bae19c3f9d and fixed in 6.17.13 with commit 9fed02c16488050cd4e33e045506336b216d7301 Issue introduced in 6.13 with commit c89ac9182ee297597f1c6971045382bae19c3f9d and fixed in 6.18.2 with commit 2e1c79299036614ac32b251d145fad5391f4bcab Issue introduced in 6.13 with commit c89ac9182ee297597f1c6971045382bae19c3f9d and fixed in 6.19-rc1 with commit 384150d7a5b60c1086790a8ee07b0629f906cca2 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-68754 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/rtc/rtc-amlogic-a4.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/9fed02c16488050cd4e33e045506336b216d7301 https://git.kernel.org/stable/c/2e1c79299036614ac32b251d145fad5391f4bcab https://git.kernel.org/stable/c/384150d7a5b60c1086790a8ee07b0629f906cca2