{"id":"CVE-2024-48876","summary":"stackdepot: fix stack_depot_save_flags() in NMI context","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nstackdepot: fix stack_depot_save_flags() in NMI context\n\nPer documentation, stack_depot_save_flags() was meant to be usable from\nNMI context if STACK_DEPOT_FLAG_CAN_ALLOC is unset.  However, it still\nwould try to take the pool_lock in an attempt to save a stack trace in the\ncurrent pool (if space is available).\n\nThis could result in deadlock if an NMI is handled while pool_lock is\nalready held.  To avoid deadlock, only try to take the lock in NMI context\nand give up if unsuccessful.\n\nThe documentation is fixed to clearly convey this.","modified":"2026-04-02T12:20:50.209401Z","published":"2025-01-11T12:25:17.819Z","related":["USN-7379-2","USN-7380-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/48xxx/CVE-2024-48876.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/031e04bdc834cda3b054ef6b698503b2b97e8186"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9bfeeeff2c92b9dd261198b601b45bde4c529841"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/48xxx/CVE-2024-48876.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-48876"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"4434a56ec20925333d6cf4d4093641d063abd35b"},{"fixed":"9bfeeeff2c92b9dd261198b601b45bde4c529841"},{"fixed":"031e04bdc834cda3b054ef6b698503b2b97e8186"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-48876.json"}}],"schema_version":"1.7.5"}