# CVE-2023-53522: cgroup,freezer: hold cpu\_hotplug\_lock before freezer\_mutex

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **Published:** 2025-10-01T11:46:08.909Z
- **Modified:** 2026-11-05T21:17:24.563Z

## Who should check

- Anyone running Linux \>= f5d39b020809146cc28e6e73369bf8065e0310aa, \< 3756171b97c307d9df8b8ded1d883eec30172085; \>= f5d39b020809146cc28e6e73369bf8065e0310aa, \< 34fbb7b45bae20b551dda24337c7761ca13ce69d; \>= f5d39b020809146cc28e6e73369bf8065e0310aa, \< 57dcd64c7e036299ef526b400a8d12b8a2352f26
- Anyone running Linux 6.1

## 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().

## Affected and fixed versions

- Linux: \>= f5d39b020809146cc28e6e73369bf8065e0310aa, \< 3756171b97c307d9df8b8ded1d883eec30172085; \>= f5d39b020809146cc28e6e73369bf8065e0310aa, \< 34fbb7b45bae20b551dda24337c7761ca13ce69d; \>= f5d39b020809146cc28e6e73369bf8065e0310aa, \< 57dcd64c7e036299ef526b400a8d12b8a2352f26 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 57dcd64c7e036299ef526b400a8d12b8a2352f26 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53522. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53522.md
Affected: Linux >= f5d39b020809146cc28e6e73369bf8065e0310aa, < 3756171b97c307d9df8b8ded1d883eec30172085; >= f5d39b020809146cc28e6e73369bf8065e0310aa, < 34fbb7b45bae20b551dda24337c7761ca13ce69d; >= f5d39b020809146cc28e6e73369bf8065e0310aa, < 57dcd64c7e036299ef526b400a8d12b8a2352f26; Linux 6.1
Fixed in: Linux 3756171b97c307d9df8b8ded1d883eec30172085, Linux 34fbb7b45bae20b551dda24337c7761ca13ce69d, Linux 57dcd64c7e036299ef526b400a8d12b8a2352f26

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53522 being exploited?

There is no confirmed exploitation: CVE-2023-53522 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53522?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53522?

Linux \>= f5d39b020809146cc28e6e73369bf8065e0310aa, \< 3756171b97c307d9df8b8ded1d883eec30172085; \>= f5d39b020809146cc28e6e73369bf8065e0310aa, \< 34fbb7b45bae20b551dda24337c7761ca13ce69d; \>= f5d39b020809146cc28e6e73369bf8065e0310aa, \< 57dcd64c7e036299ef526b400a8d12b8a2352f26; Linux 6.1.

### Is there a fix for CVE-2023-53522?

Yes. Fixed in Linux 3756171b97c307d9df8b8ded1d883eec30172085, Linux 34fbb7b45bae20b551dda24337c7761ca13ce69d, Linux 57dcd64c7e036299ef526b400a8d12b8a2352f26. Upgrade Linux to 57dcd64c7e036299ef526b400a8d12b8a2352f26 or later.

### How do I check if I'm affected by CVE-2023-53522?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53522>

HTML: <https://flawdb.com/CVE-2023-53522> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53522>
