Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.270, 5.15.221, 6.1.188, 6.12.110, 6.18.52, 6.6.157, 7.2.6
CVEs
CVE-2026-93261
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 11:05 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 24 Sept 2026, 15:51 UTC

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.

osv:CVE-2026-93261

Kernel

Fixed versions: 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, 6.18.52, 7.2.6

Complete source record
{
  "id": "bc0782f2d59743b22c52441461f0fa1a7a083f95b3ac66db9bcaa1ff24c4944d",
  "url": "https://osv.dev/vulnerability/CVE-2026-93261",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "locking/lockdep: Fix NULL pointer dereference in __lock_set_class()",
    "summary": "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.",
    "evidence": "osv:CVE-2026-93261",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.270",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.221",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.188",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.157",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.110",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.52",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.6",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-93261",
      "aliases": [
        "CVE-2026-93261"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "64aa348edc617dea17bbd01ddee4e47886d5ec8c"
                },
                {
                  "fixed": "f6093ff67ea6e347574819ed23e96e0f82a25ffc"
                },
                {
                  "fixed": "59a5c7dd331a3dab48100e1ef8e9bb4f9132a2b2"
                },
                {
                  "fixed": "f56e54fd24f05e9de528fcb77f6084f80c8066ce"
                },
                {
                  "fixed": "5c3bff6cf26e6a54fbf8b893a879c32824d2d50d"
                },
                {
                  "fixed": "b2113dcd8238bf00ce37a34e67b29cf31d32a545"
                },
                {
                  "fixed": "e7c69c6695d84220847cca62a45e879e71e79e9d"
                },
                {
                  "fixed": "9be10f49dfc2e4b472b3a5f346483b67374774b8"
                },
                {
                  "fixed": "7577e00b9ab506202b9f1a33de3cc8cc6413a4db"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-93261.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.27"
                },
                {
                  "fixed": "5.10.270"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.221"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.188"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.157"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.110"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.52"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.2.6"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-93261.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.982347119Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/59a5c7dd331a3dab48100e1ef8e9bb4f9132a2b2",
        "https://git.kernel.org/stable/c/5c3bff6cf26e6a54fbf8b893a879c32824d2d50d",
        "https://git.kernel.org/stable/c/7577e00b9ab506202b9f1a33de3cc8cc6413a4db",
        "https://git.kernel.org/stable/c/9be10f49dfc2e4b472b3a5f346483b67374774b8",
        "https://git.kernel.org/stable/c/b2113dcd8238bf00ce37a34e67b29cf31d32a545",
        "https://git.kernel.org/stable/c/e7c69c6695d84220847cca62a45e879e71e79e9d",
        "https://git.kernel.org/stable/c/f56e54fd24f05e9de528fcb77f6084f80c8066ce",
        "https://git.kernel.org/stable/c/f6093ff67ea6e347574819ed23e96e0f82a25ffc",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93261.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-93261",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93261.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-93261",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 494842,
  "published_at": "2026-09-24T15:51:59.638+00:00"
}