Skip to content

sched/psi: fix race in pressure_write (CVE-2026-52991)

Philo Lu cgroups lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cgroup/psi: Set of->priv to NULL upon file releasekernel/cgroup/cgroup.c+1 -00 replies
2/2sched/psi: fix race between file release and pressure writekernel/cgroup/cgroup.c+16 -80 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

Patch[email protected]Chen Ridong
1/2
2/2T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 6.1.y 0/2] sched/psi: fix race in pressure_write (CVE-2026-52991)

This patchset is same as that for 6.12.y.

Backport of the CVE-2026-52991 fix.

1/2 (94a4acfec146) clear of->priv on release, turning the UAF into an
easier-to-detect NULL deref.
2/2 (a5b98009f16d, the CVE fix) extend cgroup_mutex to cover all

      of->priv accesses, read ctx after taking the kn lock, and NULL-check
      of->priv. It depends on 1/2 as discussed in [0].

[0] https://lore.kernel.org/all/[email protected]/

Chen Ridong (1):
cgroup/psi: Set of->priv to NULL upon file release

Edward Adam Davis (1):
sched/psi: fix race between file release and pressure write

 kernel/cgroup/cgroup.c | 25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)

--
2.47.3