# CVE-2026-93261: locking/lockdep: Fix NULL pointer dereference in __lock_set_class()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-09-24T15:51:59.638Z
- Modified: 2026-10-19T10:17:17.410Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

locking/lockdep: Fix NULL pointer dereference in __lock_set_class()

register_lock_class() can return NULL when the lock class pool is
exhausted, graph_lock() fails, or key validation fails. However,
__lock_set_class() uses the return value directly in pointer arithmetic
without a NULL check:

  class = register_lock_class(lock, subclass, 0);
  hlock->class_idx = class - lock_classes;

If class is NULL, this computes a wild offset that corrupts
hlock->class_idx. The subsequent reacquire_held_locks() call will
invoke hlock_class() with this corrupted index, leading to a NULL or
out-of-bounds pointer dereference.

Add the missing NULL check, consistent with how __lock_acquire() already
handles this case at the same call site.

(As written by CVE List.)

## Affected

- Linux Linux: from 64aa348edc617dea17bbd01ddee4e47886d5ec8c before f6093ff67ea6e347574819ed23e96e0f82a25ffc; from 64aa348edc617dea17bbd01ddee4e47886d5ec8c before 59a5c7dd331a3dab48100e1ef8e9bb4f9132a2b2; from 64aa348edc617dea17bbd01ddee4e47886d5ec8c before f56e54fd24f05e9de528fcb77f6084f80c8066ce; from 64aa348edc617dea17bbd01ddee4e47886d5ec8c before 5c3bff6cf26e6a54fbf8b893a879c32824d2d50d; from 64aa348edc617dea17bbd01ddee4e47886d5ec8c before b2113dcd8238bf00ce37a34e67b29cf31d32a545; from 64aa348edc617dea17bbd01ddee4e47886d5ec8c before e7c69c6695d84220847cca62a45e879e71e79e9d; from 64aa348edc617dea17bbd01ddee4e47886d5ec8c before 9be10f49dfc2e4b472b3a5f346483b67374774b8; from 64aa348edc617dea17bbd01ddee4e47886d5ec8c before 7577e00b9ab506202b9f1a33de3cc8cc6413a4db; 2.6.27 (not affected: before 2.6.27; from 5.10.270 up to 5.10.*; from 5.15.221 up to 5.15.*; from 6.1.188 up to 6.1.*; from 6.6.157 up to 6.6.*; from 6.12.110 up to 6.12.*; from 6.18.52 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## 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>

## Sources

- CVE List: [CVE-2026-93261](https://www.cve.org/CVERecord?id=CVE-2026-93261), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-93261](https://nvd.nist.gov/vuln/detail/CVE-2026-93261), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-93261 · Whole record: https://cve.day/CVE-2026-93261.json · Rebuilt by cve.day 2026-11-25T22:59:40.799Z
