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

Summary

CVECVE-2026-93261
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-09-24 16:17:22 UTC
Updated2026-09-24 16:17:22 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 64aa348edc617dea17bbd01ddee4e47886d5ec8c f6093ff67ea6e347574819ed23e96e0f82a25ffc git Not specified
CNA Linux Linux affected 64aa348edc617dea17bbd01ddee4e47886d5ec8c 59a5c7dd331a3dab48100e1ef8e9bb4f9132a2b2 git Not specified
CNA Linux Linux affected 64aa348edc617dea17bbd01ddee4e47886d5ec8c f56e54fd24f05e9de528fcb77f6084f80c8066ce git Not specified
CNA Linux Linux affected 64aa348edc617dea17bbd01ddee4e47886d5ec8c 5c3bff6cf26e6a54fbf8b893a879c32824d2d50d git Not specified
CNA Linux Linux affected 64aa348edc617dea17bbd01ddee4e47886d5ec8c b2113dcd8238bf00ce37a34e67b29cf31d32a545 git Not specified
CNA Linux Linux affected 64aa348edc617dea17bbd01ddee4e47886d5ec8c e7c69c6695d84220847cca62a45e879e71e79e9d git Not specified
CNA Linux Linux affected 64aa348edc617dea17bbd01ddee4e47886d5ec8c 9be10f49dfc2e4b472b3a5f346483b67374774b8 git Not specified
CNA Linux Linux affected 64aa348edc617dea17bbd01ddee4e47886d5ec8c 7577e00b9ab506202b9f1a33de3cc8cc6413a4db git Not specified
CNA Linux Linux affected 2.6.27 Not specified
CNA Linux Linux unaffected 2.6.27 semver Not specified
CNA Linux Linux unaffected 5.10.270 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.221 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.188 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.157 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.110 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.52 6.18.* semver Not specified
CNA Linux Linux unaffected 7.2.6 7.2.* semver Not specified
CNA Linux Linux unaffected 7.3-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/7577e00b9ab506202b9f1a33de3cc8cc6413a4db 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/5c3bff6cf26e6a54fbf8b893a879c32824d2d50d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f56e54fd24f05e9de528fcb77f6084f80c8066ce 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9be10f49dfc2e4b472b3a5f346483b67374774b8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e7c69c6695d84220847cca62a45e879e71e79e9d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f6093ff67ea6e347574819ed23e96e0f82a25ffc 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/59a5c7dd331a3dab48100e1ef8e9bb4f9132a2b2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b2113dcd8238bf00ce37a34e67b29cf31d32a545 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report