Bug 2337096 (CVE-2024-48876) - CVE-2024-48876 kernel: stackdepot: fix stack_depot_save_flags() in NMI context
Summary: CVE-2024-48876 kernel: stackdepot: fix stack_depot_save_flags() in NMI context
Keywords:
Status: NEW
Alias: CVE-2024-48876
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-11 13:01 UTC by OSIDB Bzimport
Modified: 2025-06-02 06:17 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-01-11 13:01:22 UTC
In the Linux kernel, the following vulnerability has been resolved:

stackdepot: fix stack_depot_save_flags() in NMI context

Per documentation, stack_depot_save_flags() was meant to be usable from
NMI context if STACK_DEPOT_FLAG_CAN_ALLOC is unset.  However, it still
would try to take the pool_lock 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 pool_lock 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.

Comment 1 Avinash Hanwate 2025-01-13 09:46:51 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025011121-CVE-2024-48876-da61@gregkh/T

Comment 3 Avinash Hanwate 2025-06-02 06:10:43 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025011121-CVE-2024-48876-da61@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.