{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2025-68336",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-12-16T14:48:05.297Z",
        "datePublished": "2025-12-22T16:14:13.425Z",
        "dateUpdated": "2026-08-05T12:10:54.280Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T12:10:54.280Z"
            },
            "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."
                }
            ],
            "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."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "kernel/locking/spinlock_debug.c"
                    ],
                    "versions": [
                        {
                            "version": "1a365e822372ba24c9da0822bc583894f6f3d821",
                            "lessThan": "8e5b2cf10844402054b52b489b525dc30cc16908",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1a365e822372ba24c9da0822bc583894f6f3d821",
                            "lessThan": "c228cb699a07a5f2d596d186bc5c314c99bb8bbf",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1a365e822372ba24c9da0822bc583894f6f3d821",
                            "lessThan": "93bd23524d63deb80fb85beb2e43fafeb1043d0f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1a365e822372ba24c9da0822bc583894f6f3d821",
                            "lessThan": "39d2ef113416f1a4205b03fb0aa2e428d1412c77",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1a365e822372ba24c9da0822bc583894f6f3d821",
                            "lessThan": "b163a5e8c703201c905d6ec7920ed79d167e8442",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1a365e822372ba24c9da0822bc583894f6f3d821",
                            "lessThan": "16b3590c0e1e615757dade098c8fbc0d4f040c76",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1a365e822372ba24c9da0822bc583894f6f3d821",
                            "lessThan": "396a9270a7b90886be501611b13aa636f2e8c703",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1a365e822372ba24c9da0822bc583894f6f3d821",
                            "lessThan": "c14ecb555c3ee80eeb030a4e46d00e679537f03a",
                            "status": "affected",
                            "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",
                            "lessThan": "4.5",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.9.209",
                            "lessThan": "4.10",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.14.164",
                            "lessThan": "4.15",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.95",
                            "lessThan": "4.20",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.11",
                            "lessThan": "5.5",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "kernel/locking/spinlock_debug.c"
                    ],
                    "versions": [
                        {
                            "version": "5.5",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.5",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.248",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.198",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.160",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.120",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.62",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.17.12",
                            "lessThanOrEqual": "6.17.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.1",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.19",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "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"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
                }
            ],
            "title": "locking/spinlock/debug: Fix data-race in do_raw_write_lock",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}