VDB

CVE-2025-40063

CVE-2025-40063 PUBLISHED CVSS 7 HIGH

crypto: comp - Use same definition of context alloc and free ops

Reported by linux · Published October 28, 2025

In the Linux kernel, the following vulnerability has been resolved: crypto: comp - Use same definition of context alloc and free ops In commit 42d9f6c77479 ("crypto: acomp - Move scomp stream allocation code into acomp"), the crypto_acomp_streams struct was made to rely on having the alloc_ctx and free_ctx operations defined in the same order as the scomp_alg struct. But in that same commit, the alloc_ctx and free_ctx members of scomp_alg may be randomized by structure layout randomization, since they are contained in a pure ops structure (containing only function pointers). If the pointers within scomp_alg are randomized, but those in crypto_acomp_streams are not, then the order may no longer match. This fixes the problem by removing the union from scomp_alg so that both crypto_acomp_streams and scomp_alg will share the same definition of alloc_ctx and free_ctx, ensuring they will always have the same layout.

EPSS 0.13% · 2.9th percentile

Risk scores

CVSS 3.1
7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.13%
2.9th percentile

Affected products

VendorProductVersions
LinuxLinux42d9f6c774790d290c175e8775ce9f1366438098, 42d9f6c774790d290c175e8775ce9f1366438098
LinuxLinux6.16, 0, 6.17.3
linuxlinux_kernel6.16, 6.16
LinuxLinux42d9f6c774790d290c175e8775ce9f1366438098, 42d9f6c774790d290c175e8775ce9f1366438098, 6.16

Timeline

  • Oct 28, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 28, 2025 Coalition ESS Score (4 in total, the first dated here)
  • Oct 28, 2025 CVE Published
  • Dec 5, 2025 CVE Updated
  • Dec 15, 2025 Security Advisory (104 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (95 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-40063
vulnetix vdb fixes CVE-2025-40063

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40063/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›