{"id":"CVE-2026-68438","aliases":["CVE-2026-68438"],"related":[],"kind":"vulnerability","state":"published","title":"smp: Make CSD lock acquisition atomic for debug mode","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmp: Make CSD lock acquisition atomic for debug mode\n\nCommit b0473dcd4b1d (\"smp: Improve smp_call_function_single()\nCSD-lock diagnostics\") changed smp_call_function_single() so that,\nwhen CSD lock debugging is enabled, async !wait calls use the\ndestination CPU csd_data. That improves diagnostics, but it also removes\nthe single-writer property that made the old csd_lock() safe: multiple\nCPUs can now prepare the same destination CPU CSD concurrently.\n\ncsd_lock() currently waits for CSD_FLAG_LOCK to clear and then sets the\nbit with a non-atomic read-modify-write. Two senders can both see an\nunlocked CSD, set the bit, overwrite the callback fields, and enqueue\nthe same llist node. Re-adding a node that is already the queue head can\nmake node->next point to itself, leaving the target CPU stuck walking\ncall_single_queue. Later synchronous work, such as a TLB shootdown, can\nthen remain queued and trigger soft-lockup warnings or panics.\n\nKeep the single csd_lock() implementation, but when CSD lock debugging is\nenabled, acquire CSD_FLAG_LOCK with try_cmpxchg_acquire(). This makes the\ndestination CPU CSD a real atomic lock in the only configuration where it\ncan be shared by multiple remote senders, while preserving the existing\nnon-debug fast path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmp: Make CSD lock acquisition atomic for debug mode\n\nCommit b0473dcd4b1d (\"smp: Improve smp_call_function_single()\nCSD-lock diagnostics\") changed smp_call_function_single() so that,\nwhen CSD lock debugging is enabled, async !wait calls use the\ndestination CPU csd_data. That improves diagnostics, but it also removes\nthe single-writer property that made the old csd_lock() safe: multiple\nCPUs can now prepare the same destination CPU CSD concurrently.\n\ncsd_lock() currently waits for CSD_FLAG_LOCK to clear and then sets the\nbit with a non-atomic read-modify-write. Two senders can both see an\nunlocked CSD, set the bit, overwrite the callback fields, and enqueue\nthe same llist node. Re-adding a node that is already the queue head can\nmake node->next point to itself, leaving the target CPU stuck walking\ncall_single_queue. Later synchronous work, such as a TLB shootdown, can\nthen remain queued and trigger soft-lockup warnings or panics.\n\nKeep the single csd_lock() implementation, but when CSD lock debugging is\nenabled, acquire CSD_FLAG_LOCK with try_cmpxchg_acquire(). This makes the\ndestination CPU CSD a real atomic lock in the only configuration where it\ncan be shared by multiple remote senders, while preserving the existing\nnon-debug fast path.","source":"cvelist"}],"published":"2026-08-12T00:07:27.105Z","modified":"2026-08-17T06:17:52.890Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b0473dcd4b1d7e2e44947e7ac1820c73a268821a","fixed":"282d220bae5fbfc90cf0e3d5b5e42c00ad79f989","status":"affected"},{"type":"git","introduced":"b0473dcd4b1d7e2e44947e7ac1820c73a268821a","fixed":"35551efb155e3b83445a6c3f66cb498d5efc182c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.1","status":"unaffected"},{"type":"semver","introduced":"7.1.6","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/282d220bae5fbfc90cf0e3d5b5e42c00ad79f989","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/35551efb155e3b83445a6c3f66cb498d5efc182c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-68438","url":"https://www.cve.org/CVERecord?id=CVE-2026-68438","licence":"CVE Terms of Use","modified":"2026-08-17T05:05:35.262Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-68438","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68438","licence":"Public domain","modified":"2026-08-17T06:17:52.890Z"}],"updatedAt":"2026-11-25T22:59:32.531Z","epss":{"score":0.00198,"percentile":0.05434,"date":"2026-11-30T12:00:22.000Z"}}