CVE-2024-48876: stackdepot: fix stack_depot_save_flags() in NMI context
In the Linux kernel, the following vulnerability has been resolved:
stackdepot: fix stackdepotsaveflags() in NMI context
Per documentation, stackdepotsaveflags() was meant to be usable from NMI context if STACKDEPOTFLAGCANALLOC is unset. However, it still would try to take the poollock in an attempt to save a stack trace in the current pool (if space is available).
This could result in deadlock if an NMI is handled while poollock is already held. To avoid deadlock, only try to take the lock in NMI context and give up if unsuccessful.
The documentation is fixed to clearly convey this.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-48876?
CVE-2024-48876 is considered a moderate severity vulnerability in the Linux kernel.
What systems are affected by CVE-2024-48876?
CVE-2024-48876 affects the Linux kernel, particularly in cases involving NMI context.
What is the impact of CVE-2024-48876?
The impact of CVE-2024-48876 relates to improper handling of certain flags in NMI context which could affect system stability.
How do I fix CVE-2024-48876?
To fix CVE-2024-48876, update your Linux kernel to the latest version that includes the patch for this vulnerability.
Is there a workaround for CVE-2024-48876?
There are no known workarounds for CVE-2024-48876; updating the kernel is required to mitigate the risk.