Junglewise Threat Intelligence

CVE-2023-54271: Linux Kernel NULL pointer dereference in blk-cgroup policy activation

CVE-2023-54271 · Severity: info · CVSS 5.5 · Published 2025-12-30

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's block control group (blk-cgroup) subsystem can cause a system crash. The issue occurs when the system attempts to manage disk I/O policies, leading to a 'NULL pointer dereference' that halts the operating system. This could be used by a local user to cause a denial-of-service, impacting the availability of the server or workstation.

Technical details

A race condition exists in blkcg_activate_policy() within the Linux kernel's block layer. The vulnerability is caused by installing blkg_policy_data (pd) into the blkg->pd[] array before it has been fully initialized by ioc_pd_init(). If a concurrent process, such as ioc_weight_write(), iterates through the blkg list and attempts to access the uninitialized pd while the queue_lock is temporarily released, it encounters a NULL pointer. This specifically affects the blk-iocost policy. The fix involves restructuring the activation sequence to allocate, initialize, and online each pd atomically while holding the blkcg->lock, ensuring that any installed policy data is always in a valid state.

Affected products

  • Linux Linux Kernel 5.4 and later versions prior to 5.10.195, 5.15.132, 6.1.53, 6.5.3, and 6.6-rc1

Timeline

  • 2023-08-16: disclosed: Initial patch authored by Tejun Heo
  • 2023-09-13: patched: Patch committed to stable branches
  • 2025-12-30: advisory: NVD publication date

References

Related threats