Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

drm/amd/pm: fix double free in si_parse_power_table()

CVSS 3.1 7.8 HIGHCheck source for fixed versionsKEV status unknown

cve-program · CVE-2022-49530

Published

In the Linux kernel, the following vulnerability has been resolved: drm/amd/pm: fix double free in si_parse_power_table() In function si_parse_power_table(), array adev->pm.dpm.ps and its member is allocated. If the allocation of each member fails, the array itself is freed and returned with an error code. However, the array is later freed again in si_dpm_fini() function which is called when the function returns an error. This leads to potential double free of the array adev->pm.dpm.ps, as well as leak of its array members, since the members are not freed in the allocation function and the array is not nulled when freed. In addition adev->pm.dpm.num_ps, which keeps track of the allocated array member, is not updated until the member allocation is successfully finished, this could also lead to either use after free, or uninitialized variable access in si_dpm_fini(). Fix this by postponing the free of the array until si_dpm_fini() and increment adev->pm.dpm.num_ps everytime the array member is allocated.

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2022-49530

Published

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c"
                    ],
                    "versions": [
                        {
                            "version": "841686df9f7d2942cfd94d024b8591fa3f74ef7c",
                            "lessThan": "2615464854505188f909d0c07c37a6623693b5c7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "841686df9f7d2942cfd94d024b8591fa3f74ef7c",
                            "lessThan": "6c5bdaa1325be7f04b79ea992ab216739192d342",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "841686df9f7d2942cfd94d024b8591fa3f74ef7c",
                            "lessThan": "c0e811c4ccf3b42705976285e3a94cc82dea7300",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "841686df9f7d2942cfd94d024b8591fa3f74ef7c",
                            "lessThan": "af832028af6f44c6c45645757079c4ed6884ade5",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "841686df9f7d2942cfd94d024b8591fa3f74ef7c",
                            "lessThan": "ca1ce206894dd976275c78ee38dbc19873f22de9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "841686df9f7d2942cfd94d024b8591fa3f74ef7c",
                            "lessThan": "a5ce7051db044290b1a95045ff03c249005a3aa4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "841686df9f7d2942cfd94d024b8591fa3f74ef7c",
                            "lessThan": "fd2eff8b9dcbe469c3b7bbbc7083ab5ed94de07b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "841686df9f7d2942cfd94d024b8591fa3f74ef7c",
                            "lessThan": "43eb9b667b95f2a31c63e8949b0d2161b9be59c3",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "841686df9f7d2942cfd94d024b8591fa3f74ef7c",
                            "lessThan": "f3fa2becf2fc25b6ac7cf8d8b1a2e4a86b3b72bd",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                }

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c"
                    ],
                    "versions": [
                        {
                            "version": "4.9",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.9",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.9.318",
                            "lessThanOrEqual": "4.9.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.14.283",
                            "lessThanOrEqual": "4.14.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.247",
                            "lessThanOrEqual": "4.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.198",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.121",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.46",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.17.14",
                            "lessThanOrEqual": "5.17.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.18.3",
                            "lessThanOrEqual": "5.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.19",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 23 Nov 05:15 UTC · 274 of 275 readable · 270 fully read · documentation 469/469 current