Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

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

CVSS 3.1 7.0 HIGHCheck source for fixed versionsKEV status unknown

cve-program · CVE-2025-40063

Published

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.

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2025-40063

Published

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "crypto/842.c",
                        "crypto/lz4.c",
                        "crypto/lz4hc.c",
                        "crypto/lzo-rle.c",
                        "crypto/lzo.c",
                        "drivers/crypto/nx/nx-common-powernv.c",
                        "drivers/crypto/nx/nx-common-pseries.c",
                        "include/crypto/internal/scompress.h"
                    ],
                    "versions": [
                        {
                            "version": "42d9f6c774790d290c175e8775ce9f1366438098",
                            "lessThan": "779d3b6f2d32c5f1da6163e959abe1e1ffe2945b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "42d9f6c774790d290c175e8775ce9f1366438098",
                            "lessThan": "f75f66683ded09f7135aef2e763c245a07c8271a",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                }

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "crypto/842.c",
                        "crypto/lz4.c",
                        "crypto/lz4hc.c",
                        "crypto/lzo-rle.c",
                        "crypto/lzo.c",
                        "drivers/crypto/nx/nx-common-powernv.c",
                        "drivers/crypto/nx/nx-common-pseries.c",
                        "include/crypto/internal/scompress.h"
                    ],
                    "versions": [
                        {
                            "version": "6.16",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.16",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.17.3",
                            "lessThanOrEqual": "6.17.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 22 Nov 23:56 UTC · 274 of 275 readable · 270 fully read · documentation 469/469 current