stackdepot: fix stack_depot_save_flags() in NMI context
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.5
- CVEs
- CVE-2024-48876
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 18:27 UTC · Revision 1
Source evidence
stackdepot: fix stack_depot_save_flags() in NMI context
core-osv · Original sourcePublished 11 Jan 2025, 12:25 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.
osv:CVE-2024-48876
Kernel
Fixed versions: 6.12.5
Complete source record
{
"id": "b4b4900182ea6f9bef670a3e4b38ffc3b03281ccdef8147469e707c27d4d4965",
"url": "https://osv.dev/vulnerability/CVE-2024-48876",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "stackdepot: fix stack_depot_save_flags() in NMI context",
"summary": "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.",
"evidence": "osv:CVE-2024-48876",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.12.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-48876",
"aliases": [
"CVE-2024-48876"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "4434a56ec20925333d6cf4d4093641d063abd35b"
},
{
"fixed": "9bfeeeff2c92b9dd261198b601b45bde4c529841"
},
{
"fixed": "031e04bdc834cda3b054ef6b698503b2b97e8186"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-48876.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.8.0"
},
{
"fixed": "6.12.5"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-48876.json"
}
}
],
"modified": "2026-10-28T02:30:48.016894353Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/031e04bdc834cda3b054ef6b698503b2b97e8186",
"https://git.kernel.org/stable/c/9bfeeeff2c92b9dd261198b601b45bde4c529841",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/48xxx/CVE-2024-48876.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-48876",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/48xxx/CVE-2024-48876.json"
}
},
"related_cves": [
{
"value": "CVE-2024-48876",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 515882,
"published_at": "2025-01-11T12:25:17.819+00:00"
}