CVE-2024-0443

Summary

A flaw was found in the blkgs destruction path in block/blk-cgroup.c in the Linux kernel, leading to a cgroup blkio memory leakage problem. When a cgroup is being destroyed, cgroup_rstat_flush() is only called at css_release_work_fn(), which is called when the blkcg reference count reaches 0. This circular dependency will prevent blkcg and some blkgs from being freed after they are made offline. This issue may allow an attacker with a local access to cause system instability, such as an out of memory error.

Affected Software

VendorProductVersion RangeStatus
0 < 6.4-rc7affected
Red HatRed Hat Enterprise Linux 80:4.18.0-513.5.1.el8_9 < *unaffected
Red HatRed Hat Enterprise Linux 90:5.14.0-362.8.1.el9_3 < *unaffected
Red HatRed Hat Enterprise Linux 90:5.14.0-362.8.1.el9_3 < *unaffected
Red HatRed Hat Enterprise Linux 9.2 Extended Update Support0:5.14.0-284.40.1.el9_2 < *unaffected

Weaknesses

  • CWE-402: Transmission of Private Resources into a New Sphere ('Resource Leak')

Workarounds

This flaw can be mitigated with the possible workaround identified below:

  • systemd.unified_cgroup_hierarchy=1

or

  • cgroup_disable=blkio

ADP Enrichment

CVE Program Container

Additional References

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: partial

References