{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-42064",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-07-29T15:50:41.166Z",
        "datePublished": "2024-07-29T15:52:29.350Z",
        "dateUpdated": "2026-08-05T11:35:23.922Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:35:23.922Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Skip pipe if the pipe idx not set properly\n\n[why]\nDriver crashes when pipe idx not set properly\n\n[how]\nAdd code to skip the pipe that idx not set properly"
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The vulnerable code is reached through the DRM atomic modeset/commit path (`DRM_IOCTL_MODE_ATOMIC` → `amdgpu_dm_atomic_commit_tail` → `dc_commit_streams` → `dml2_validate`) on a local `/dev/dri/card*` device node. There is no network or remote-peer input involved in display pipe mapping.\nAC:L - No race, timing window, or unknowable memory layout is required — the attacker can repeatedly issue atomic commits with varied stream/plane/ODM/MST configurations until a DC pipe has no corresponding DML mapping entry, and the resulting `0xFFFFFFFF` index is dereferenced unconditionally.\nPR:L - An unprivileged local user with access to the DRM primary node (the standard case for a logged-in console/desktop user via logind ACLs, or the first opener on a system with no running display server) can become DRM master and drive modesets. No root or real capability in the initial namespace is needed.\nUI:N - The attacker's own process performs the atomic modeset/plane update that triggers the faulty pipe lookup; no action by any other user is required.\nS:U - The out-of-bounds accesses and the resulting crash or data disclosure are confined to the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - `dml_get_*(mode_lib, 0xFFFFFFFF)` performs a wild read roughly 4–16 GiB past the `kzalloc`'d `dml2_context`, and the value fetched is used as a second unbounded array index — an entirely unconstrained out-of-bounds read whose results propagate into `pipe_ctx` DLG/RQ/TTU state, so kernel memory contents can be disclosed rather than being a small bounded read.\nI:H - Data read from arbitrary out-of-bounds kernel addresses is written back into kernel-managed display state (`pipe_dlg_param`, `det_buffer_size_kb`, DCHUB RQ/DLG/TTU register images) and programmed into the display hardware, corrupting kernel and device state with attacker-uninfluenced arbitrary values.\nA:H - The dereference of index `0xFFFFFFFF` almost always faults on an unmapped address, producing a kernel oops inside the atomic commit tail while DC/DRM locks are held — crashing the task, wedging the display subsystem, and commonly taking down the machine."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.c"
                    ],
                    "versions": [
                        {
                            "version": "7966f319c66d9468623c6a6a017ecbc0dd79be75",
                            "lessThan": "27df59c6071470efce7182ee92fbb16afba551e0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7966f319c66d9468623c6a6a017ecbc0dd79be75",
                            "lessThan": "af114efe8d24b5711cfbedf7180f2ac1a296c24b",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.c"
                    ],
                    "versions": [
                        {
                            "version": "6.7",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.7",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.9.8",
                            "lessThanOrEqual": "6.9.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.10",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.7",
                                    "versionEndExcluding": "6.9.8"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.7",
                                    "versionEndExcluding": "6.10"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/27df59c6071470efce7182ee92fbb16afba551e0"
                },
                {
                    "url": "https://git.kernel.org/stable/c/af114efe8d24b5711cfbedf7180f2ac1a296c24b"
                }
            ],
            "title": "drm/amd/display: Skip pipe if the pipe idx not set properly",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T04:54:31.346Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://git.kernel.org/stable/c/27df59c6071470efce7182ee92fbb16afba551e0",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/af114efe8d24b5711cfbedf7180f2ac1a296c24b",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            },
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2024-42064",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-09-10T16:20:05.965221Z"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-09-11T17:33:58.552Z"
                }
            }
        ]
    }
}