{"id":"CVE-2026-93261","aliases":["CVE-2026-93261"],"related":[],"kind":"vulnerability","state":"published","title":"locking/lockdep: Fix NULL pointer dereference in __lock_set_class()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nlocking/lockdep: Fix NULL pointer dereference in __lock_set_class()\n\nregister_lock_class() can return NULL when the lock class pool is\nexhausted, graph_lock() fails, or key validation fails. However,\n__lock_set_class() uses the return value directly in pointer arithmetic\nwithout a NULL check:\n\n  class = register_lock_class(lock, subclass, 0);\n  hlock->class_idx = class - lock_classes;\n\nIf class is NULL, this computes a wild offset that corrupts\nhlock->class_idx. The subsequent reacquire_held_locks() call will\ninvoke hlock_class() with this corrupted index, leading to a NULL or\nout-of-bounds pointer dereference.\n\nAdd the missing NULL check, consistent with how __lock_acquire() already\nhandles this case at the same call site.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nlocking/lockdep: Fix NULL pointer dereference in __lock_set_class()\n\nregister_lock_class() can return NULL when the lock class pool is\nexhausted, graph_lock() fails, or key validation fails. However,\n__lock_set_class() uses the return value directly in pointer arithmetic\nwithout a NULL check:\n\n  class = register_lock_class(lock, subclass, 0);\n  hlock->class_idx = class - lock_classes;\n\nIf class is NULL, this computes a wild offset that corrupts\nhlock->class_idx. The subsequent reacquire_held_locks() call will\ninvoke hlock_class() with this corrupted index, leading to a NULL or\nout-of-bounds pointer dereference.\n\nAdd the missing NULL check, consistent with how __lock_acquire() already\nhandles this case at the same call site.","source":"cvelist"}],"published":"2026-09-24T15:51:59.638Z","modified":"2026-10-19T10:17:17.410Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","fixed":"f6093ff67ea6e347574819ed23e96e0f82a25ffc","status":"affected"},{"type":"git","introduced":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","fixed":"59a5c7dd331a3dab48100e1ef8e9bb4f9132a2b2","status":"affected"},{"type":"git","introduced":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","fixed":"f56e54fd24f05e9de528fcb77f6084f80c8066ce","status":"affected"},{"type":"git","introduced":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","fixed":"5c3bff6cf26e6a54fbf8b893a879c32824d2d50d","status":"affected"},{"type":"git","introduced":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","fixed":"b2113dcd8238bf00ce37a34e67b29cf31d32a545","status":"affected"},{"type":"git","introduced":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","fixed":"e7c69c6695d84220847cca62a45e879e71e79e9d","status":"affected"},{"type":"git","introduced":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","fixed":"9be10f49dfc2e4b472b3a5f346483b67374774b8","status":"affected"},{"type":"git","introduced":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","fixed":"7577e00b9ab506202b9f1a33de3cc8cc6413a4db","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.27","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.27","status":"unaffected"},{"type":"semver","introduced":"5.10.270","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.221","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/f6093ff67ea6e347574819ed23e96e0f82a25ffc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/59a5c7dd331a3dab48100e1ef8e9bb4f9132a2b2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f56e54fd24f05e9de528fcb77f6084f80c8066ce","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c3bff6cf26e6a54fbf8b893a879c32824d2d50d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b2113dcd8238bf00ce37a34e67b29cf31d32a545","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e7c69c6695d84220847cca62a45e879e71e79e9d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9be10f49dfc2e4b472b3a5f346483b67374774b8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7577e00b9ab506202b9f1a33de3cc8cc6413a4db","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-93261","url":"https://www.cve.org/CVERecord?id=CVE-2026-93261","licence":"CVE Terms of Use","modified":"2026-10-19T09:08:14.521Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-93261","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93261","licence":"Public domain","modified":"2026-10-19T10:17:17.410Z"}],"updatedAt":"2026-11-25T22:59:40.799Z","epss":{"score":0.00196,"percentile":0.09794,"date":"2026-12-01T12:00:22.000Z"}}