CVE-2024-36948

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-36948
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-36948.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-36948
Downstream
Published
2024-05-30T15:35:45Z
Modified
2025-10-17T06:19:31.048179Z
Summary
drm/xe/xe_migrate: Cast to output precision before multiplying operands
Details

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

drm/xe/xe_migrate: Cast to output precision before multiplying operands

Addressing potential overflow in result of multiplication of two lower precision (u32) operands before widening it to higher precision (u64).

-v2 Fix commit message and description. (Rodrigo)

(cherry picked from commit 34820967ae7b45411f8f4f737c2d63b0c608e0d7)

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

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.8.1
v6.8.2
v6.8.3
v6.8.4
v6.8.5
v6.8.6
v6.8.7
v6.8.8
v6.8.9
v6.9-rc1
v6.9-rc2
v6.9-rc3

Database specific

vanir_signatures

[
    {
        "id": "CVE-2024-36948-1f5a08cf",
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e23a904dfeb5a9e3d4ec527a365e962478cccf05",
        "target": {
            "file": "drivers/gpu/drm/xe/xe_migrate.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "285992118703289880955163455957978140222",
                "10301165651039598845912930112721434310",
                "316392157706491448631265003938254878580",
                "155695636233355762278343877554261751288",
                "67062868154917401811748475208926704987",
                "12547210149538630412702466104917677823",
                "319980942989191666725717153132240486700",
                "217469151349649279383223039406427837912",
                "62734211197955876312273789894169922668",
                "28009200735789894677711423195040715375",
                "295632940828126183646130347738701908010",
                "147758535548956816124442169170727712394",
                "122533146597134963632311352924992589672",
                "329873891999003102675264650391625446234",
                "117448995553967709278061530280772362399",
                "197312119741485787010220635565891418286"
            ],
            "threshold": 0.9
        }
    },
    {
        "id": "CVE-2024-36948-4b84303f",
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9cb46b31f3d08ed3fce86349e8c12f96d7c88717",
        "target": {
            "file": "drivers/gpu/drm/xe/xe_migrate.c",
            "function": "emit_pte"
        },
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "length": 1377.0,
            "function_hash": "280989928501062983033594594127118763311"
        }
    },
    {
        "id": "CVE-2024-36948-67b11fd2",
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9cb46b31f3d08ed3fce86349e8c12f96d7c88717",
        "target": {
            "file": "drivers/gpu/drm/xe/xe_migrate.c",
            "function": "xe_migrate_prepare_vm"
        },
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "length": 3625.0,
            "function_hash": "55417073688351493423917289806200598006"
        }
    },
    {
        "id": "CVE-2024-36948-aa17824e",
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e23a904dfeb5a9e3d4ec527a365e962478cccf05",
        "target": {
            "file": "drivers/gpu/drm/xe/xe_migrate.c",
            "function": "xe_migrate_prepare_vm"
        },
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "length": 3625.0,
            "function_hash": "55417073688351493423917289806200598006"
        }
    },
    {
        "id": "CVE-2024-36948-b0158631",
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e23a904dfeb5a9e3d4ec527a365e962478cccf05",
        "target": {
            "file": "drivers/gpu/drm/xe/xe_migrate.c",
            "function": "emit_pte"
        },
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "length": 1368.0,
            "function_hash": "83201828419608242897650111172816616135"
        }
    },
    {
        "id": "CVE-2024-36948-f953a271",
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9cb46b31f3d08ed3fce86349e8c12f96d7c88717",
        "target": {
            "file": "drivers/gpu/drm/xe/xe_migrate.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "285992118703289880955163455957978140222",
                "10301165651039598845912930112721434310",
                "316392157706491448631265003938254878580",
                "155695636233355762278343877554261751288",
                "67062868154917401811748475208926704987",
                "12547210149538630412702466104917677823",
                "319980942989191666725717153132240486700",
                "217469151349649279383223039406427837912",
                "62734211197955876312273789894169922668",
                "28009200735789894677711423195040715375",
                "295632940828126183646130347738701908010",
                "147758535548956816124442169170727712394",
                "122533146597134963632311352924992589672",
                "329873891999003102675264650391625446234",
                "117448995553967709278061530280772362399",
                "197312119741485787010220635565891418286"
            ],
            "threshold": 0.9
        }
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.8.10