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 perf-debuginfoUpgrade kernel-livepatch-4.14.304-226.531Upgrade kernel-tools-debuginfoUpgrade kernel-develUpgrade kernel-livepatch-5.15.86-53.137Upgrade kernel-debuginfo-common-x86_64Upgrade kernel-debuginfoUpgrade python-perf-debuginfoUpgrade kernel-tools-develUpgrade bpftool-debuginfoUpgrade kernel-headersUpgrade kernelUpgrade bpftoolUpgrade kernel-toolsUpgrade kernel-debuginfo-common-aarch64Upgrade python-perfUpgrade perfUpgrade kernel-livepatch-5.10.162-141.675 | 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 kernel-toolsUpgrade kernel-tools-libsUpgrade kernel-abi-stablelistsUpgrade python3-perfUpgrade kernel | Jan 14, 2025 | Oct 21, 2024 |
| Huawei Euleros 2_0_sp12 | — | Upgrade bpftoolUpgrade kernel-toolsUpgrade kernel-tools-libsUpgrade python3-perfUpgrade kernelUpgrade kernel-abi-stablelists | Feb 11, 2025 | Oct 21, 2024 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Oct 21, 2024 |
| Ubuntu | — | Upgrade linux-iotUpgrade linux-intel-iotg-5.15Upgrade linux-hwe-5.15Upgrade linux-gcp-fipsUpgrade linux-xilinx-zynqmpUpgrade linux-aws-fipsUpgrade linux-realtimeUpgrade linux-gcp-5.15Upgrade linux-azureUpgrade linux-gkeopUpgrade linux-azure-5.15Upgrade linux-azure-fipsUpgrade linux-azure-4.15Upgrade linux-hwe-5.4Upgrade linux-intel-iotgUpgrade linux-oracle-5.15Upgrade linux-gcp-5.4Upgrade linux-gcp-4.15Upgrade linux-nvidiaUpgrade linux-azure-fdeUpgrade linux-oracleUpgrade linux-gkeop-5.15Upgrade linux-azure-5.4Upgrade linux-kvmUpgrade linux-hweUpgrade linux-ibmUpgrade linux-gkeUpgrade linux-raspiUpgrade linux-lowlatencyUpgrade linux-aws-5.15Upgrade linux-oracle-5.4Upgrade linux-bluefieldUpgrade linux-nvidia-tegra-5.15Upgrade linux-aws-5.4Upgrade linux-raspi-5.4Upgrade linux-riscv-5.15Upgrade linux-intel-iot-realtimeUpgrade linux-lowlatency-hwe-5.15Upgrade linux-gcpUpgrade linux-awsUpgrade linux-ibm-5.4Upgrade linux-fipsUpgrade linuxUpgrade linux-aws-hwe | 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