CVE-2022-49322
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, a vulnerability (CVE-2022-49322) was discovered related to tracing functionality when using PREEMPT_RT kernel. The issue occurs when setting bootparams="trace_event=initcall:initcall_start tp_printk=1" in the cmdline. The vulnerability was identified when output_printk() called spin_lock_irqsave() in atomic and irq disable interrupt context situations (Kernel Git).

Technical details

The technical issue arises because on PREEMPT_RT kernel, the locks are replaced with sleepable rt-spinlock. When spin_lock_irqsave() is called in the atomic and irq disable interrupt context, it triggers a stack calltrace. The bug manifests as a "sleeping function called from invalid context" error at kernel/locking/spinlock_rt.c:46, with in_atomic(): 1, irqs_disabled(): 0, non_block: 0 conditions (NVD).

Impact

When triggered, this vulnerability causes a sleeping function to be called from an invalid context in the Linux kernel's tracing subsystem. This can lead to system instability and potential kernel panics, particularly affecting systems running with PREEMPT_RT kernel configurations (Kernel Git).

Mitigation and workarounds

The issue has been fixed by replacing spin_lock_irqsave() with raw_spin_lock_irqsave() when PREEMPT_RT is enabled and the specific trace events are configured. The fix involves modifying the kernel's trace.c file to use RAW_SPINLOCK instead of regular SPINLOCK for the tracepoint_iter_lock (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68753HIGH7.8
  • Linux KernelLinux Kernel
  • linux-fips
NoYesJan 05, 2026
CVE-2025-68756HIGH7.1
  • Linux KernelLinux Kernel
  • linux-gcp-fips
NoYesJan 05, 2026
CVE-2025-68764MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-oracle-6.8
NoYesJan 05, 2026
CVE-2025-68758MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-nvidia-6.8
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • kernel-devel
NoYesJan 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management