From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28E423DD522 for ; Thu, 24 Sep 2026 15:53:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790265192; cv=none; b=PV2LAaGMOrtsuSnLjGzoAS7pBkmQ63oal3OPGp1oDtWGdxCDQGAK7iysnrA8IGOGYIekOfhV2p6kHLZjB5TaEurUUUibOl6mfzHzDx2vS35VbMqEXLAiMEBP4L5x8+pYsQISzweeGII9+eE1zD2oEfHfJL4FWwdVxK1iMQxS1XU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790265192; c=relaxed/simple; bh=d/C9hOBvznitmJqhHlzIyi0kWeG4rI8pLGZZCjku3X4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oE+YXcdOscefgJCDUYvFtzVElgMxJ14L+Q4IuDYD9Jf5Rmvmn9BXhdUzTPsB1f9eMdQzryrNlPGyuubEaUO3amL0KPAyQJ4x++OJaU29srmUFlFbep4oIgIGCQLfVssDNzAABlCb4hPBYRLAzpaYdE6/V4X8roWmIagbtHzY3d4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zHEqKAp3; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="zHEqKAp3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0767B1F00893; Thu, 24 Sep 2026 15:53:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790265190; bh=AwGkpXwGfCu0+VjAqDLHXcK+Q8LVBdLQ/JPMGoL+yqw=; h=From:To:Cc:Subject:Date:Reply-To; b=zHEqKAp3ovqMBDErZeis/IOpGaabkvhXb47KFeWHa9tabWix1uYlEAeUAHbv8wmEH 3GVXW9zx+ivt9NBCvFu6IVvYbNjgHdPvLDdAaTrjhFllxZr6Yq0EWq4+zGI3gloGhd Mkfy6fhQ2o5T5LzLzVLLH1Vhm437ToGDy/1kjfSw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93261: locking/lockdep: Fix NULL pointer dereference in __lock_set_class() Date: Thu, 24 Sep 2026 17:51:21 +0200 Message-ID: <2026092409-CVE-2026-93261-a462@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3848; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hHGf/fd0USE7E7ZScxOaq95cs6Ft5KAL1Jk8m8voTak=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlb3d7yzrnx2twucWr1gX83r4Sf8p69Nigz51y+xp2TP xv3n7u/piOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmwvSUYcGiQ99aQ34IfvxX JHemMHuZ+9XbH1QZFqxznmMuzXT8y59zIpOkDx9imR1n8hEA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-93261 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.27 with commit 64aa348edc617dea17bbd01ddee4e47886d5ec8c and fixed in 5.10.270 with commit f6093ff67ea6e347574819ed23e96e0f82a25ffc Issue introduced in 2.6.27 with commit 64aa348edc617dea17bbd01ddee4e47886d5ec8c and fixed in 5.15.221 with commit 59a5c7dd331a3dab48100e1ef8e9bb4f9132a2b2 Issue introduced in 2.6.27 with commit 64aa348edc617dea17bbd01ddee4e47886d5ec8c and fixed in 6.1.188 with commit f56e54fd24f05e9de528fcb77f6084f80c8066ce Issue introduced in 2.6.27 with commit 64aa348edc617dea17bbd01ddee4e47886d5ec8c and fixed in 6.6.157 with commit 5c3bff6cf26e6a54fbf8b893a879c32824d2d50d Issue introduced in 2.6.27 with commit 64aa348edc617dea17bbd01ddee4e47886d5ec8c and fixed in 6.12.110 with commit b2113dcd8238bf00ce37a34e67b29cf31d32a545 Issue introduced in 2.6.27 with commit 64aa348edc617dea17bbd01ddee4e47886d5ec8c and fixed in 6.18.52 with commit e7c69c6695d84220847cca62a45e879e71e79e9d Issue introduced in 2.6.27 with commit 64aa348edc617dea17bbd01ddee4e47886d5ec8c and fixed in 7.2.6 with commit 9be10f49dfc2e4b472b3a5f346483b67374774b8 Issue introduced in 2.6.27 with commit 64aa348edc617dea17bbd01ddee4e47886d5ec8c and fixed in 7.3-rc1 with commit 7577e00b9ab506202b9f1a33de3cc8cc6413a4db Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-93261 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: kernel/locking/lockdep.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: 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