CVE-2022-50319

Source
https://cve.org/CVERecord?id=CVE-2022-50319
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50319.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50319
Downstream
Published
2025-09-15T14:48:52.017Z
Modified
2026-03-20T11:47:23.883645Z
Summary
coresight: trbe: remove cpuhp instance node before remove cpuhp state
Details

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

coresight: trbe: remove cpuhp instance node before remove cpuhp state

cpuhpstateaddinstance() and cpuhpstateremoveinstance() should be used in pairs. Or there will lead to the warn on cpuhpremovemultistate() since the cpuhpstep list is not empty.

The following is the error log with 'rmmod coresight-trbe': Error: Removing state 215 which has instances left. Call trace: __cpuhpremovestate_cpuslocked+0x144/0x160 __cpuhpremovestate+0xac/0x100 armtrbedeviceremove+0x2c/0x60 [coresighttrbe] platformremove+0x34/0x70 deviceremove+0x54/0x90 devicereleasedriverinternal+0x1e4/0x250 driverdetach+0x5c/0xb0 busremovedriver+0x64/0xc0 driverunregister+0x3c/0x70 platformdriverunregister+0x20/0x30 armtrbeexit+0x1c/0x658 [coresighttrbe] __arm64sysdeletemodule+0x1ac/0x24c invokesyscall+0x50/0x120 el0svccommon.constprop.0+0x58/0x1a0 doel0svc+0x38/0xd0 el0svc+0x2c/0xc0 el0t64synchandler+0x1ac/0x1b0 el0t64sync+0x19c/0x1a0 ---[ end trace 0000000000000000 ]---

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50319.json"
}
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
3fbf7f011f2426dac8c982f1d2ef469a7959a524
Fixed
18b9202188a4e59923834c60b5c82ea1da7d1811
Fixed
2ea334960afcd49385840c7afd59fc5f8d3ce682
Fixed
3c18888bc0b51835c74123b1e04d5df11543724c
Fixed
20ee8c223f792947378196307d8e707c9cdc2d61

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50319.json"