CVE-2023-53421

Source
https://cve.org/CVERecord?id=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
Related
Published
2025-09-18T16:04:04.526Z
Modified
2026-05-28T03:53:28.334351120Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53421.json",
    "cna_assigner": "Linux"
}
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
0561aa6033dd181594116d705c41fc16e97161a2
Fixed
892faa76be894d324bf48b12a55c7af7be2bad83
Fixed
b0d26283af612b9e0cc3188b0b88ad7fdea447e8
Fixed
abbce7f82613ea5eeefd0fc3c1c8e449b9cef2a2
Fixed
3d2af77e31ade05ff7ccc3658c3635ec1bea0979

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53421.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.15.199
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.162
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.3.13
Type
ECOSYSTEM
Events
Introduced
6.4.0
Fixed
6.4.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53421.json"