{"id":"CVE-2026-93261","state":"PUBLISHED","title":"locking/lockdep: Fix NULL pointer dereference in __lock_set_class()","description":"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.","publishedAt":"2026-09-24T15:51:59.638Z","updatedAt":"2026-10-19T09:08:14.521Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"f6093ff67ea6e347574819ed23e96e0f82a25ffc","versionType":"git"},{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"59a5c7dd331a3dab48100e1ef8e9bb4f9132a2b2","versionType":"git"},{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"f56e54fd24f05e9de528fcb77f6084f80c8066ce","versionType":"git"},{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"5c3bff6cf26e6a54fbf8b893a879c32824d2d50d","versionType":"git"},{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"b2113dcd8238bf00ce37a34e67b29cf31d32a545","versionType":"git"},{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"e7c69c6695d84220847cca62a45e879e71e79e9d","versionType":"git"},{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"9be10f49dfc2e4b472b3a5f346483b67374774b8","versionType":"git"},{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"7577e00b9ab506202b9f1a33de3cc8cc6413a4db","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/locking/lockdep.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.27","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.27","versionType":"semver"},{"version":"5.10.270","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/locking/lockdep.c"]}],"references":["https://git.kernel.org/stable/c/f6093ff67ea6e347574819ed23e96e0f82a25ffc","https://git.kernel.org/stable/c/59a5c7dd331a3dab48100e1ef8e9bb4f9132a2b2","https://git.kernel.org/stable/c/f56e54fd24f05e9de528fcb77f6084f80c8066ce","https://git.kernel.org/stable/c/5c3bff6cf26e6a54fbf8b893a879c32824d2d50d","https://git.kernel.org/stable/c/b2113dcd8238bf00ce37a34e67b29cf31d32a545","https://git.kernel.org/stable/c/e7c69c6695d84220847cca62a45e879e71e79e9d","https://git.kernel.org/stable/c/9be10f49dfc2e4b472b3a5f346483b67374774b8","https://git.kernel.org/stable/c/7577e00b9ab506202b9f1a33de3cc8cc6413a4db"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:34.582Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/93xxx/CVE-2026-93261.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-93261","state":"PUBLISHED","datePublished":"2026-09-24T15:51:59.638Z","dateUpdated":"2026-10-19T09:08:14.521Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-17T16:02:15.097Z"},"containers":{"cna":{"title":"locking/lockdep: Fix NULL pointer dereference in __lock_set_class()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"f6093ff67ea6e347574819ed23e96e0f82a25ffc","versionType":"git"},{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"59a5c7dd331a3dab48100e1ef8e9bb4f9132a2b2","versionType":"git"},{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"f56e54fd24f05e9de528fcb77f6084f80c8066ce","versionType":"git"},{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"5c3bff6cf26e6a54fbf8b893a879c32824d2d50d","versionType":"git"},{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"b2113dcd8238bf00ce37a34e67b29cf31d32a545","versionType":"git"},{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"e7c69c6695d84220847cca62a45e879e71e79e9d","versionType":"git"},{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"9be10f49dfc2e4b472b3a5f346483b67374774b8","versionType":"git"},{"version":"64aa348edc617dea17bbd01ddee4e47886d5ec8c","status":"affected","lessThan":"7577e00b9ab506202b9f1a33de3cc8cc6413a4db","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/locking/lockdep.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.27","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.27","versionType":"semver"},{"version":"5.10.270","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/locking/lockdep.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f6093ff67ea6e347574819ed23e96e0f82a25ffc"},{"url":"https://git.kernel.org/stable/c/59a5c7dd331a3dab48100e1ef8e9bb4f9132a2b2"},{"url":"https://git.kernel.org/stable/c/f56e54fd24f05e9de528fcb77f6084f80c8066ce"},{"url":"https://git.kernel.org/stable/c/5c3bff6cf26e6a54fbf8b893a879c32824d2d50d"},{"url":"https://git.kernel.org/stable/c/b2113dcd8238bf00ce37a34e67b29cf31d32a545"},{"url":"https://git.kernel.org/stable/c/e7c69c6695d84220847cca62a45e879e71e79e9d"},{"url":"https://git.kernel.org/stable/c/9be10f49dfc2e4b472b3a5f346483b67374774b8"},{"url":"https://git.kernel.org/stable/c/7577e00b9ab506202b9f1a33de3cc8cc6413a4db"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:08:14.521Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.27","versionEndExcluding":"5.10.270"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.27","versionEndExcluding":"5.15.221"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.27","versionEndExcluding":"6.1.188"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.27","versionEndExcluding":"6.6.157"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.27","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.27","versionEndExcluding":"6.18.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.27","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.27","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}