CVE-2025-40063
Last modified
CVE-2025-40063 is a high-severity vulnerability rated 7/10 on the CVSS scale. 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). EPSS estimates a 0.17% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 42d9f6c774790d290c175e8775ce9f1366438098, < 779d3b6f2d32c5f1da6163e959abe1e1ffe2945b; >= 42d9f6c774790d290c175e8775ce9f1366438098, < f75f66683ded09f7135aef2e763c245a07c8271a |
| Linux | Linux | 6.16 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-40063?
How severe is CVE-2025-40063?
How do I fix CVE-2025-40063?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-40058In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2025-40059In the Linux kernel, the following vulnerability has been re…
- CVE-2025-4006A vulnerability classified as critical has been found in you…5.1
- CVE-2025-40060In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40061In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40062In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40064In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40065In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40066In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40067In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40068In the Linux kernel, the following vulnerability has been re…8.4
- CVE-2025-40069In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2025-40063?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
