In the Linux kernel, the following vulnerability has been resolved:
memcg: fix possible use-after-free in memcg_write_event_control()
memcg_write_event_control() accesses the dentry->d_name of the specified control fd to route the write call. As a cgroup interface file can't be renamed, it's safe to access d_name as long as the specified file is a regular cgroup file. Also, as these cgroup interface files can't be removed before the directory, it's safe to access the parent too.
Prior to 347c4a874710 ("memcg: remove cgroup_event->cft"), there was a call to __file_cft() which verified that the specified file is a regular cgroupfs file before further accesses. The cftype pointer returned from __file_cft() was no longer necessary and the commit inadvertently dropped the file type check with it allowing any file to slip through. With the invarients broken, the d_name and parent accesses can now race against renames and removals of arbitrary files and cause use-after-free's.
Fix the bug by resurrecting the file type check in __file_cft(). Now that cgroupfs is implemented through kernfs, checking the file operations needs to go through a layer of indirection. Instead, let's check the superblock and dentry type.
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade kernel-livepatch-5.15.86-53.137Upgrade kernel-debuginfoUpgrade kernel-develUpgrade perf-debuginfoUpgrade kernel-livepatch-4.14.304-226.531Upgrade kernel-tools-debuginfoUpgrade python-perf-debuginfoUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-tools-develUpgrade kernelUpgrade bpftool-debuginfoUpgrade kernel-headersUpgrade python-perfUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-toolsUpgrade perfUpgrade kernel-livepatch-5.10.162-141.675Upgrade bpftool | Jan 22, 2025 | Oct 21, 2024 |
| Amazon_linux | — | Upgrade kernel | Jan 23, 2025 | Mar 20, 2023 |
| Debian | — | Upgrade linux | Oct 23, 2024 | Oct 23, 2024 |
| Dell Powerstore Dsa2025223 | — | Upgrade Dell PowerStoreOS to the latest version | Oct 23, 2025 | May 27, 2025 |
| Huawei Euleros 2_0_sp10 | — | Upgrade kernelUpgrade python3-perfUpgrade kernel-toolsUpgrade kernel-tools-libsUpgrade kernel-abi-stablelists | Jan 14, 2025 | Oct 21, 2024 |
| Huawei Euleros 2_0_sp12 | — | Upgrade python3-perfUpgrade kernelUpgrade kernel-abi-stablelistsUpgrade bpftoolUpgrade kernel-tools-libsUpgrade kernel-tools | Feb 11, 2025 | Oct 21, 2024 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Oct 21, 2024 |
| Ubuntu | — | Upgrade linux-aws-5.15Upgrade linux-lowlatency-hwe-5.15Upgrade linux-aws-5.4Upgrade linux-bluefieldUpgrade linuxUpgrade linux-gkeUpgrade linux-lowlatencyUpgrade linux-riscv-5.15Upgrade linux-raspi-5.4Upgrade linux-aws-hweUpgrade linux-raspiUpgrade linux-nvidia-tegra-5.15Upgrade linux-fipsUpgrade linux-ibm-5.4Upgrade linux-gcpUpgrade linux-intel-iot-realtimeUpgrade linux-oracle-5.4Upgrade linux-awsUpgrade linux-kvmUpgrade linux-azureUpgrade linux-gcp-5.15Upgrade linux-iotUpgrade linux-hwe-5.15Upgrade linux-xilinx-zynqmpUpgrade linux-hwe-5.4Upgrade linux-aws-fipsUpgrade linux-intel-iotgUpgrade linux-gkeop-5.15Upgrade linux-oracle-5.15Upgrade linux-azure-4.15Upgrade linux-azure-fdeUpgrade linux-gcp-4.15Upgrade linux-azure-fipsUpgrade linux-azure-5.15Upgrade linux-oracleUpgrade linux-gkeopUpgrade linux-gcp-5.4Upgrade linux-ibmUpgrade linux-realtimeUpgrade linux-nvidiaUpgrade linux-intel-iotg-5.15Upgrade linux-gcp-fipsUpgrade linux-hweUpgrade linux-azure-5.4 | Nov 19, 2024 | Oct 21, 2024 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | Oct 21, 2024 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub