Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-49764

MEDIUM 5.5EPSS 11%

bpf: Prevent bpf program recursion for raw tracepoint probes

Mitigation

  • Upgrade Linux to 05b24ff9b2cfabfcfd951daaa915a036ab53c9e1 or later.

Who should check

  • Anyone running Linux >= c4f6699dfcb8558d138fe838f741b2c10f416cf9, < 2e5399879024fedd6cdc41f73fbf9bbe7208f899; >= c4f6699dfcb8558d138fe838f741b2c10f416cf9, < 05b24ff9b2cfabfcfd951daaa915a036ab53c9e1
  • Anyone running Linux 4.17

Vulnerability facts

Affected
Linux >= c4f6699dfcb8558d138fe838f741b2c10f416cf9, < 2e5399879024fedd6cdc41f73fbf9bbe7208f899; >= c4f6699dfcb8558d138fe838f741b2c10f416cf9, < 05b24ff9b2cfabfcfd951daaa915a036ab53c9e1; Linux 4.17
Fixed in
Linux 2e5399879024fedd6cdc41f73fbf9bbe7208f899, Linux 05b24ff9b2cfabfcfd951daaa915a036ab53c9e1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.26% chance of exploitation in 30 days (percentile 11, 2026-11-26)
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Prevent bpf program recursion for raw tracepoint probes We got report from sysbot [1] about warnings that were caused by bpf program attached to contention_begin raw tracepoint triggering the same tracepoint by using bpf_trace_printk helper that takes trace_printk_lock lock. Call Trace: <TASK> ? trace_event_raw_event_bpf_trace_printk+0x5f/0x90 bpf_trace_printk+0x2b/0xe0 bpf_prog_a9aec6167c091eef_prog+0x1f/0x24 bpf_trace_run2+0x26/0x90 native_queued_spin_lock_slowpath+0x1c6/0x2b0 _raw_spin_lock_irqsave+0x44/0x50 bpf_trace_printk+0x3f/0xe0 bpf_prog_a9aec6167c091eef_prog+0x1f/0x24 bpf_trace_run2+0x26/0x90 native_queued_spin_lock_slowpath+0x1c6/0x2b0 _raw_spin_lock_irqsave+0x44/0x50 bpf_trace_printk+0x3f/0xe0 bpf_prog_a9aec6167c091eef_prog+0x1f/0x24 bpf_trace_run2+0x26/0x90 native_queued_spin_lock_slowpath+0x1c6/0x2b0 _raw_spin_lock_irqsave+0x44/0x50 bpf_trace_printk+0x3f/0xe0 bpf_prog_a9aec6167c091eef_prog+0x1f/0x24 bpf_trace_run2+0x26/0x90 native_queued_spin_lock_slowpath+0x1c6/0x2b0 _raw_spin_lock_irqsave+0x44/0x50 __unfreeze_partials+0x5b/0x160 ... The can be reproduced by attaching bpf program as raw tracepoint on contention_begin tracepoint. The bpf prog calls bpf_trace_printk helper. Then by running perf bench the spin lock code is forced to take slow path and call contention_begin tracepoint. Fixing this by skipping execution of the bpf program if it's already running, Using bpf prog 'active' field, which is being currently used by trampoline programs for the same reason. Moving bpf_prog_inc_misses_counter to syscall.c because trampoline.c is compiled in just for CONFIG_BPF_JIT option. [1] https://lore.kernel.org/bpf/YxhFe3EwqchC%2FfYf@krava/T/#t

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= c4f6699dfcb8558d138fe838f741b2c10f416cf9, < 2e5399879024fedd6cdc41f73fbf9bbe7208f899; >= c4f6699dfcb8558d138fe838f741b2c10f416cf9, < 05b24ff9b2cfabfcfd951daaa915a036ab53c9e1—cvelist
Linux4.17—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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

Details: https://flawdb.com/CVE-2022-49764.md
Affected: Linux >= c4f6699dfcb8558d138fe838f741b2c10f416cf9, < 2e5399879024fedd6cdc41f73fbf9bbe7208f899; >= c4f6699dfcb8558d138fe838f741b2c10f416cf9, < 05b24ff9b2cfabfcfd951daaa915a036ab53c9e1; Linux 4.17
Fixed in: Linux 2e5399879024fedd6cdc41f73fbf9bbe7208f899, Linux 05b24ff9b2cfabfcfd951daaa915a036ab53c9e1

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.

References

FAQ

Is CVE-2022-49764 being exploited?

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

How serious is CVE-2022-49764?

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

Which versions are affected by CVE-2022-49764?

Linux >= c4f6699dfcb8558d138fe838f741b2c10f416cf9, < 2e5399879024fedd6cdc41f73fbf9bbe7208f899; >= c4f6699dfcb8558d138fe838f741b2c10f416cf9, < 05b24ff9b2cfabfcfd951daaa915a036ab53c9e1; Linux 4.17.

Is there a fix for CVE-2022-49764?

Yes. Fixed in Linux 2e5399879024fedd6cdc41f73fbf9bbe7208f899, Linux 05b24ff9b2cfabfcfd951daaa915a036ab53c9e1. Upgrade Linux to 05b24ff9b2cfabfcfd951daaa915a036ab53c9e1 or later.

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

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.

Sponsors