CVE-2023-53421

blk-cgroup: Reinit blkg_iostat_set after clearing in blkcg_reset_stats()

Medium · published September 18, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
5.4
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

blk-cgroup: Reinit blkg_iostat_set after clearing in blkcg_reset_stats()

When blkg_alloc() is called to allocate a blkcg_gq structure

with the associated blkg_iostat_set's, there are 2 fields within

blkg_iostat_set that requires proper initialization - blkg & sync.

The former field was introduced by commit 3b8cc6298724 ("blk-cgroup:

Optimize blkcg_rstat_flush()") while the later one was introduced by

commit f73316482977 ("blk-cgroup: reimplement basic IO stats using

cgroup rstat").

Unfortunately those fields in the blkg_iostat_set's are not properly

re-initialized when they are cleared in v1's blkcg_reset_stats(). This

can lead to a kernel panic due to NULL pointer access of the blkg

pointer. The missing initialization of sync is less problematic and

can be a problem in a debug kernel due to missing lockdep initialization.

Fix these problems by re-initializing them after memory clearing.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00165 · 5.4th percentile
Published
2025-09-18T16:04Z
EPSS history
Timeline
  • 18 SEP 16:04Z
    blk-cgroup: Reinit blkg_iostat_set after clearing in blkcg_reset_stats()
    cvelistv5