# CVE-2023-54019: sched/psi: use kernfs polling functions for PSI trigger polling

> 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, CNA) `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.22% (percentile 8, 2026-11-26)
- **Published:** 2025-12-24T10:55:49.840Z
- **Modified:** 2026-10-15T22:17:50.940Z

## Who should check

- Anyone running Linux \>= 0e94682b73bfa6c44c98af7a26771c9c08c055d5, \< 92cc0153324b6ae8577a39f5bf2cd83c9a34ea6a; \>= 0e94682b73bfa6c44c98af7a26771c9c08c055d5, \< d124ab17024cc85a1079b7810a018a497ebc13da; \>= 0e94682b73bfa6c44c98af7a26771c9c08c055d5, \< aff037078ecaecf34a7c2afab1341815f90fba5e
- Anyone running Linux 5.2

## Description

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

sched/psi: use kernfs polling functions for PSI trigger polling

Destroying psi trigger in cgroup\_file\_release causes UAF issues when
a cgroup is removed from under a polling process. This is happening
because cgroup removal causes a call to cgroup\_file\_release while the
actual file is still alive. Destroying the trigger at this point would
also destroy its waitqueue head and if there is still a polling process
on that file accessing the waitqueue, it will step on the freed pointer:

do\_select
  vfs\_poll
                           do\_rmdir
                             cgroup\_rmdir
                               kernfs\_drain\_open\_files
                                 cgroup\_file\_release
                                   cgroup\_pressure\_release
                                     psi\_trigger\_destroy
                                       wake\_up\_pollfree(&t-\>event\_wait)
// vfs\_poll is unblocked
                                       synchronize\_rcu
                                       kfree(t)
  poll\_freewait -\> UAF access to the trigger's waitqueue head

Patch \[1\] fixed this issue for epoll() case using wake\_up\_pollfree(),
however the same issue exists for synchronous poll() case.
The root cause of this issue is that the lifecycles of the psi trigger's
waitqueue and of the file associated with the trigger are different. Fix
this by using kernfs\_generic\_poll function when polling on cgroup-specific
psi triggers. It internally uses kernfs\_open\_node-\>poll waitqueue head
with its lifecycle tied to the file's lifecycle. This also renders the
fix in \[1\] obsolete, so revert it.

\[1\] commit c2dbe32d5db5 ("sched/psi: Fix use-after-free in ep\_remove\_wait\_queue()")

## Affected and fixed versions

- Linux: \>= 0e94682b73bfa6c44c98af7a26771c9c08c055d5, \< 92cc0153324b6ae8577a39f5bf2cd83c9a34ea6a; \>= 0e94682b73bfa6c44c98af7a26771c9c08c055d5, \< d124ab17024cc85a1079b7810a018a497ebc13da; \>= 0e94682b73bfa6c44c98af7a26771c9c08c055d5, \< aff037078ecaecf34a7c2afab1341815f90fba5e (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-54019.md
Affected: Linux >= 0e94682b73bfa6c44c98af7a26771c9c08c055d5, < 92cc0153324b6ae8577a39f5bf2cd83c9a34ea6a; >= 0e94682b73bfa6c44c98af7a26771c9c08c055d5, < d124ab17024cc85a1079b7810a018a497ebc13da; >= 0e94682b73bfa6c44c98af7a26771c9c08c055d5, < aff037078ecaecf34a7c2afab1341815f90fba5e; Linux 5.2
Fixed in: Linux 92cc0153324b6ae8577a39f5bf2cd83c9a34ea6a

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-54019 being exploited?

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

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

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

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

Linux \>= 0e94682b73bfa6c44c98af7a26771c9c08c055d5, \< 92cc0153324b6ae8577a39f5bf2cd83c9a34ea6a; \>= 0e94682b73bfa6c44c98af7a26771c9c08c055d5, \< d124ab17024cc85a1079b7810a018a497ebc13da; \>= 0e94682b73bfa6c44c98af7a26771c9c08c055d5, \< aff037078ecaecf34a7c2afab1341815f90fba5e; Linux 5.2.

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

Yes. Fixed in Linux 92cc0153324b6ae8577a39f5bf2cd83c9a34ea6a. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/92cc0153324b6ae8577a39f5bf2cd83c9a34ea6a>
- other: <https://git.kernel.org/stable/c/d124ab17024cc85a1079b7810a018a497ebc13da>
- other: <https://git.kernel.org/stable/c/aff037078ecaecf34a7c2afab1341815f90fba5e>

## 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-54019>

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