{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-50454",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-10-01T11:38:45.640Z",
        "datePublished": "2025-10-01T11:45:27.337Z",
        "dateUpdated": "2026-08-05T08:58:51.159Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:58:51.159Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/nouveau: fix a use-after-free in nouveau_gem_prime_import_sg_table()\n\nnouveau_bo_init() is backed by ttm_bo_init() and ferries its return code\nback to the caller. On failures, ttm will call nouveau_bo_del_ttm() and\nfree the memory.Thus, when nouveau_bo_init() returns an error, the gem\nobject has already been released. Then the call to nouveau_bo_ref() will\nuse the freed \"nvbo->bo\" and lead to a use-after-free bug.\n\nWe should delete the call to nouveau_bo_ref() to avoid the use-after-free."
                }
            ],
            "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 UAF is reached only via local DRM_IOCTL_PRIME_FD_TO_HANDLE on a Nouveau render/primary node (drm_gem_prime_fd_to_handle → drm_gem_prime_import → nouveau_gem_prime_import_sg_table); there is no network or adjacent-protocol path into this GPU PRIME import code.\nAC:L - An unprivileged attacker who can open Nouveau and obtain a foreign dma-buf (common hybrid iGPU→Nouveau PRIME, v4l2, or dma-heap) can induce nouveau_bo_init/ttm_bo_init failure via GART/TTM/VMA resource exhaustion so the post-free nouveau_bo_ref() runs deterministically; this is not an attacker-uncontrollable race.\nPR:L - DRM_IOCTL_PRIME_FD_TO_HANDLE is DRM_RENDER_ALLOW and usable by an unprivileged local user with access to /dev/dri/renderD* (render/video group or seat uaccess), without real root or init-namespace admin.\nUI:N - The attacker opens the render node and issues the PRIME FD-to-handle ioctl themselves; no separate victim mount, file open, or interactive action is required.\nS:U - Impact is confined to the host kernel's Nouveau/TTM heap within the same OS security authority; this is local privilege-escalation class corruption, not a VM escape, IOMMU bypass, or sandbox boundary cross.\nC:H - On nouveau_bo_init failure, ttm already calls nouveau_bo_del_ttm()/kfree(nvbo), then the buggy nouveau_bo_ref() performs ttm_bo_put() on the freed object—a classic UAF that per guidance enables arbitrary kernel read via reclaim/spray.\nI:H - The same post-free ttm_bo_put()/kref path corrupts heap metadata and enables reuse of the freed nouveau_bo for arbitrary write and control-flow hijack primitives.\nA:H - Use-after-free on the freed TTM/GEM object produces kernel oops/panic even when not fully exploited, which scores Availability High under kernel CVSS guidance."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/gpu/drm/nouveau/nouveau_prime.c"
                    ],
                    "versions": [
                        {
                            "version": "019cbd4a4feb3aa3a917d78e7110e3011bbff6d5",
                            "lessThan": "56ee9577915dc06f55309901012a9ef68dbdb5a8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "019cbd4a4feb3aa3a917d78e7110e3011bbff6d5",
                            "lessThan": "5d6093c49c098d86c7b136aba9922df44aeb6944",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "019cbd4a4feb3aa3a917d78e7110e3011bbff6d5",
                            "lessThan": "861f085f81fd569b02cc2c11165a9e6cca144424",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "019cbd4a4feb3aa3a917d78e7110e3011bbff6d5",
                            "lessThan": "3aeda2fe6517cc52663d4ce3588dd43f0d4124a7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "019cbd4a4feb3aa3a917d78e7110e3011bbff6d5",
                            "lessThan": "7d80473e9f12548ac05b36af4fb9ce80f2f73509",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "019cbd4a4feb3aa3a917d78e7110e3011bbff6d5",
                            "lessThan": "540dfd188ea2940582841c1c220bd035a7db0e51",
                            "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/nouveau/nouveau_prime.c"
                    ],
                    "versions": [
                        {
                            "version": "5.4",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.4",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.220",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.150",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.75",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.19.17",
                            "lessThanOrEqual": "5.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0.3",
                            "lessThanOrEqual": "6.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1",
                            "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.4",
                                    "versionEndExcluding": "5.4.220"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "5.10.150"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "5.15.75"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "5.19.17"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "6.0.3"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "6.1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/56ee9577915dc06f55309901012a9ef68dbdb5a8"
                },
                {
                    "url": "https://git.kernel.org/stable/c/5d6093c49c098d86c7b136aba9922df44aeb6944"
                },
                {
                    "url": "https://git.kernel.org/stable/c/861f085f81fd569b02cc2c11165a9e6cca144424"
                },
                {
                    "url": "https://git.kernel.org/stable/c/3aeda2fe6517cc52663d4ce3588dd43f0d4124a7"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7d80473e9f12548ac05b36af4fb9ce80f2f73509"
                },
                {
                    "url": "https://git.kernel.org/stable/c/540dfd188ea2940582841c1c220bd035a7db0e51"
                }
            ],
            "title": "drm/nouveau: fix a use-after-free in nouveau_gem_prime_import_sg_table()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}