Skip to contentSkip to conversation

CVE-2025-39777: crypto: acomp - Fix CFI failure due to type punning

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 11, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

crypto: acomp - Fix CFI failure due to type punning

To avoid a crash when control flow integrity is enabled, make the workspace ("stream") free function use a consistent type, and call it through a function pointer that has that same type.

The Linux kernel CVE team has assigned CVE-2025-39777 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.16 with commit 42d9f6c774790d290c175e8775ce9f1366438098 and fixed in 6.16.4 with commit 7ec68c59461ca846aab9b7c2b39f63ac7c8a43cf
	Issue introduced in 6.16 with commit 42d9f6c774790d290c175e8775ce9f1366438098 and fixed in 6.17-rc1 with commit 962ddc5a7a4b04c007bba0f3e7298cda13c62efd

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-39777

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/deflate.c
crypto/zstd.c
include/crypto/internal/acompress.h

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/7ec68c59461ca846aab9b7c2b39f63ac7c8a43cf
	https://git.kernel.org/stable/c/962ddc5a7a4b04c007bba0f3e7298cda13c62efd