# CVE-2023-53522: cgroup,freezer: hold cpu_hotplug_lock before freezer_mutex

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-10-01T11:46:08.909Z
- Modified: 2026-11-05T21:17:24.563Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

cgroup,freezer: hold cpu_hotplug_lock before freezer_mutex

syzbot is reporting circular locking dependency between cpu_hotplug_lock
and freezer_mutex, for commit f5d39b020809 ("freezer,sched: Rewrite core
freezer logic") replaced atomic_inc() in freezer_apply_state() with
static_branch_inc() which holds cpu_hotplug_lock.

cpu_hotplug_lock => cgroup_threadgroup_rwsem => freezer_mutex

  cgroup_file_write() {
    cgroup_procs_write() {
      __cgroup_procs_write() {
        cgroup_procs_write_start() {
          cgroup_attach_lock() {
            cpus_read_lock() {
              percpu_down_read(&cpu_hotplug_lock);
            }
            percpu_down_write(&cgroup_threadgroup_rwsem);
          }
        }
        cgroup_attach_task() {
          cgroup_migrate() {
            cgroup_migrate_execute() {
              freezer_attach() {
                mutex_lock(&freezer_mutex);
                (...snipped...)
              }
            }
          }
        }
        (...snipped...)
      }
    }
  }

freezer_mutex => cpu_hotplug_lock

  cgroup_file_write() {
    freezer_write() {
      freezer_change_state() {
        mutex_lock(&freezer_mutex);
        freezer_apply_state() {
          static_branch_inc(&freezer_active) {
            static_key_slow_inc() {
              cpus_read_lock();
              static_key_slow_inc_cpuslocked();
              cpus_read_unlock();
            }
          }
        }
        mutex_unlock(&freezer_mutex);
      }
    }
  }

Swap locking order by moving cpus_read_lock() in freezer_apply_state()
to before mutex_lock(&freezer_mutex) in freezer_change_state().

(As written by CVE List.)

## Affected

- Linux Linux: from f5d39b020809146cc28e6e73369bf8065e0310aa before 3756171b97c307d9df8b8ded1d883eec30172085; from f5d39b020809146cc28e6e73369bf8065e0310aa before 34fbb7b45bae20b551dda24337c7761ca13ce69d; from f5d39b020809146cc28e6e73369bf8065e0310aa before 57dcd64c7e036299ef526b400a8d12b8a2352f26; 6.1 (not affected: before 6.1; from 6.1.25 up to 6.1.*; from 6.2.12 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 6.1 before 6.1.25; from 6.2 before 6.2.12; 6.3

## References

- <https://git.kernel.org/stable/c/3756171b97c307d9df8b8ded1d883eec30172085> (patch)
- <https://git.kernel.org/stable/c/34fbb7b45bae20b551dda24337c7761ca13ce69d> (patch)
- <https://git.kernel.org/stable/c/57dcd64c7e036299ef526b400a8d12b8a2352f26> (patch)

## Sources

- CVE List: [CVE-2023-53522](https://www.cve.org/CVERecord?id=CVE-2023-53522), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2023-53522](https://nvd.nist.gov/vuln/detail/CVE-2023-53522), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2023-53522 · Whole record: https://cve.day/CVE-2023-53522.json · Rebuilt by cve.day 2026-11-25T22:58:34.922Z
