CVE-2023-53421

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-53421
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53421.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-53421
Downstream
Published
2025-09-18T16:04:04Z
Modified
2025-10-08T21:40:21.188247Z
Summary
blk-cgroup: Reinit blkg_iostat_set after clearing in blkcg_reset_stats()
Details

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

blk-cgroup: Reinit blkgiostatset after clearing in blkcgresetstats()

When blkgalloc() is called to allocate a blkcggq structure with the associated blkgiostatset's, there are 2 fields within blkgiostatset that requires proper initialization - blkg & sync. The former field was introduced by commit 3b8cc6298724 ("blk-cgroup: Optimize blkcgrstatflush()") while the later one was introduced by commit f73316482977 ("blk-cgroup: reimplement basic IO stats using cgroup rstat").

Unfortunately those fields in the blkgiostatset's are not properly re-initialized when they are cleared in v1's blkcgresetstats(). 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.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f73316482977ac401ac37245c9df48079d4e11f3
Fixed
b0d26283af612b9e0cc3188b0b88ad7fdea447e8
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f73316482977ac401ac37245c9df48079d4e11f3
Fixed
abbce7f82613ea5eeefd0fc3c1c8e449b9cef2a2
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f73316482977ac401ac37245c9df48079d4e11f3
Fixed
3d2af77e31ade05ff7ccc3658c3635ec1bea0979

Affected versions

v5.*

v5.10
v5.10-rc1
v5.10-rc2
v5.10-rc3
v5.10-rc4
v5.10-rc5
v5.10-rc6
v5.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