CVE-2025-40089

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-40089
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40089.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40089
Downstream
Published
2025-10-30T09:47:57Z
Modified
2025-10-30T21:11:20.643402Z
Summary
cxl/features: Add check for no entries in cxl_feature_info
Details

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

cxl/features: Add check for no entries in cxlfeatureinfo

cxl EDAC calls cxlfeatureinfo() to get the feature information and if the hardware has no Features support, cxlfs may be passed in as NULL.

[ 51.957498] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 51.965571] #PF: supervisor read access in kernel mode [ 51.971559] #PF: errorcode(0x0000) - not-present page [ 51.977542] PGD 17e4f6067 P4D 0 [ 51.981384] Oops: Oops: 0000 [#1] SMP NOPTI [ 51.986300] CPU: 49 UID: 0 PID: 3782 Comm: systemd-udevd Not tainted 6.17.0dj test+ #64 PREEMPT(voluntary) [ 51.997355] Hardware name: <removed> [ 52.009790] RIP: 0010:cxlfeatureinfo+0xa/0x80 [cxlcore]

Add a check for cxlfs before dereferencing it and return -EOPNOTSUPP if there is no cxlfs created due to no hardware support.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
eb5dfcb9e36d0e46089fec777d911313c1876fa3
Fixed
b8a69e3b1a460bf5d96dd53cbd121aa2cd346886
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
eb5dfcb9e36d0e46089fec777d911313c1876fa3
Fixed
a375246fcf2bbdaeb1df7fa7ee5a8b884a89085e

Affected versions

v6.*

v6.14
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.15
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5
v6.15-rc6
v6.15-rc7
v6.16
v6.16-rc1
v6.16-rc2
v6.16-rc3
v6.16-rc4
v6.16-rc5
v6.16-rc6
v6.16-rc7
v6.17
v6.17-rc1
v6.17-rc2
v6.17-rc3
v6.17-rc4
v6.17-rc5
v6.17-rc6
v6.17-rc7
v6.17.1
v6.17.2
v6.17.3
v6.17.4
v6.18-rc1

Database specific

vanir_signatures

[
    {
        "id": "CVE-2025-40089-2c45af60",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "191990183656980911067520781729212425738",
            "length": 279.0
        },
        "target": {
            "file": "drivers/cxl/core/features.c",
            "function": "cxl_feature_info"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b8a69e3b1a460bf5d96dd53cbd121aa2cd346886"
    },
    {
        "id": "CVE-2025-40089-499662fd",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "220749862415803776981862779774907847980",
                "43868886440312152756810373420291314294",
                "245145765832751321753267420268758368664"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/cxl/core/features.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a375246fcf2bbdaeb1df7fa7ee5a8b884a89085e"
    },
    {
        "id": "CVE-2025-40089-9b2d9aa4",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "220749862415803776981862779774907847980",
                "43868886440312152756810373420291314294",
                "245145765832751321753267420268758368664"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/cxl/core/features.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b8a69e3b1a460bf5d96dd53cbd121aa2cd346886"
    },
    {
        "id": "CVE-2025-40089-cb956459",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "191990183656980911067520781729212425738",
            "length": 279.0
        },
        "target": {
            "file": "drivers/cxl/core/features.c",
            "function": "cxl_feature_info"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a375246fcf2bbdaeb1df7fa7ee5a8b884a89085e"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.15.0
Fixed
6.17.5