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 3787913EFE3 for ; Wed, 1 Oct 2025 08:07:29 +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=1759306050; cv=none; b=BX1/bhWU0OR8JmSikXTfOGr9jZ1AAvIya+Z7Dwbqg/sHffYzS0YjuODDLY1bUwXriZFGYyyongcXBE1S6MJ6kQ5Mp60tCgn4FC0Z5OSrfmvYJQ1NXfPmrSAGjcsA1J4p7e93bNdGJ6RxKhhJXqEhPYZgWyn4cIeTsrUDavCKxrk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759306050; c=relaxed/simple; bh=jl7e2Brsx5lP49jAdbHUkAFZ6UIM4k3bT8BvgNmmMf4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZnVD5xOFIgwPa8Rc4KKvkGfctknI387lf6ebMHtFhtyXrg0YclXwQhRgTjbhJqhA6CCyNNkE5FC8eTbr2VpLSR9JocPj8VvQLz8AlfNPa8WBCC4ARcUuRaFPLTd3gUQBlsfbjy9jIyOaGyKswrMjaB0c3feVEHb6CYGP/rzQ+nY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=T4K511GO; 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="T4K511GO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47EABC4CEF4; Wed, 1 Oct 2025 08:07:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759306049; bh=jl7e2Brsx5lP49jAdbHUkAFZ6UIM4k3bT8BvgNmmMf4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=T4K511GODUaWydceOIkXW60ZPctS7dnHSyBRVK67hAD9T5j/AWPLI/0vf3FKSJsTV 76q4Anc0ggGofdN1EN9ouRz0ORQFD1Bf3q6ahiAkcE12fNaf85UEulpO1jy1C03N0S OwUCq/+qxsBgdZ98HnjCUXvncT19jkvuMdRlGFnA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39924: erofs: fix invalid algorithm for encoded extents Date: Wed, 1 Oct 2025 10:07:24 +0200 Message-ID: <2025100124-CVE-2025-39924-1a11@gregkh> X-Mailer: git-send-email 2.51.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=1953; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=R8oO8qoVmDfGn9C/YPJErlJbPdNR+y5TY3N82C7nVmU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3HtrUn2U8dL5ZoeSiBc/q8u/+17fL1F7I/zzHUr1L3 S9Ub31WRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkRBfDHP5f++2b266XckTV HLZ13VzevC38CsOCaUmyK99ftInm2LZmy3Hl13tK/H/LAgA= 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: erofs: fix invalid algorithm for encoded extents The current algorithm sanity checks do not properly apply to new encoded extents. Unify the algorithm check with Z_EROFS_COMPRESSION(_RUNTIME)_MAX and ensure consistency with sbi->available_compr_algs. The Linux kernel CVE team has assigned CVE-2025-39924 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 1d191b4ca51d73699cb127386b95ac152af2b930 and fixed in 6.16.8 with commit db5d7abd379a8dcf030be8f52f99cadf7e397ba8 Issue introduced in 6.15 with commit 1d191b4ca51d73699cb127386b95ac152af2b930 and fixed in 6.17 with commit 131897c65e2b86cf14bec7379f44aa8fbb407526 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-39924 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: fs/erofs/zmap.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/db5d7abd379a8dcf030be8f52f99cadf7e397ba8 https://git.kernel.org/stable/c/131897c65e2b86cf14bec7379f44aa8fbb407526