{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-49203",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-02-26T01:49:39.291Z",
        "datePublished": "2025-02-26T01:55:44.214Z",
        "dateUpdated": "2026-08-05T08:54:23.108Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:54:23.108Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Fix double free during GPU reset on DC streams\n\n[Why]\nThe issue only occurs during the GPU reset code path.\n\nWe first backup the current state prior to commiting 0 streams\ninternally from DM to DC. This state backup contains valid link\nencoder assignments.\n\nDC will clear the link encoder assignments as part of current state\n(but not the backup, since it was a copied before the commit) and\nfree the extra stream reference it held.\n\nDC requires that the link encoder assignments remain cleared/invalid\nprior to commiting. Since the backup still has valid assignments we\ncall the interface post reset to clear them. This routine also\nreleases the extra reference that the link encoder interface held -\nresulting in a double free (and eventually a NULL pointer dereference).\n\n[How]\nWe'll have to do a full DC commit anyway after GPU reset because\nthe stream count previously went to 0.\n\nWe don't need to retain the assignment that we had backed up, so\njust copy off of the now clean current state assignment after the\nreset has occcurred with the new link_enc_cfg_copy() interface."
                }
            ],
            "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 path runs during amdgpu GPU recovery (dm_suspend/dm_resume), which an attacker reaches by submitting a hanging job through local DRM ioctls on /dev/dri/renderD* or card nodes, not via network or adjacent protocols.\nAC:L - An attacker can reliably force a GPU hang that fails soft recovery; on affected Navi/DCN ASICs need_full_reset is always true, so recovery always suspends/resumes DCE and hits the double-free path when displays are active.\nPR:L - Submitting command submissions via AMDGPU_CS requires only unprivileged access to a DRM render/primary node (typical video/render group or Android GPU access), not real root or init-namespace admin capabilities.\nUI:N - The attacker triggers the hang and recovery themselves; no separate victim action such as mounting a filesystem or opening a crafted file is required.\nS:U - The double free corrupts kernel heap state within the same OS kernel authority and does not cross a VM, IOMMU, or other security boundary.\nC:H - Double-free of heap-allocated dc_stream_state objects creates a use-after-free that can be abused for arbitrary kernel memory disclosure once the freed object is reallocated under attacker control.\nI:H - The same heap double-free/UAF enables classic reclaim and write primitives over kernel objects, which can be leveraged for control-flow hijacking or arbitrary kernel writes.\nA:H - Even without full exploitation, the double free leads to kernel oops/NULL dereference and GPU reset failure, crashing or hanging the system."
                        }
                    ]
                }
            ],
            "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/amdgpu_dm/amdgpu_dm.c",
                        "drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c",
                        "drivers/gpu/drm/amd/display/dc/inc/link_enc_cfg.h"
                    ],
                    "versions": [
                        {
                            "version": "6d63fcc2a334f7bd15e4e9b1db50a19335d2af4f",
                            "lessThan": "bbfcdd6289ba6f00f0cd7d496946dce9f6c600ac",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6d63fcc2a334f7bd15e4e9b1db50a19335d2af4f",
                            "lessThan": "32685b32d825ca08c5dec826477332df886c4743",
                            "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/amdgpu_dm/amdgpu_dm.c",
                        "drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c",
                        "drivers/gpu/drm/amd/display/dc/inc/link_enc_cfg.h"
                    ],
                    "versions": [
                        {
                            "version": "5.17",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.17",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.17.2",
                            "lessThanOrEqual": "5.17.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.18",
                            "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": "5.17",
                                    "versionEndExcluding": "5.17.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.17",
                                    "versionEndExcluding": "5.18"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/bbfcdd6289ba6f00f0cd7d496946dce9f6c600ac"
                },
                {
                    "url": "https://git.kernel.org/stable/c/32685b32d825ca08c5dec826477332df886c4743"
                }
            ],
            "title": "drm/amd/display: Fix double free during GPU reset on DC streams",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "cvssV3_1": {
                            "scope": "UNCHANGED",
                            "version": "3.1",
                            "baseScore": 5.5,
                            "attackVector": "LOCAL",
                            "baseSeverity": "MEDIUM",
                            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
                            "integrityImpact": "NONE",
                            "userInteraction": "NONE",
                            "attackComplexity": "LOW",
                            "availabilityImpact": "HIGH",
                            "privilegesRequired": "LOW",
                            "confidentialityImpact": "NONE"
                        }
                    },
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2022-49203",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2025-10-01T19:47:11.954248Z"
                            }
                        }
                    }
                ],
                "problemTypes": [
                    {
                        "descriptions": [
                            {
                                "lang": "en",
                                "type": "CWE",
                                "cweId": "CWE-415",
                                "description": "CWE-415 Double Free"
                            }
                        ]
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-10-01T19:56:58.910Z"
                }
            }
        ]
    }
}