CVE-2024-42146

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-42146
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42146.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-42146
Downstream
Published
2024-07-30T07:46:39Z
Modified
2025-10-22T00:17:56.760808Z
Summary
drm/xe: Add outer runtime_pm protection to xe_live_ktest@xe_dma_buf
Details

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

drm/xe: Add outer runtimepm protection to xelivektest@xedma_buf

Any kunit doing any memory access should get their own runtimepm outer references since they don't use the standard driver API entries. In special this dmabuf from the same driver.

Found by pre-merge CI on adding WARN calls for unprotected inner callers:

<6> [318.639739] # xedmabufkunit: running xetestdmabufimportsamedriver <4> [318.639957] ------------[ cut here ]------------ <4> [318.639967] xe 0000:4d:00.0: Missing outer runtime PM protection <4> [318.640049] WARNING: CPU: 117 PID: 3832 at drivers/gpu/drm/xe/xepm.c:533 xepmruntimeget_noresume+0x48/0x60 [xe]

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
dd08ebf6c3525a7ea2186e636df064ea47281987
Fixed
0888d15ea45ba8ef4508edd1123ea5ad95b58994
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dd08ebf6c3525a7ea2186e636df064ea47281987
Fixed
f9116f658a6217b101e3b4e89f845775b6fb05d9

Affected versions

v6.*

v6.7
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7
v6.9.1
v6.9.2
v6.9.3
v6.9.4
v6.9.5
v6.9.6
v6.9.7
v6.9.8

Database specific

vanir_signatures

[
    {
        "id": "CVE-2024-42146-0c5ee94d",
        "signature_type": "Function",
        "signature_version": "v1",
        "digest": {
            "length": 264.0,
            "function_hash": "89980021665895548938689578335540877037"
        },
        "target": {
            "function": "dma_buf_run_device",
            "file": "drivers/gpu/drm/xe/tests/xe_dma_buf.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0888d15ea45ba8ef4508edd1123ea5ad95b58994",
        "deprecated": false
    },
    {
        "id": "CVE-2024-42146-5046c88c",
        "signature_type": "Line",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "89731343533711215118330797514860071790",
                "309456414459601570153267419811212578826",
                "115178060315331410379186984745796248863",
                "134613329854071517906467259565143133222",
                "260690878350042540950065822091365663494",
                "152690209143230410938731088176325632147",
                "284834041767312964738005140055835697011",
                "326750805855358960972533522442389734015",
                "134243364063598008447173799838443456155",
                "261908435986055427871557147715895012077",
                "336366540866054868168840152909212866526"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/gpu/drm/xe/tests/xe_dma_buf.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0888d15ea45ba8ef4508edd1123ea5ad95b58994",
        "deprecated": false
    },
    {
        "id": "CVE-2024-42146-90858729",
        "signature_type": "Line",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "89731343533711215118330797514860071790",
                "309456414459601570153267419811212578826",
                "115178060315331410379186984745796248863",
                "134613329854071517906467259565143133222",
                "260690878350042540950065822091365663494",
                "152690209143230410938731088176325632147",
                "284834041767312964738005140055835697011",
                "326750805855358960972533522442389734015",
                "134243364063598008447173799838443456155",
                "261908435986055427871557147715895012077",
                "336366540866054868168840152909212866526"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/gpu/drm/xe/tests/xe_dma_buf.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f9116f658a6217b101e3b4e89f845775b6fb05d9",
        "deprecated": false
    },
    {
        "id": "CVE-2024-42146-a430b2de",
        "signature_type": "Function",
        "signature_version": "v1",
        "digest": {
            "length": 264.0,
            "function_hash": "89980021665895548938689578335540877037"
        },
        "target": {
            "function": "dma_buf_run_device",
            "file": "drivers/gpu/drm/xe/tests/xe_dma_buf.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f9116f658a6217b101e3b4e89f845775b6fb05d9",
        "deprecated": false
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.9.9