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 968E03EE1C2 for ; Wed, 27 May 2026 12:23:46 +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=1779884627; cv=none; b=DgqJor7cE/hr1zyEeUQFA36SaQKvQg2EicAReWGhr68jjih4aAhVqE18tQiKrThBZHxMmBAwH0yGfMiwfTlE9s01ZYnbYshZfd3QML+ciNcDpkuy0f7//1gyYoM6lLkOVuTfUflNn3HRXvB3p8CtPq8Mq8BpWNPs+YQv2Ecqfqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884627; c=relaxed/simple; bh=edNPjEmDrqZuiX9PHA07ujzVX7NpbbWmmEcvokpViek=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YIwszciPXugicXdMtiB9MtciT9WbBQS7Uj8xlaKbZw8JP5aALIot5/IUjnIFCXBKzRs9ymBZlVnDMFmKWQMFnYhPykwYmJkVvKWs6otUMq2LeNgragyu73I9XAhKs37PvJD1F27TjMkRitAKVgaLu2gEdYuBHYK6dtNOOreilSM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=o36h/NqG; 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="o36h/NqG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D86491F000E9; Wed, 27 May 2026 12:23:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884626; bh=UNAVUq6SPKPlDc511zirtSfPIcIz0aeU1KDXHeWkSdM=; h=From:To:Cc:Subject:Date:Reply-To; b=o36h/NqG0D7I55swx0WjKIwA0UzOqVoTFqGQMn6oLuUyYFfF4wyNOxcxwwJmX3j2G 44W2XC7ghZ4eDUQ/K5MsG1kikb2c1Btx3WhFxbROXUutmIu6jYddN8GL8azVezDLKE mTZy4r2MtAPmzTbFsIsapLLfc/kJoY/C0IL7voWY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45881: soc: mediatek: svs: Fix memory leak in svs_enable_debug_write() Date: Wed, 27 May 2026 14:18:43 +0200 Message-ID: <2026052715-CVE-2026-45881-802e@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=2966; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sN6GV9136osbZjuRdoKF3im9dSlU4eVI1kjGZ9Yu7nc=; b=kA0DAAIRMUfUDdst+ykByyZiAGoW4QfIjXwyhnE+CfWIjn78ELCi3LeHmPKT9BTn7QJMTpwYX 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmoW4QcACgkQMUfUDdst+ymYlACeJ0w4 Kt9mGsdxVhatyWodNm19Q5wAoLMc1hJ3Jd1OUqL/1XfYZjQS4b8N 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: soc: mediatek: svs: Fix memory leak in svs_enable_debug_write() In svs_enable_debug_write(), the buf allocated by memdup_user_nul() is leaked if kstrtoint() fails. Fix this by using __free(kfree) to automatically free buf, eliminating the need for explicit kfree() calls and preventing leaks. [Angelo: Added missing cleanup.h inclusion] The Linux kernel CVE team has assigned CVE-2026-45881 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 13f1bbcfb5822fcaacfc652017b57b79ffcacefa and fixed in 6.1.165 with commit 47a3e372f7d68776adb749a27c0ec9058ff1b4fd Issue introduced in 6.0 with commit 13f1bbcfb5822fcaacfc652017b57b79ffcacefa and fixed in 6.6.128 with commit 06195456c4e4de3826c4ca60eca941c472f991d0 Issue introduced in 6.0 with commit 13f1bbcfb5822fcaacfc652017b57b79ffcacefa and fixed in 6.12.75 with commit a58c97828911c0b6e25d6b556789da974003efda Issue introduced in 6.0 with commit 13f1bbcfb5822fcaacfc652017b57b79ffcacefa and fixed in 6.18.14 with commit 0f6498077faa9cd89bb787bcc57063494a6f0601 Issue introduced in 6.0 with commit 13f1bbcfb5822fcaacfc652017b57b79ffcacefa and fixed in 6.19.4 with commit 6bb10466e0884b4a68d4a1f3f4bb87eeb471c18a Issue introduced in 6.0 with commit 13f1bbcfb5822fcaacfc652017b57b79ffcacefa and fixed in 7.0 with commit 6259094ee806fb813ca95894c65fb80e2ec98bf1 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-45881 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/soc/mediatek/mtk-svs.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/47a3e372f7d68776adb749a27c0ec9058ff1b4fd https://git.kernel.org/stable/c/06195456c4e4de3826c4ca60eca941c472f991d0 https://git.kernel.org/stable/c/a58c97828911c0b6e25d6b556789da974003efda https://git.kernel.org/stable/c/0f6498077faa9cd89bb787bcc57063494a6f0601 https://git.kernel.org/stable/c/6bb10466e0884b4a68d4a1f3f4bb87eeb471c18a https://git.kernel.org/stable/c/6259094ee806fb813ca95894c65fb80e2ec98bf1