{"id":"CVE-2025-68336","state":"PUBLISHED","title":"locking/spinlock/debug: Fix data-race in do_raw_write_lock","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nlocking/spinlock/debug: Fix data-race in do_raw_write_lock\n\nKCSAN reports:\n\nBUG: KCSAN: data-race in do_raw_write_lock / do_raw_write_lock\n\nwrite (marked) to 0xffff800009cf504c of 4 bytes by task 1102 on cpu 1:\n do_raw_write_lock+0x120/0x204\n _raw_write_lock_irq\n do_exit\n call_usermodehelper_exec_async\n ret_from_fork\n\nread to 0xffff800009cf504c of 4 bytes by task 1103 on cpu 0:\n do_raw_write_lock+0x88/0x204\n _raw_write_lock_irq\n do_exit\n call_usermodehelper_exec_async\n ret_from_fork\n\nvalue changed: 0xffffffff -> 0x00000001\n\nReported by Kernel Concurrency Sanitizer on:\nCPU: 0 PID: 1103 Comm: kworker/u4:1 6.1.111\n\nCommit 1a365e822372 (\"locking/spinlock/debug: Fix various data races\") has\nadressed most of these races, but seems to be not consistent/not complete.\n\n>From do_raw_write_lock() only debug_write_lock_after() part has been\nconverted to WRITE_ONCE(), but not debug_write_lock_before() part.\nDo it now.","publishedAt":"2025-12-22T16:14:13.425Z","updatedAt":"2026-10-16T15:09:43.012Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"8e5b2cf10844402054b52b489b525dc30cc16908","versionType":"git"},{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"c228cb699a07a5f2d596d186bc5c314c99bb8bbf","versionType":"git"},{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"93bd23524d63deb80fb85beb2e43fafeb1043d0f","versionType":"git"},{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"39d2ef113416f1a4205b03fb0aa2e428d1412c77","versionType":"git"},{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"b163a5e8c703201c905d6ec7920ed79d167e8442","versionType":"git"},{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"16b3590c0e1e615757dade098c8fbc0d4f040c76","versionType":"git"},{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"396a9270a7b90886be501611b13aa636f2e8c703","versionType":"git"},{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"c14ecb555c3ee80eeb030a4e46d00e679537f03a","versionType":"git"},{"version":"3106fb78d3579c8e9c9b3040f7f7841981919624","status":"affected","versionType":"git"},{"version":"c0911024ff927ba5c4786b507004cb615be1d776","status":"affected","versionType":"git"},{"version":"09226e5c38639437565af01e6009a9286a351d04","status":"affected","versionType":"git"},{"version":"c7673f01604fa722b9d7c1e29e17cec1b8ae09c5","status":"affected","versionType":"git"},{"version":"c120c3dbeb76305235c8e557f84d9e2d7d0f5933","status":"affected","versionType":"git"},{"version":"4.4.209","status":"affected","lessThan":"4.5","versionType":"semver"},{"version":"4.9.209","status":"affected","lessThan":"4.10","versionType":"semver"},{"version":"4.14.164","status":"affected","lessThan":"4.15","versionType":"semver"},{"version":"4.19.95","status":"affected","lessThan":"4.20","versionType":"semver"},{"version":"5.4.11","status":"affected","lessThan":"5.5","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/locking/spinlock_debug.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.5","versionType":"semver"},{"version":"5.10.248","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.198","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.160","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.120","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.62","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.12","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18.1","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/locking/spinlock_debug.c"]}],"references":["https://git.kernel.org/stable/c/8e5b2cf10844402054b52b489b525dc30cc16908","https://git.kernel.org/stable/c/c228cb699a07a5f2d596d186bc5c314c99bb8bbf","https://git.kernel.org/stable/c/93bd23524d63deb80fb85beb2e43fafeb1043d0f","https://git.kernel.org/stable/c/39d2ef113416f1a4205b03fb0aa2e428d1412c77","https://git.kernel.org/stable/c/b163a5e8c703201c905d6ec7920ed79d167e8442","https://git.kernel.org/stable/c/16b3590c0e1e615757dade098c8fbc0d4f040c76","https://git.kernel.org/stable/c/396a9270a7b90886be501611b13aa636f2e8c703","https://git.kernel.org/stable/c/c14ecb555c3ee80eeb030a4e46d00e679537f03a"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:56.034Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/68xxx/CVE-2025-68336.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-68336","state":"PUBLISHED","datePublished":"2025-12-22T16:14:13.425Z","dateUpdated":"2026-10-16T15:09:43.012Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-16T14:48:05.297Z"},"containers":{"cna":{"title":"locking/spinlock/debug: Fix data-race in do_raw_write_lock","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nlocking/spinlock/debug: Fix data-race in do_raw_write_lock\n\nKCSAN reports:\n\nBUG: KCSAN: data-race in do_raw_write_lock / do_raw_write_lock\n\nwrite (marked) to 0xffff800009cf504c of 4 bytes by task 1102 on cpu 1:\n do_raw_write_lock+0x120/0x204\n _raw_write_lock_irq\n do_exit\n call_usermodehelper_exec_async\n ret_from_fork\n\nread to 0xffff800009cf504c of 4 bytes by task 1103 on cpu 0:\n do_raw_write_lock+0x88/0x204\n _raw_write_lock_irq\n do_exit\n call_usermodehelper_exec_async\n ret_from_fork\n\nvalue changed: 0xffffffff -> 0x00000001\n\nReported by Kernel Concurrency Sanitizer on:\nCPU: 0 PID: 1103 Comm: kworker/u4:1 6.1.111\n\nCommit 1a365e822372 (\"locking/spinlock/debug: Fix various data races\") has\nadressed most of these races, but seems to be not consistent/not complete.\n\n>From do_raw_write_lock() only debug_write_lock_after() part has been\nconverted to WRITE_ONCE(), but not debug_write_lock_before() part.\nDo it now."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"8e5b2cf10844402054b52b489b525dc30cc16908","versionType":"git"},{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"c228cb699a07a5f2d596d186bc5c314c99bb8bbf","versionType":"git"},{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"93bd23524d63deb80fb85beb2e43fafeb1043d0f","versionType":"git"},{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"39d2ef113416f1a4205b03fb0aa2e428d1412c77","versionType":"git"},{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"b163a5e8c703201c905d6ec7920ed79d167e8442","versionType":"git"},{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"16b3590c0e1e615757dade098c8fbc0d4f040c76","versionType":"git"},{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"396a9270a7b90886be501611b13aa636f2e8c703","versionType":"git"},{"version":"1a365e822372ba24c9da0822bc583894f6f3d821","status":"affected","lessThan":"c14ecb555c3ee80eeb030a4e46d00e679537f03a","versionType":"git"},{"version":"3106fb78d3579c8e9c9b3040f7f7841981919624","status":"affected","versionType":"git"},{"version":"c0911024ff927ba5c4786b507004cb615be1d776","status":"affected","versionType":"git"},{"version":"09226e5c38639437565af01e6009a9286a351d04","status":"affected","versionType":"git"},{"version":"c7673f01604fa722b9d7c1e29e17cec1b8ae09c5","status":"affected","versionType":"git"},{"version":"c120c3dbeb76305235c8e557f84d9e2d7d0f5933","status":"affected","versionType":"git"},{"version":"4.4.209","status":"affected","lessThan":"4.5","versionType":"semver"},{"version":"4.9.209","status":"affected","lessThan":"4.10","versionType":"semver"},{"version":"4.14.164","status":"affected","lessThan":"4.15","versionType":"semver"},{"version":"4.19.95","status":"affected","lessThan":"4.20","versionType":"semver"},{"version":"5.4.11","status":"affected","lessThan":"5.5","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/locking/spinlock_debug.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.5","versionType":"semver"},{"version":"5.10.248","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.198","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.160","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.120","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.62","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.12","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18.1","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/locking/spinlock_debug.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8e5b2cf10844402054b52b489b525dc30cc16908"},{"url":"https://git.kernel.org/stable/c/c228cb699a07a5f2d596d186bc5c314c99bb8bbf"},{"url":"https://git.kernel.org/stable/c/93bd23524d63deb80fb85beb2e43fafeb1043d0f"},{"url":"https://git.kernel.org/stable/c/39d2ef113416f1a4205b03fb0aa2e428d1412c77"},{"url":"https://git.kernel.org/stable/c/b163a5e8c703201c905d6ec7920ed79d167e8442"},{"url":"https://git.kernel.org/stable/c/16b3590c0e1e615757dade098c8fbc0d4f040c76"},{"url":"https://git.kernel.org/stable/c/396a9270a7b90886be501611b13aa636f2e8c703"},{"url":"https://git.kernel.org/stable/c/c14ecb555c3ee80eeb030a4e46d00e679537f03a"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - An unauthenticated remote peer can open and terminate concurrent TCP/445 connections to an enabled ksmbd server; its per-connection kthreads exit through do_exit(), tasklist_lock, and do_raw_write_lock().\nAC:L - The attacker controls both sides of the race using simultaneous connections and can repeat attempts until it occurs, without requiring victim-controlled state.\nPR:N - Ksmbd creates connection-handler threads before SMB authentication, so the remote attacker requires neither an account nor kernel privileges.\nUI:N - Once the server is listening, remote connections trigger the complete vulnerable path without victim interaction.\nS:U - A resulting kernel panic or lockup affects the same host security authority and does not cross a virtualization or sandbox boundary.\nC:N - The race concerns in-bounds debug owner bookkeeping and provides no memory-disclosure or arbitrary-read primitive.\nI:N - The actual rwlock and protected data are not corrupted; the fix only annotates existing reads and does not address an overwrite, use-after-free, or control-flow primitive.\nA:H - On DEBUG_SPINLOCK and KCSAN builds, repeated races can generate reports that panic through panic_on_warn or deadlock the console, causing complete system unavailability."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:10:54.280Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.10.248"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.15.198"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.1.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.6.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.12.62"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.17.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.18.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4.209"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9.209"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14.164"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19.95"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-68336","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-10-16T15:04:42.942439Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-16T15:09:43.012Z"}}]}}}