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 C093C285060 for ; Wed, 18 Jun 2025 09:35:35 +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=1750239335; cv=none; b=m8UCoEF3GJyDRCne5Uc2E56Olt6pBAziwKQQ9i6EkoG5GB6B2R7rAHppT4jKX3qv8H5+tSikhZUhrSXwxykXnLLtUK/Ok+jhhcT7GyX4YpvMbTqBuIsriMdFZcDrjSmsEzQUdrWBhh9lXHrXC5CPv1efcNhriNBPCQsHseb3Y7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750239335; c=relaxed/simple; bh=zNvRcipmbRjvmCkMHVmuUi/owo0V6/96LJ+NotrFuAI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UzZMuaN1inASk7+/Wly+aCP36aF8yxT2Y9HM5mwuTV/lMujvc6fuuY4g+DwkwsPSVE/zGjptgih/iJ/oAh9JXOntXAqj+LbO6OFO+jBxuWacuvmtDT1ZnS1HqbTiHDtDIpSG7VjFeDpx4/zxhz9BkcVcBT9PdRV3+cMtAYOZmU0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rV+iRaBr; 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="rV+iRaBr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25CA9C4CEED; Wed, 18 Jun 2025 09:35:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750239335; bh=zNvRcipmbRjvmCkMHVmuUi/owo0V6/96LJ+NotrFuAI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rV+iRaBr+pmtce+QdGk0ddt49PUCqjHOceRSOVwEmGD+835K416Bf84E+kwUDlhEb e1DnpsEbSZ+MtmSlyNmtqYRNfZQMKARfGbkbl6oJaPVshpkOLMnW6jZEdtFNKk46r7 2NOTHTLngn4k9bVVLsqtU14uea3wh1UENLR2Huxk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38068: crypto: lzo - Fix compression buffer overrun Date: Wed, 18 Jun 2025 11:34:03 +0200 Message-ID: <2025061837-CVE-2025-38068-02a8@gregkh> X-Mailer: git-send-email 2.49.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=2636; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+YYhFie8dbodZ4Ap9Ew6F/H0KZs838A0VVEUcQFmPtw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlB7R97DovND9iwy2+x++2Yf72OzKYLnMobryYJfvL/0 5vEzbakI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyn59hwSEem8n2l6ZfMHJ0 V+5o7M5epy7wm2F+ulZ06IWpTmd2njwqqX/0/7Pl7KEuAA== 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: crypto: lzo - Fix compression buffer overrun Unlike the decompression code, the compression code in LZO never checked for output overruns. It instead assumes that the caller always provides enough buffer space, disregarding the buffer length provided by the caller. Add a safe compression interface that checks for the end of buffer before each write. Use the safe interface in crypto/lzo. The Linux kernel CVE team has assigned CVE-2025-38068 to this issue. Affected and fixed versions =========================== Fixed in 5.15.185 with commit 4b173bb2c4665c23f8fcf5241c7b06dfa6b5b111 Fixed in 6.1.141 with commit a98bd864e16f91c70b2469adf013d713d04d1d13 Fixed in 6.6.93 with commit 0acdc4d6e679ba31d01e3e7e2e4124b76d6d8e2a Fixed in 6.12.31 with commit 7caad075acb634a74911830d6386c50ea12566cd Fixed in 6.14.9 with commit 167373d77c70c2b558aae3e327b115249bb2652c Fixed in 6.15 with commit cc47f07234f72cbd8e2c973cdbf2a6730660a463 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-38068 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: crypto/lzo-rle.c crypto/lzo.c include/linux/lzo.h lib/lzo/Makefile lib/lzo/lzo1x_compress.c lib/lzo/lzo1x_compress_safe.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/4b173bb2c4665c23f8fcf5241c7b06dfa6b5b111 https://git.kernel.org/stable/c/a98bd864e16f91c70b2469adf013d713d04d1d13 https://git.kernel.org/stable/c/0acdc4d6e679ba31d01e3e7e2e4124b76d6d8e2a https://git.kernel.org/stable/c/7caad075acb634a74911830d6386c50ea12566cd https://git.kernel.org/stable/c/167373d77c70c2b558aae3e327b115249bb2652c https://git.kernel.org/stable/c/cc47f07234f72cbd8e2c973cdbf2a6730660a463