# CVE-2024-48876: stackdepot: fix stack_depot_save_flags() in NMI context

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2025-01-11T12:25:17.819Z
- Modified: 2026-06-17T07:58:57.167Z
- Weaknesses: CWE-667
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 4434a56ec20925333d6cf4d4093641d063abd35b before 9bfeeeff2c92b9dd261198b601b45bde4c529841; from 4434a56ec20925333d6cf4d4093641d063abd35b before 031e04bdc834cda3b054ef6b698503b2b97e8186; 6.8 (not affected: before 6.8; from 6.12.5 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 6.8.1 before 6.12.5; 6.8; 6.13

## References

- <https://git.kernel.org/stable/c/9bfeeeff2c92b9dd261198b601b45bde4c529841> (patch)
- <https://git.kernel.org/stable/c/031e04bdc834cda3b054ef6b698503b2b97e8186> (patch)

## Sources

- CVE List: [CVE-2024-48876](https://www.cve.org/CVERecord?id=CVE-2024-48876), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-48876](https://nvd.nist.gov/vuln/detail/CVE-2024-48876), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-48876 · Whole record: https://cve.day/CVE-2024-48876.json · Rebuilt by cve.day 2026-11-25T22:58:50.918Z
