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 93FB0142E7E for ; Tue, 21 May 2024 15:24:48 +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=1716305088; cv=none; b=UrzIVZTZTgeH8NQl4oO4sRaOH4wBdjnHXr8qRBaKj72GjrzhRvnGbHfr12vZN7rA+1QDqhP7QhTCEOR9sZn+S0NpcfSYqNv4hKuHcJdQiNlbLIQK9sjF+AKUAyDtszO07g1r48Z3aIikMeDIuJ/AztksHMau3+CYMoXuQi5rnVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305088; c=relaxed/simple; bh=tOsnAauzJfHc8ix+JOKu6YJkF0RgCo6GJBtKe2DEA+E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HZCR9YhbzYcrE4vTQtb3UBLaB7nyMLjA2gJoquRizjTmde8XPgJambNmiXuCkOoUIOWBFxQIAfqz2Onu0tpSBZzuaklhxFXQP5YN2sEwscN6nM9gq51Kfxwet/fP4Ybl0oP7cWOw3rawEHhV4hXQWS2MnW02xxVMn+16VdrpEX8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V2sEkF4V; 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="V2sEkF4V" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6704C32786; Tue, 21 May 2024 15:24:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305088; bh=tOsnAauzJfHc8ix+JOKu6YJkF0RgCo6GJBtKe2DEA+E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=V2sEkF4VBhpmQXX9xjlKxnDcY7sWIbAZ/hK8zZbUYTipthWb6gMkR90pJxwT2KSjE qqAU8Y25EeXe5bV4vuE0/BhRvSWlloaMvkHqNjgzsY1K1HADHTik0FzxZWxnvA/S41 hPIcw9iKL6ATYr+A/5MbyjDsBsNA/lt73LorXMWk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52706: gpio: sim: fix a memory leak Date: Tue, 21 May 2024 17:23:04 +0200 Message-ID: <2024052158-CVE-2023-52706-1652@gregkh> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=1727; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tOsnAauzJfHc8ix+JOKu6YJkF0RgCo6GJBtKe2DEA+E=; b=kA0DAAIRMUfUDdst+ykByyZiAGZMvFKgwzyKhmkQYRFu2u55Oui7lsQSuJY12Srto1WskhUkf YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmZMvFIACgkQMUfUDdst+ynWNACfQS7D hknRWPomeGCmnRIopnTde6IAoJZEQKxrMuHzKqamJAcY0XhPfQpx X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: gpio: sim: fix a memory leak Fix an inverted logic bug in gpio_sim_remove_hogs() that leads to GPIO hog structures never being freed. The Linux kernel CVE team has assigned CVE-2023-52706 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit cb8c474e79be and fixed in 6.1.13 with commit 854e1ecff266 Issue introduced in 5.17 with commit cb8c474e79be and fixed in 6.2 with commit 79eeab1d85e0 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-2023-52706 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/gpio/gpio-sim.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/854e1ecff266033d3149666d3c5b8b0e174b4210 https://git.kernel.org/stable/c/79eeab1d85e0fee4c0bc36f3b6ddf3920f39f74b