{"id":"CVE-2026-74365","aliases":["CVE-2026-74365"],"related":[],"kind":"vulnerability","state":"published","title":"nvdimm/btt: Handle preemption in BTT lane acquisition","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvdimm/btt: Handle preemption in BTT lane acquisition\n\nBTT lanes serialize access to per-lane metadata and workspace state\nduring BTT I/O. The btt-check unit test reports data mismatches during\nBTT writes due to a race in lane acquisition that can lead to silent\ndata corruption.\n\nThe existing lane model uses a spinlock together with a per-CPU\nrecursion count. That recursion model stopped being valid after BTT\nlanes became preemptible: another task can run on the same CPU,\nobserve a non-zero recursion count, bypass locking, and use the same\nlane concurrently.\n\nBTT lanes are also held across arena_write_bytes() calls. That path\nreaches nsio_rw_bytes(), which flushes writes with nvdimm_flush().\nSome provider flush callbacks can sleep, making a spinlock the wrong\nprimitive for the lane lifetime.\n\nReplace the spinlock-based recursion model with a dynamically\nallocated per-lane mutex array and take the lane lock\nunconditionally.\n\nAdd might_sleep() to catch any future atomic-context caller.\n\nFound with the ndctl unit test btt-check.sh.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvdimm/btt: Handle preemption in BTT lane acquisition\n\nBTT lanes serialize access to per-lane metadata and workspace state\nduring BTT I/O. The btt-check unit test reports data mismatches during\nBTT writes due to a race in lane acquisition that can lead to silent\ndata corruption.\n\nThe existing lane model uses a spinlock together with a per-CPU\nrecursion count. That recursion model stopped being valid after BTT\nlanes became preemptible: another task can run on the same CPU,\nobserve a non-zero recursion count, bypass locking, and use the same\nlane concurrently.\n\nBTT lanes are also held across arena_write_bytes() calls. That path\nreaches nsio_rw_bytes(), which flushes writes with nvdimm_flush().\nSome provider flush callbacks can sleep, making a spinlock the wrong\nprimitive for the lane lifetime.\n\nReplace the spinlock-based recursion model with a dynamically\nallocated per-lane mutex array and take the lane lock\nunconditionally.\n\nAdd might_sleep() to catch any future atomic-context caller.\n\nFound with the ndctl unit test btt-check.sh.","source":"cvelist"}],"published":"2026-08-15T05:58:47.594Z","modified":"2026-10-16T19:17:42.100Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f23859748e3d530217b197e146a9ac84faf0a282","fixed":"fd7a97b2514cfc4b4cc067a27dd39bde2a8b1735","status":"affected"},{"type":"git","introduced":"6f50b414f1a0d790f11a6438a3ad6d0577eb2c18","fixed":"73e35c1bdfa160b41fdbe204e02325f0687de506","status":"affected"},{"type":"git","introduced":"36c75ce3bd299878fd9b238e9803d3817ddafbf3","fixed":"417918783bcfe0be135019df16a267b3af442efd","status":"affected"},{"type":"git","introduced":"36c75ce3bd299878fd9b238e9803d3817ddafbf3","fixed":"5c53406098b599c420b031e6ec5ba8a2f3794c50","status":"affected"},{"type":"git","introduced":"36c75ce3bd299878fd9b238e9803d3817ddafbf3","fixed":"4eafa810b042d985ec6bbf5b514414e73cee6f6f","status":"affected"},{"type":"git","introduced":"36c75ce3bd299878fd9b238e9803d3817ddafbf3","fixed":"8d4b989d9c9afe5f185aa5853b666fc4617afe9e","status":"affected"},{"type":"git","version":"2577fece583c7c05cda7ad50dde7638c962665e1","status":"affected"},{"type":"git","version":"40ba3fa21250e361bdd8f00800b3e2cb6160de95","status":"affected"},{"type":"git","version":"b0e7a935739f33ed2bd6868b89f97dd4c2683c26","status":"affected"},{"type":"git","version":"66eb7b7f23dd9aec5356e7054dd3596ae7648ff5","status":"affected"},{"type":"git","version":"b27751fb1f271bbb78d5993c0b10011628e40e18","status":"affected"},{"type":"semver","introduced":"6.1.63","fixed":"6.1.178","status":"affected"},{"type":"semver","introduced":"6.6.2","fixed":"6.6.145","status":"affected"},{"type":"semver","introduced":"4.19.299","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.4.261","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"5.10.201","fixed":"5.11","status":"affected"},{"type":"semver","introduced":"5.15.139","fixed":"5.16","status":"affected"},{"type":"semver","introduced":"6.5.12","fixed":"6.6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.7","status":"unaffected"},{"type":"semver","introduced":"6.1.178","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.145","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.97","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.40","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.5","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/fd7a97b2514cfc4b4cc067a27dd39bde2a8b1735","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/73e35c1bdfa160b41fdbe204e02325f0687de506","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/417918783bcfe0be135019df16a267b3af442efd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c53406098b599c420b031e6ec5ba8a2f3794c50","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4eafa810b042d985ec6bbf5b514414e73cee6f6f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8d4b989d9c9afe5f185aa5853b666fc4617afe9e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T18:54:37.742Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74365","url":"https://www.cve.org/CVERecord?id=CVE-2026-74365","licence":"CVE Terms of Use","modified":"2026-10-16T18:55:35.765Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74365","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74365","licence":"Public domain","modified":"2026-10-16T19:17:42.100Z"}],"updatedAt":"2026-11-25T22:59:33.184Z","epss":{"score":0.00132,"percentile":0.02988,"date":"2026-12-01T12:00:22.000Z"}}