CVE-2024-46705

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-46705
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46705.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-46705
Downstream
Published
2024-09-13T06:27:32Z
Modified
2025-10-15T14:24:30.985967Z
Summary
drm/xe: reset mmio mappings with devm
Details

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

drm/xe: reset mmio mappings with devm

Set our various mmio mappings to NULL. This should make it easier to catch something rogue trying to mess with mmio after device removal. For example, we might unmap everything and then start hitting some mmio address which has already been unmamped by us and then remapped by something else, causing all kinds of carnage.

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

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.10.1
v6.10.2
v6.10.3
v6.10.4
v6.10.5
v6.10.6
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

Database specific

{
    "vanir_signatures": [
        {
            "id": "CVE-2024-46705-21c29b0d",
            "signature_type": "Line",
            "target": {
                "file": "drivers/gpu/drm/xe/xe_device.c"
            },
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "194780352488346620504758487952937680985",
                    "3160553533057112030467301090711338011",
                    "210441333659198749355492083431928477040",
                    "116095677319772601332543530050834228631"
                ],
                "threshold": 0.9
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b1c9fbed3884d3883021d699c7cdf5253a65543a"
        },
        {
            "id": "CVE-2024-46705-29a93a4b",
            "signature_type": "Function",
            "target": {
                "file": "drivers/gpu/drm/xe/xe_device.c",
                "function": "xe_device_probe"
            },
            "deprecated": false,
            "digest": {
                "length": 2026.0,
                "function_hash": "103488702038111445414941804322913791236"
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b1c9fbed3884d3883021d699c7cdf5253a65543a"
        },
        {
            "id": "CVE-2024-46705-3a94d549",
            "signature_type": "Line",
            "target": {
                "file": "drivers/gpu/drm/xe/xe_mmio.h"
            },
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "301449698706574357194079636874196581123",
                    "242161503849978538562014363037763486132",
                    "105821072986638599536742293034296044229",
                    "286018567064307850473318613927063783053"
                ],
                "threshold": 0.9
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b1c9fbed3884d3883021d699c7cdf5253a65543a"
        },
        {
            "id": "CVE-2024-46705-3b939821",
            "signature_type": "Function",
            "target": {
                "file": "drivers/gpu/drm/xe/xe_mmio.c",
                "function": "xe_mmio_probe_vram"
            },
            "deprecated": false,
            "digest": {
                "length": 2341.0,
                "function_hash": "157139055995677074416401867990472536081"
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b1c9fbed3884d3883021d699c7cdf5253a65543a"
        },
        {
            "id": "CVE-2024-46705-3e56df95",
            "signature_type": "Line",
            "target": {
                "file": "drivers/gpu/drm/xe/xe_mmio.c"
            },
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "67706395077485097125114846831496867885",
                    "264651453761107985827566114082973413800",
                    "5139586999580749754196774878181800062",
                    "222241784625635280975710137081285617160",
                    "73454516405990212693724216951317936549",
                    "314739141640891266890660056476436073080",
                    "288664890923680838959047070643492719923",
                    "16754344553417305281704495642671239002",
                    "63127695984963218591349218789617676494",
                    "265690205621697539314065840860560140893",
                    "68028072928471411639824593629383457316",
                    "60545279619567953692056474752827848867",
                    "298156174787646821174635362978503354042",
                    "224792536724697755002430039576549274884",
                    "153388605931090738115378434321119375828",
                    "80649253215152351832921904085728921510",
                    "157551060165442380277582788370584018297",
                    "313844321376319419880620400117523206402",
                    "213126217587492656143067657409756999913"
                ],
                "threshold": 0.9
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b1c9fbed3884d3883021d699c7cdf5253a65543a"
        },
        {
            "id": "CVE-2024-46705-95fce0c9",
            "signature_type": "Function",
            "target": {
                "file": "drivers/gpu/drm/xe/xe_device.c",
                "function": "xe_device_probe"
            },
            "deprecated": false,
            "digest": {
                "length": 1783.0,
                "function_hash": "193145890654385615206681948388401942036"
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c7117419784f612d59ee565145f722e8b5541fe6"
        },
        {
            "id": "CVE-2024-46705-96881364",
            "signature_type": "Function",
            "target": {
                "file": "drivers/gpu/drm/xe/xe_mmio.c",
                "function": "mmio_fini"
            },
            "deprecated": false,
            "digest": {
                "length": 274.0,
                "function_hash": "118344793553882866840182624422003713549"
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c7117419784f612d59ee565145f722e8b5541fe6"
        },
        {
            "id": "CVE-2024-46705-a23822dd",
            "signature_type": "Function",
            "target": {
                "file": "drivers/gpu/drm/xe/xe_mmio.c",
                "function": "xe_mmio_probe_vram"
            },
            "deprecated": false,
            "digest": {
                "length": 2341.0,
                "function_hash": "157139055995677074416401867990472536081"
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c7117419784f612d59ee565145f722e8b5541fe6"
        },
        {
            "id": "CVE-2024-46705-a7bd7241",
            "signature_type": "Line",
            "target": {
                "file": "drivers/gpu/drm/xe/xe_mmio.c"
            },
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "67706395077485097125114846831496867885",
                    "264651453761107985827566114082973413800",
                    "5139586999580749754196774878181800062",
                    "222241784625635280975710137081285617160",
                    "73454516405990212693724216951317936549",
                    "314739141640891266890660056476436073080",
                    "288664890923680838959047070643492719923",
                    "16754344553417305281704495642671239002",
                    "63127695984963218591349218789617676494",
                    "265690205621697539314065840860560140893",
                    "68028072928471411639824593629383457316",
                    "60545279619567953692056474752827848867",
                    "298156174787646821174635362978503354042",
                    "224792536724697755002430039576549274884",
                    "153388605931090738115378434321119375828",
                    "80649253215152351832921904085728921510",
                    "157551060165442380277582788370584018297",
                    "313844321376319419880620400117523206402",
                    "213126217587492656143067657409756999913"
                ],
                "threshold": 0.9
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c7117419784f612d59ee565145f722e8b5541fe6"
        },
        {
            "id": "CVE-2024-46705-d1ccfbda",
            "signature_type": "Function",
            "target": {
                "file": "drivers/gpu/drm/xe/xe_mmio.c",
                "function": "xe_mmio_probe_tiles"
            },
            "deprecated": false,
            "digest": {
                "length": 920.0,
                "function_hash": "327163650430201247746562168782083870080"
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c7117419784f612d59ee565145f722e8b5541fe6"
        },
        {
            "id": "CVE-2024-46705-da9771e2",
            "signature_type": "Line",
            "target": {
                "file": "drivers/gpu/drm/xe/xe_device.c"
            },
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "194780352488346620504758487952937680985",
                    "3160553533057112030467301090711338011",
                    "255230540750646542938476603813751094504",
                    "277852523152434095498933734524544236049"
                ],
                "threshold": 0.9
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c7117419784f612d59ee565145f722e8b5541fe6"
        },
        {
            "id": "CVE-2024-46705-e3a04ba4",
            "signature_type": "Function",
            "target": {
                "file": "drivers/gpu/drm/xe/xe_mmio.c",
                "function": "mmio_fini"
            },
            "deprecated": false,
            "digest": {
                "length": 274.0,
                "function_hash": "118344793553882866840182624422003713549"
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b1c9fbed3884d3883021d699c7cdf5253a65543a"
        },
        {
            "id": "CVE-2024-46705-eb760092",
            "signature_type": "Function",
            "target": {
                "file": "drivers/gpu/drm/xe/xe_mmio.c",
                "function": "xe_mmio_probe_tiles"
            },
            "deprecated": false,
            "digest": {
                "length": 920.0,
                "function_hash": "327163650430201247746562168782083870080"
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b1c9fbed3884d3883021d699c7cdf5253a65543a"
        },
        {
            "id": "CVE-2024-46705-ebb1ebd1",
            "signature_type": "Line",
            "target": {
                "file": "drivers/gpu/drm/xe/xe_mmio.h"
            },
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "10692619784333558918243025211406592227",
                    "126520130769177248239878534698652504701",
                    "105821072986638599536742293034296044229",
                    "286018567064307850473318613927063783053"
                ],
                "threshold": 0.9
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c7117419784f612d59ee565145f722e8b5541fe6"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.10.7