# CVE-2022-48848: tracing/osnoise: Do not unregister events twice

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2024-07-16T12:25:16.457Z
- **Modified:** 2026-06-17T05:16:22.343Z

## Who should check

- Anyone running Linux \>= 2fac8d6486d5c34e2ec7028580142b8209da3f92, \< 4e10787d18379d9b296290c2288097feddef16d4; \>= 2fac8d6486d5c34e2ec7028580142b8209da3f92, \< f0cfe17bcc1dd2f0872966b554a148e888833ee9
- Anyone running Linux 5.16

## Description

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

tracing/osnoise: Do not unregister events twice

Nicolas reported that using:

 \# trace-cmd record -e all -M 10 -p osnoise --poll

Resulted in the following kernel warning:

 ------------\[ cut here \]------------
 WARNING: CPU: 0 PID: 1217 at kernel/tracepoint.c:404 tracepoint\_probe\_unregister+0x280/0x370
 \[...\]
 CPU: 0 PID: 1217 Comm: trace-cmd Not tainted 5.17.0-rc6-next-20220307-nico+ \#19
 RIP: 0010:tracepoint\_probe\_unregister+0x280/0x370
 \[...\]
 CR2: 00007ff919b29497 CR3: 0000000109da4005 CR4: 0000000000170ef0
 Call Trace:
  \<TASK\>
  osnoise\_workload\_stop+0x36/0x90
  tracing\_set\_tracer+0x108/0x260
  tracing\_set\_trace\_write+0x94/0xd0
  ? \_\_check\_object\_size.part.0+0x10a/0x150
  ? selinux\_file\_permission+0x104/0x150
  vfs\_write+0xb5/0x290
  ksys\_write+0x5f/0xe0
  do\_syscall\_64+0x3b/0x90
  entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
 RIP: 0033:0x7ff919a18127
 \[...\]
 ---\[ end trace 0000000000000000 \]---

The warning complains about an attempt to unregister an
unregistered tracepoint.

This happens on trace-cmd because it first stops tracing, and
then switches the tracer to nop. Which is equivalent to:

  \# cd /sys/kernel/tracing/
  \# echo osnoise \> current\_tracer
  \# echo 0 \> tracing\_on
  \# echo nop \> current\_tracer

The osnoise tracer stops the workload when no trace instance
is actually collecting data. This can be caused both by
disabling tracing or disabling the tracer itself.

To avoid unregistering events twice, use the existing
trace\_osnoise\_callback\_enabled variable to check if the events
(and the workload) are actually active before trying to
deactivate them.

## Affected and fixed versions

- Linux: \>= 2fac8d6486d5c34e2ec7028580142b8209da3f92, \< 4e10787d18379d9b296290c2288097feddef16d4; \>= 2fac8d6486d5c34e2ec7028580142b8209da3f92, \< f0cfe17bcc1dd2f0872966b554a148e888833ee9 (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48848. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48848.md
Affected: Linux >= 2fac8d6486d5c34e2ec7028580142b8209da3f92, < 4e10787d18379d9b296290c2288097feddef16d4; >= 2fac8d6486d5c34e2ec7028580142b8209da3f92, < f0cfe17bcc1dd2f0872966b554a148e888833ee9; Linux 5.16
Fixed in: Linux 4e10787d18379d9b296290c2288097feddef16d4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-48848 being exploited?

There is no confirmed exploitation: CVE-2022-48848 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-48848?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-48848?

Linux \>= 2fac8d6486d5c34e2ec7028580142b8209da3f92, \< 4e10787d18379d9b296290c2288097feddef16d4; \>= 2fac8d6486d5c34e2ec7028580142b8209da3f92, \< f0cfe17bcc1dd2f0872966b554a148e888833ee9; Linux 5.16.

### Is there a fix for CVE-2022-48848?

Yes. Fixed in Linux 4e10787d18379d9b296290c2288097feddef16d4. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-48848?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4e10787d18379d9b296290c2288097feddef16d4>
- patch: <https://git.kernel.org/stable/c/f0cfe17bcc1dd2f0872966b554a148e888833ee9>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-48848>

HTML: <https://flawdb.com/CVE-2022-48848> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-48848>
