CVE-2022-50319
coresight: trbe: remove cpuhp instance node before remove cpuhp state
Check your servers for CVE-2022-50319
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50319 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
coresight: trbe: remove cpuhp instance node before remove cpuhp state
cpuhp_state_add_instance() and cpuhp_state_remove_instance() should be used in pairs. Or there will lead to the warn on cpuhp_remove_multi_state() since the cpuhp_step list is not empty.
The following is the error log with 'rmmod coresight-trbe': Error: Removing state 215 which has instances left. Call trace: __cpuhp_remove_state_cpuslocked+0x144/0x160 __cpuhp_remove_state+0xac/0x100 arm_trbe_device_remove+0x2c/0x60 [coresight_trbe] platform_remove+0x34/0x70 device_remove+0x54/0x90 device_release_driver_internal+0x1e4/0x250 driver_detach+0x5c/0xb0 bus_remove_driver+0x64/0xc0 driver_unregister+0x3c/0x70 platform_driver_unregister+0x20/0x30 arm_trbe_exit+0x1c/0x658 [coresight_trbe] __arm64_sys_delete_module+0x1ac/0x24c invoke_syscall+0x50/0x120 el0_svc_common.constprop.0+0x58/0x1a0 do_el0_svc+0x38/0xd0 el0_svc+0x2c/0xc0 el0t_64_sync_handler+0x1ac/0x1b0 el0t_64_sync+0x19c/0x1a0 ---[ end trace 0000000000000000 ]---
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.02% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3fbf7f011f2426dac8c982f1d2ef469a7959a524, before 18b9202188a4e59923834c60b5c82ea1da7d1811 affected from 3fbf7f011f2426dac8c982f1d2ef469a7959a524, before 2ea334960afcd49385840c7afd59fc5f8d3ce682 affected from 3fbf7f011f2426dac8c982f1d2ef469a7959a524, before 3c18888bc0b51835c74123b1e04d5df11543724c affected from 3fbf7f011f2426dac8c982f1d2ef469a7959a524, before 20ee8c223f792947378196307d8e707c9cdc2d61
Other versions: unaffected
|
| Linux |
affected 5.13 unaffected before 5.13 unaffected from 5.15.86 up to and including 5.15.* unaffected from 6.0.16 up to and including 6.0.* unaffected from 6.1.2 up to and including 6.1.* unaffected 6.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50319 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50319
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50319
trivy image --scanners vuln IMAGE | grep CVE-2022-50319
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/18b9202188a4e59923834c60b5c82ea1da7d1811 git.kernel.org
- https://git.kernel.org/stable/c/2ea334960afcd49385840c7afd59fc5f8d3ce682 git.kernel.org
- https://git.kernel.org/stable/c/3c18888bc0b51835c74123b1e04d5df11543724c git.kernel.org
- https://git.kernel.org/stable/c/20ee8c223f792947378196307d8e707c9cdc2d61 git.kernel.org
Source: the record CVE-2022-50319 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse