Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-40063

published high CVSS 3.1 · 7.0

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

Published
28 Oct 2025, 11:48:34 UTC
Updated
05 Aug 2026, 12:07:28 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux42d9f6c774790d290c175e8775ce9f1366438098 to < 779d3b6f2d32c5f1da6163e959abe1e1ffe2945b · 42d9f6c774790d290c175e8775ce9f1366438098 to < f75f66683ded09f7135aef2e763c245a07c8271a · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.16 (affected) · 0 to < 6.16 (unaffected · semver) · 6.17.3 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
SUSE / openSUSE openSUSE-Tumbleweed kernel-develaarch64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
Ubuntu noble linux-buildinfo-6.17.0-1011-oem Advisory build 6.17.0-1011.11 USN-8048-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develppc64le Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devels390x Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed kernel-develx86_64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devel-longtermaarch64 Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devel-longtermppc64le Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devel-longterms390x Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devel-longtermx86_64 Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosaarch64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosppc64le Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macross390x Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosx86_64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceaarch64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceppc64le Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sources390x Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourcex86_64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-longtermaarch64 Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-longtermppc64le Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-longterms390x Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-longtermx86_64 Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillaaarch64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillappc64le Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillas390x Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillax86_64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
Ubuntu noble linux-headers-6.17.0-1011-oem Advisory build 6.17.0-1011.11 USN-8048-1
Ubuntu noble linux-image-unsigned-6.17.0-1011-oem Advisory build 6.17.0-1011.11 USN-8048-1
Ubuntu noble linux-modules-6.17.0-1011-oem Advisory build 6.17.0-1011.11 USN-8048-1
Ubuntu noble linux-modules-evdi-6.17.0-1011-oem Advisory build 6.17.0-1011.11 USN-8048-1
Ubuntu noble linux-modules-ipu6-6.17.0-1011-oem Advisory build 6.17.0-1011.11 USN-8048-1
Ubuntu noble linux-modules-ipu7-6.17.0-1011-oem Advisory build 6.17.0-1011.11 USN-8048-1
Ubuntu noble linux-modules-iwlwifi-6.17.0-1011-oem Advisory build 6.17.0-1011.11 USN-8048-1
Ubuntu noble linux-modules-usbio-6.17.0-1011-oem Advisory build 6.17.0-1011.11 USN-8048-1
Ubuntu noble linux-modules-vision-6.17.0-1011-oem Advisory build 6.17.0-1011.11 USN-8048-1
Ubuntu noble linux-oem-6.17 Advisory build 6.17.0-1011.11 USN-8048-1
Ubuntu noble linux-oem-6.17-headers-6.17.0-1011 Advisory build 6.17.0-1011.11 USN-8048-1
Ubuntu noble linux-oem-6.17-tools-6.17.0-1011 Advisory build 6.17.0-1011.11 USN-8048-1
Ubuntu noble linux-tools-6.17.0-1011-oem Advisory build 6.17.0-1011.11 USN-8048-1
Ubuntu questing bpftool Advisory build 7.7.0+6.17.0-14.14 USN-8029-1
Ubuntu questing linux Advisory build 6.17.0-14.14 USN-8029-1
Ubuntu questing linux-aws Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-aws-cloud-tools-6.17.0-1007 Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-aws-headers-6.17.0-1007 Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-aws-tools-6.17.0-1007 Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-azure Advisory build 6.17.0-1008.8 USN-8029-3
Ubuntu questing linux-azure-cloud-tools-6.17.0-1008 Advisory build 6.17.0-1008.8 USN-8029-3
Ubuntu questing linux-azure-headers-6.17.0-1008 Advisory build 6.17.0-1008.8 USN-8029-3
Ubuntu questing linux-azure-tools-6.17.0-1008 Advisory build 6.17.0-1008.8 USN-8029-3
Ubuntu questing linux-buildinfo-6.17.0-1006-realtime Advisory build 6.17.0-1006.7 USN-8029-1
Ubuntu questing linux-buildinfo-6.17.0-1007-aws Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-buildinfo-6.17.0-1007-aws-64k Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-buildinfo-6.17.0-1007-gcp Advisory build 6.17.0-1007.7 USN-8030-1
Ubuntu questing linux-buildinfo-6.17.0-1007-gcp-64k Advisory build 6.17.0-1007.7 USN-8030-1
Ubuntu questing linux-buildinfo-6.17.0-1007-oracle Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-buildinfo-6.17.0-1007-oracle-64k Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-buildinfo-6.17.0-1008-azure Advisory build 6.17.0-1008.8 USN-8029-3
Ubuntu questing linux-buildinfo-6.17.0-1008-raspi Advisory build 6.17.0-1008.8 USN-8029-1
Ubuntu questing linux-buildinfo-6.17.0-14-generic Advisory build 6.17.0-14.14 USN-8029-1
Ubuntu questing linux-buildinfo-6.17.0-14-generic-64k Advisory build 6.17.0-14.14 USN-8029-1
Ubuntu questing linux-cloud-tools-6.17.0-1006-realtime Advisory build 6.17.0-1006.7 USN-8029-1
Ubuntu questing linux-cloud-tools-6.17.0-1007-aws Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-cloud-tools-6.17.0-1007-aws-64k Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-cloud-tools-6.17.0-1008-azure Advisory build 6.17.0-1008.8 USN-8029-3
Ubuntu questing linux-cloud-tools-6.17.0-14 Advisory build 6.17.0-14.14 USN-8029-1
Ubuntu questing linux-cloud-tools-6.17.0-14-generic Advisory build 6.17.0-14.14 USN-8029-1
Ubuntu questing linux-cloud-tools-common Advisory build 6.17.0-14.14 USN-8029-1
Ubuntu questing linux-gcp Advisory build 6.17.0-1007.7 USN-8030-1
Ubuntu questing linux-gcp-headers-6.17.0-1007 Advisory build 6.17.0-1007.7 USN-8030-1
Ubuntu questing linux-gcp-tools-6.17.0-1007 Advisory build 6.17.0-1007.7 USN-8030-1
Ubuntu questing linux-headers-6.17.0-1006-realtime Advisory build 6.17.0-1006.7 USN-8029-1
Ubuntu questing linux-headers-6.17.0-1007-aws Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-headers-6.17.0-1007-aws-64k Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-headers-6.17.0-1007-gcp Advisory build 6.17.0-1007.7 USN-8030-1
Ubuntu questing linux-headers-6.17.0-1007-gcp-64k Advisory build 6.17.0-1007.7 USN-8030-1
Ubuntu questing linux-headers-6.17.0-1007-oracle Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-headers-6.17.0-1007-oracle-64k Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-headers-6.17.0-1008-azure Advisory build 6.17.0-1008.8 USN-8029-3
Ubuntu questing linux-headers-6.17.0-1008-raspi Advisory build 6.17.0-1008.8 USN-8029-1
Ubuntu questing linux-headers-6.17.0-14 Advisory build 6.17.0-14.14 USN-8029-1
Ubuntu questing linux-headers-6.17.0-14-generic Advisory build 6.17.0-14.14 USN-8029-1
Ubuntu questing linux-headers-6.17.0-14-generic-64k Advisory build 6.17.0-14.14 USN-8029-1
Ubuntu questing linux-image-6.17.0-1008-raspi Advisory build 6.17.0-1008.8 USN-8029-1
Ubuntu questing linux-image-6.17.0-14-generic Advisory build 6.17.0-14.14 USN-8029-1
Ubuntu questing linux-image-unsigned-6.17.0-1006-realtime Advisory build 6.17.0-1006.7 USN-8029-1
Ubuntu questing linux-image-unsigned-6.17.0-1007-aws Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-image-unsigned-6.17.0-1007-aws-64k Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-image-unsigned-6.17.0-1007-gcp Advisory build 6.17.0-1007.7 USN-8030-1
Ubuntu questing linux-image-unsigned-6.17.0-1007-gcp-64k Advisory build 6.17.0-1007.7 USN-8030-1
Ubuntu questing linux-image-unsigned-6.17.0-1007-oracle Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-image-unsigned-6.17.0-1007-oracle-64k Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-image-unsigned-6.17.0-1008-azure Advisory build 6.17.0-1008.8 USN-8029-3
Ubuntu questing linux-image-unsigned-6.17.0-14-generic Advisory build 6.17.0-14.14 USN-8029-1
Ubuntu questing linux-image-unsigned-6.17.0-14-generic-64k Advisory build 6.17.0-14.14 USN-8029-1
Ubuntu questing linux-lib-rust-6.17.0-14-generic Advisory build 6.17.0-14.14 USN-8029-1
Ubuntu questing linux-modules-6.17.0-1006-realtime Advisory build 6.17.0-1006.7 USN-8029-1
Ubuntu questing linux-modules-6.17.0-1007-aws Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-modules-6.17.0-1007-aws-64k Advisory build 6.17.0-1007.7 USN-8029-2
Ubuntu questing linux-modules-6.17.0-1007-gcp Advisory build 6.17.0-1007.7 USN-8030-1
Ubuntu questing linux-modules-6.17.0-1007-gcp-64k Advisory build 6.17.0-1007.7 USN-8030-1
Ubuntu questing linux-modules-6.17.0-1007-oracle Advisory build 6.17.0-1007.7 USN-8029-2

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

7

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.0 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The affected algorithms (lzo, lzo-rle, lz4, lz4hc, 842, nx842) are reached only through local kernel consumers — zswap page compression, UBIFS, and boot-time crypto self-tests — via `crypto_scomp_init_tfm()`. The only remote consumer of the compression API, IPComp/xfrm, uses deflate, which is an `acomp_alg` with its own `crypto_acomp_streams` and is unaffected. AC:H - Manifestation requires a kernel built with CONFIG_RANDSTRUCT_FULL/PERFORMANCE (the default is RANDSTRUCT_NONE) *and* a per-build randomization seed that actually transposes `alloc_ctx`/`free_ctx` in the pure-ops anonymous struct. Both are fixed at compile time and entirely beyond the attacker's control, so a susceptible target must be found rather than created. PR:L - On a susceptible build, an unprivileged local process can drive the faulty path simply by generating memory pressure that makes zswap compress its pages, which triggers per-CPU `alloc_ctx()` calls in `acomp_stream_workfn()`; no capability or namespace privilege is needed. Only basic local code execution is required. UI:N - Compression is performed by the kernel as part of normal swap/filesystem operation driven by the attacker's own allocations. No victim action such as mounting a filesystem or opening a file is required. S:U - The corruption is confined to kernel memory within the same security authority; there is no VM, IOMMU, or sandbox boundary crossed. This is a standard in-kernel memory-corruption issue. C:H - The garbage return value of the mis-called `free_ctx` becomes `stream->ctx` and is used as the compression workspace, and the uncontrolled `kvfree()` corrupts the heap, yielding primitives that can be leveraged to read arbitrary kernel memory. Decompression additionally reads through the wild context pointer. I:H - `lzo1x_1_compress()` writes up to LZO1X_MEM_COMPRESS (16KB) of hash-table state through the uncontrolled `ctx` pointer, an arbitrary kernel write, and `kvfree()` on a garbage pointer is an arbitrary-free primitive enabling heap grooming and control-flow hijack. A:H - Calling `kvfree()` on an uninitialized register value and then dereferencing a wild pointer as a scratch buffer reliably produces an oops or panic; on CFI-enabled builds the type-mismatched indirect call itself panics. The system is effectively unbootable or crashes on first compression.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 42d9f6c774790d290c175e8775ce9f1366438098 to < 779d3b6f2d32c5f1da6163e959abe1e1ffe2945b (affected · git)42d9f6c774790d290c175e8775ce9f1366438098 to < f75f66683ded09f7135aef2e763c245a07c8271a (affected · git)Default: unaffected Linux · cna
Linux Linux 6.16 (affected)0 to < 6.16 (unaffected · semver)6.17.3 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
408d49bab0b1840ba2957dea4fbfd5fa34803522810ca30b98774e5bc357c921
Ingested
23 Sep 2026, 08:48:04 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected