Linux Kernel, Sleep in Atomic Context Vulnerability, CVE-2025-38388 (Critical)

Listen to this Post

How the mentioned CVE works:

The vulnerability exists within the ARM FF-A (Firmware Framework for Armv8-A) subsystem of the Linux kernel. A mutex lock was used to protect a notifier hashtable. This mutex could be called from a workqueue (ffa_pcpu_irq_notification) that runs in an atomic context, where the kernel cannot sleep. Attempting to acquire a mutex, which can cause a sleep, from this atomic context triggers a kernel warning and can lead to system instability or crashes. The fix replaces the mutex with a read-write lock (rwlock), which allows for non-sleeping read-side locking suitable for atomic contexts, while preserving exclusive access for writers.

DailyCVE Form:

Platform: Linux Kernel
Version: Up to 6.14
Vulnerability : Atomic Sleep
Severity: Critical
date: 2025-07-25

Prediction: 2025-08-01

What Undercode Say:

Analytics:

dmesg | grep "BUG: sleeping function"
cat /proc/version
find /lib/modules -name "ffa"
// Code snippet showing the lock change
// Old:
static DEFINE_MUTEX(notif_hash_lock);
// New:
static DEFINE_RWLOCK(notif_hash_lock);

How Exploit:

Triggering the specific FF-A notification from an interrupt context or the designated workqueue can cause a kernel panic, leading to a denial-of-service condition. Exploitation requires the ability to interact with the FF-A interface.

Protection from this CVE

Update the Linux kernel to a version containing the patch that replaces the mutex with an rwlock. For systems where updating is not immediately possible, consider disabling the affected ARM FF-A functionality if it is not required, through kernel configuration.

Impact:

Kernel panic, system crash, and denial-of-service. The integrity and availability of the entire system are compromised when this vulnerability is triggered.

🎯Let’s Practice Exploiting & Learn Patching For Free:

Sources:

Reported By: nvd.nist.gov
Extra Source Hub:
Undercode

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow DailyCVE & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin Featured Image

Scroll to Top