In the Linux kernel, the following vulnerability has been resolved:
capabilities: fix potential memleak on error path from vfs_getxattr_alloc()
In cap_inode_getsecurity(), we will use vfs_getxattr_alloc() to complete the memory allocation of tmpbuf, if we have completed the memory allocation of tmpbuf, but failed to call handler->get(...), there will be a memleak in below logic:
|-- ret = (int)vfs_getxattr_alloc(mnt_userns, ...) | /* ^^^ alloc for tmpbuf */ |-- value = krealloc(*xattr_value, error + 1, flags) | /* ^^^ alloc memory */ |-- error = handler->get(handler, ...) | /* error! */ |-- *xattr_value = value | /* xattr_value is &tmpbuf (memory leak!) */
So we will try to free(tmpbuf) after vfs_getxattr_alloc() fails to fix it.
[PM: subject line and backtrace tweaks]
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade kernel-livepatch-5.15.79-51.138Upgrade perfUpgrade bpftool-debuginfoUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-livepatch-5.10.155-138.670Upgrade bpftoolUpgrade kernel-develUpgrade kernel-toolsUpgrade python-perfUpgrade kernel-debuginfoUpgrade kernelUpgrade perf-debuginfoUpgrade kernel-tools-debuginfoUpgrade kernel-headersUpgrade kernel-livepatch-4.14.299-223.520Upgrade kernel-tools-develUpgrade python-perf-debuginfoUpgrade kernel-debuginfo-common-x86_64 | Jun 23, 2025 | May 1, 2025 |
| Debian | — | Upgrade linux | May 5, 2025 | May 1, 2025 |
| Huawei Euleros 2_0_sp13 | — | Upgrade python3-perfUpgrade kernelUpgrade bpftoolUpgrade kernel-tools-libsUpgrade kernel-toolsUpgrade kernel-abi-stablelists | Aug 13, 2025 | Aug 9, 2025 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | May 1, 2025 |
| Ubuntu | — | Upgrade linux-bluefieldUpgrade linux-azure-5.4Upgrade linux-azure-4.15Upgrade linux-gcp-5.15Upgrade linux-gcp-fipsUpgrade linux-awsUpgrade linux-raspi-5.4Upgrade linux-iotUpgrade linux-lowlatency-hwe-5.15Upgrade linux-gcp-4.15Upgrade linux-gcpUpgrade linux-hweUpgrade linux-realtimeUpgrade linux-hwe-5.4Upgrade linux-oracle-5.4Upgrade linux-hwe-5.15Upgrade linux-gkeUpgrade linux-ibm-5.4Upgrade linux-gcp-5.4Upgrade linuxUpgrade linux-nvidiaUpgrade linux-riscv-5.15Upgrade linux-ibmUpgrade linux-intel-iotg-5.15Upgrade linux-fipsUpgrade linux-aws-5.15Upgrade linux-aws-5.4Upgrade linux-azure-fipsUpgrade linux-gkeopUpgrade linux-kvmUpgrade linux-aws-hweUpgrade linux-oracleUpgrade linux-azureUpgrade linux-aws-fipsUpgrade linux-lowlatencyUpgrade linux-xilinx-zynqmpUpgrade linux-intel-iotgUpgrade linux-oracle-5.15Upgrade linux-azure-5.15Upgrade linux-raspi | May 6, 2025 | May 1, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | May 1, 2025 |
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