From mboxrd@z Thu Jan 1 00:00:00 1970 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 BCE7D1BD9D5 for ; Fri, 31 Jan 2025 11:31:57 +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=1738323117; cv=none; b=QMgg5iWazDed+OjgNQFIk5GnQR9+kMTUP53RvsEFgGuE/eVYF1gpCE/0raKGKxurJlCV0nXuRR6XtlGW7ZeF2kKICRE0oHpqOHT6/c9kgDqWp62hgweHrL58vcZyN3tIhc6266Qif17+clVtkSnRJJQbsViXSquX+lD+77aEFTQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738323117; c=relaxed/simple; bh=dwV7k+ZW2XJs0TFKZMXvED3lro/6OH7F0QECGjQ0v28=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=de9JVb9UGylQRZRi4hjYrb1U10l3kaBSmUI/vpXdfZnw6nbq7tiQKbcPIWjVb7uxUuMHiMPuKstc7tlDWmQlyO7GA8iBkqBvneLdEMAHXTRXkLl+mXRXjnasBHD7/mthbJoLxvRtQ1cG0w7SaVXzpp5ECHhUV1Cy6SZNW50tbLo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GJ0mRKf+; 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="GJ0mRKf+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFE63C4CEE1; Fri, 31 Jan 2025 11:31:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1738323117; bh=dwV7k+ZW2XJs0TFKZMXvED3lro/6OH7F0QECGjQ0v28=; h=From:To:Cc:Subject:Date:Reply-to:From; b=GJ0mRKf+0TEwa78CVccUK+dl31vtzPZt65QPOUxSCCT+1UbJoSW4vmA1ibeUqGlWd SzZeCgk3a2JYchwmVB/oEv9FYM5TUPF8ax6eNPo9strSyKayUsV3VwZKC8/nQHBL4C Xpx09hyxrn60azhlZJmQ5FSDyJ/9dEENgygbJ9Yc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21671: zram: fix potential UAF of zram table Date: Fri, 31 Jan 2025 12:31:03 +0100 Message-ID: <2025013159-CVE-2025-21671-c4b0@gregkh> X-Mailer: git-send-email 2.48.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=2269; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dwV7k+ZW2XJs0TFKZMXvED3lro/6OH7F0QECGjQ0v28=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlzthRb6S1QSZ7G8L80+xO/hOnZ/cw3jv4XdYv68V5/e X79dIEvHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRxToM8wveVumfXLz2/mzb h4yap+/qR1n+l2SYpxG2d39B0v8NDlPuib2dJm3isHEDGwA= 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: fix potential UAF of zram table If zram_meta_alloc failed early, it frees allocated zram->table without setting it NULL. Which will potentially cause zram_meta_free to access the table if user reset an failed and uninitialized device. The Linux kernel CVE team has assigned CVE-2025-21671 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.122 with commit ac3b5366b9b7c9d97b606532ceab43d2329a22f3 and fixed in 6.1.127 with commit fe3de867f94819ba0f28e035c0b0182150147d95 Issue introduced in 6.6.68 with commit 0b5b0b65561b34e6e360de317e4bcd031bfabf42 and fixed in 6.6.74 with commit 571d3f6045cd3a6d9f6aec33b678f3ffe97582ef Issue introduced in 6.12.7 with commit 6fb92e9a52e3feae309a213950f21dfcd1eb0b40 and fixed in 6.12.11 with commit 902ef8f16d5ca77edc77c30656be54186c1e99b7 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-21671 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/fe3de867f94819ba0f28e035c0b0182150147d95 https://git.kernel.org/stable/c/571d3f6045cd3a6d9f6aec33b678f3ffe97582ef https://git.kernel.org/stable/c/902ef8f16d5ca77edc77c30656be54186c1e99b7 https://git.kernel.org/stable/c/212fe1c0df4a150fb6298db2cfff267ceaba5402