CVE-2023-52468
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2023-52468 is a use-after-free vulnerability discovered in the Linux kernel's class_register() function. The vulnerability occurs when the lock_class_key remains registered and can be found in lock_keys_hash hlist after subsys_private is freed in the error handler path. This vulnerability affects Linux kernel versions from 6.4.0 up to (excluding) 6.6.14 and from 6.7.0 up to (excluding) 6.7.2. The issue was discovered and reported in December 2023 (Kernel Patch).

Technical details

The vulnerability stems from a race condition where a task iterating over the lock_keys_hash later may cause use-after-free. The issue manifests when a driver fails to kset_register due to creating a duplicate filename '/class/xxx'. When KASAN is enabled, it reports an invalid-access bug in lockdep_register_key. The vulnerability has been assigned a CVSS v3.1 Base Score of 7.8 (HIGH) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability can lead to use-after-free conditions when lockdep is enabled, potentially resulting in system crashes or memory corruption. However, it's worth noting that this only occurs if lockdep is enabled, which is not typical for normal system operations (Kernel Patch).

Mitigation and workarounds

The vulnerability has been patched by adding a lockdep_unregister_key(key) call before kfree(cp) in the error handler path. Users are advised to upgrade to Linux kernel versions 6.6.14 or 6.7.2 or later, which contain the fix. The patch fixes the issue by ensuring proper deregistration of the lock_class_key before freeing the associated memory (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68764N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug
NoYesJan 05, 2026
CVE-2025-68758N/AN/A
  • Linux KernelLinux Kernel
  • linux-riscv
NoYesJan 05, 2026
CVE-2025-68756N/AN/A
  • Linux KernelLinux Kernel
  • linux-fips
NoYesJan 05, 2026
CVE-2025-68753N/AN/A
  • Linux KernelLinux Kernel
  • python3-perf
NoYesJan 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management