CVE-2022-48713
perf/x86/intel/pt: Fix crash with stop filters in single-range mode
Check your servers for CVE-2022-48713
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-48713 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:
perf/x86/intel/pt: Fix crash with stop filters in single-range mode
Add a check for !buf->single before calling pt_buffer_region_size in a place where a missing check can cause a kernel crash.
Fixes a bug introduced by commit 670638477aed ("perf/x86/intel/pt: Opportunistically use single range output mode"), which added a support for PT single-range output mode. Since that commit if a PT stop filter range is hit while tracing, the kernel will crash because of a null pointer dereference in pt_handle_status due to calling pt_buffer_region_size without a ToPA configured.
The commit which introduced single-range mode guarded almost all uses of the ToPA buffer variables with checks of the buf->single variable, but missed the case where tracing was stopped by the PT hardware, which happens when execution hits a configured stop filter.
Tested that hitting a stop filter while PT recording successfully records a trace with this patch but crashes without this patch.
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.2% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 20 Jun 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 670638477aede0d7a355ced04b569214aa3feacd, before 456f041e035913fcedb275aff6f8a71dfebcd394 affected from 670638477aede0d7a355ced04b569214aa3feacd, before e83d941fd3445f660d2f43647c580a320cc384f6 affected from 670638477aede0d7a355ced04b569214aa3feacd, before feffb6ae2c80b9a8206450cdef90f5943baced99 affected from 670638477aede0d7a355ced04b569214aa3feacd, before 1d9093457b243061a9bba23543c38726e864a643
Other versions: unaffected
|
| Linux |
affected 5.5 unaffected before 5.5 unaffected from 5.10.99 up to and including 5.10.* unaffected from 5.15.22 up to and including 5.15.* unaffected from 5.16.8 up to and including 5.16.* unaffected 5.17 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-48713 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-48713
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-48713
trivy image --scanners vuln IMAGE | grep CVE-2022-48713
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/456f041e035913fcedb275aff6f8a71dfebcd394 git.kernel.org
- https://git.kernel.org/stable/c/e83d941fd3445f660d2f43647c580a320cc384f6 git.kernel.org
- https://git.kernel.org/stable/c/feffb6ae2c80b9a8206450cdef90f5943baced99 git.kernel.org
- https://git.kernel.org/stable/c/1d9093457b243061a9bba23543c38726e864a643 git.kernel.org
Source: the record CVE-2022-48713 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse