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 6B7C01FCC6D for ; Mon, 21 Oct 2024 19:41:52 +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=1729539712; cv=none; b=Q/8PJlzCZAlYbNcPHB3LDa2QB39rr/84vrwH2get9zFSf6dYFe3us4OVuxEc+0LN/kmv3YdqCw+nMVxsrduqezAMfGwrl+nrjeTIqAxEcx17GMKOkfFgh6wFINdhc4Ly6HmMTg/IYKccRcEVR/oZhmQTgm4pAJwgrbMLnEGHW0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729539712; c=relaxed/simple; bh=Nz6PMQgNQtThsintDPFz7bRJCRbnD7B0tXRY+J5az5I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Il7cMA0JQ3jBLkfjl+hcAn/ZsEHXNRemRQhnmd00vvr0iKPHtcxgCQsWDv7rjhXX6x8+R70pXNZbBcuMP/cGoUMpupFbYVtvqSRV6q/+1tTSxTCiqdOJvI1CD1M5AeGsUj5zV1VXdXvnBVv0uvKz8uypR3Z07Kz8Ms1ydfEYyIw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bZgX3HGk; 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="bZgX3HGk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3D55C4CEC3; Mon, 21 Oct 2024 19:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729539712; bh=Nz6PMQgNQtThsintDPFz7bRJCRbnD7B0tXRY+J5az5I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bZgX3HGkSFkqXKSXI7I+HGEbeHEjUVAu3F8ItMCNw9sha3kUu4jK0gn0OYTDfJq+k QAoorQT5o445+yk0G9vaDj+8b7BuXmQFH50QCWt4mhQbpfCniv5Vpc2LcL9y6/yQVU jQI4WppzzwJ43g+Y2a7rwCW+GJgTb+ie67FIudDg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50064: zram: free secondary algorithms names Date: Mon, 21 Oct 2024 21:40:05 +0200 Message-ID: <2024102136-CVE-2024-50064-33d1@gregkh> X-Mailer: git-send-email 2.47.0 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=2066; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Nz6PMQgNQtThsintDPFz7bRJCRbnD7B0tXRY+J5az5I=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlia3+0VOtmLWY8YrjC5HlU3tasFWu8tb6/Vf92RMGy8 nifaLVERywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkeBfDfMfcaQqyHeUmx+uy Y+4dVhBZevfDc4Z5utpavNNF/cME9Llsnl678/jTq+YAAA== 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: zram: free secondary algorithms names We need to kfree() secondary algorithms names when reset zram device that had multi-streams, otherwise we leak memory. [senozhatsky@chromium.org: kfree(NULL) is legal] Link: https://lkml.kernel.org/r/20240917013021.868769-1-senozhatsky@chromium.org The Linux kernel CVE team has assigned CVE-2024-50064 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 001d92735701 and fixed in 6.6.57 with commit 6272936fd242 Issue introduced in 6.2 with commit 001d92735701 and fixed in 6.11.4 with commit ef35cc0d15b8 Issue introduced in 6.2 with commit 001d92735701 and fixed in 6.12-rc1 with commit 684826f8271a 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-2024-50064 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/block/zram/zram_drv.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/6272936fd242ca1f784c3e21596dfb3859dff276 https://git.kernel.org/stable/c/ef35cc0d15b89dd013e1bb829fe97db7b1ab79eb https://git.kernel.org/stable/c/684826f8271ad97580b138b9ffd462005e470b99