In the Linux kernel, the following vulnerability has been resolved:
perf sched: Fix register_pid() overflow, strcpy, and BUG_ON
register_pid() has several issues when processing untrusted perf.data:
1. Integer overflow: (pid + 1) * sizeof(struct task_desc *) can wrap to a small value on 32-bit systems when pid is large (e.g. 0x40000000), causing realloc to return a tiny buffer followed by out-of-bounds writes in the initialization loop.
2. Heap buffer overflow: strcpy(task->comm, comm) copies the untrusted comm string into a fixed 20-byte COMM_LEN buffer with no length check.
3. BUG_ON on allocation failure: perf.data is untrusted input, so allocation failures should be handled gracefully rather than killing the process.
4. Realloc of sched->tasks assigned directly back, leaking the old pointer on failure; nr_tasks incremented before the realloc, leaving corrupted state on failure.
Cap pid at PID_MAX_LIMIT (4194304, matching the kernel's maximum on 64-bit), replace strcpy with strlcpy, guard against NULL comm, replace BUG_ON with NULL returns using safe realloc patterns, and add NULL checks in callers that dereference the result.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade kernel-tools-develUpgrade kernel-tools-debuginfoUpgrade python-perf-debuginfoUpgrade kernel-debuginfoUpgrade kernelUpgrade kernel-headersUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-develUpgrade kernel-livepatch-5.10.270-271.1109Upgrade kernel-livepatch-5.15.221-157.262Upgrade bpftool-debuginfoUpgrade kernel-debuginfo-common-aarch64Upgrade python-perfUpgrade bpftoolUpgrade perf-debuginfoUpgrade perfUpgrade kernel-tools | Oct 19, 2026 | Oct 19, 2026 |
| Amazon_linux_2023 | — | Upgrade kernel-livepatch-6.1.188-233.385Upgrade python3-perf-debuginfoUpgrade kernel-tools-develUpgrade bpftoolUpgrade kernel-modules-extra-commonUpgrade kernel-develUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-toolsUpgrade perfUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-modules-extraUpgrade perf-debuginfoUpgrade kernel-tools-debuginfoUpgrade python3-perfUpgrade kernelUpgrade kernel-debuginfoUpgrade bpftool-debuginfoUpgrade kernel-headers | Oct 13, 2026 | Aug 28, 2026 |
| Debian | — | Upgrade linux-6.12Upgrade linux | Sep 30, 2026 | Aug 28, 2026 |
| Ubuntu | — | Upgrade linux-image-aws-7.0Upgrade linux-image-7.0.0-1013-oracle-64kUpgrade linux-image-7.0.0-1016-azure-fdeUpgrade linux-image-generic-7.0Upgrade linux-image-azure-fdeUpgrade linux-image-generic-hwe-26.04Upgrade linux-image-generic-64kUpgrade linux-image-7.0.0-38-realtimeUpgrade linux-image-aws-64k-7.0Upgrade linux-image-7.0.0-1015-oemUpgrade linux-image-gke-64k-hwe-26.04Upgrade linux-image-gke-64k-7.0Upgrade linux-image-awsUpgrade linux-image-oem-7.0Upgrade linux-image-azureUpgrade linux-image-gke-64kUpgrade linux-image-oem-26.04aUpgrade linux-image-oem-26.04Upgrade linux-image-gke-7.0Upgrade linux-image-7.0.0-1014-gcpUpgrade linux-image-realtime-7.0Upgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-7.0.0-38-realtime-64kUpgrade linux-image-realtime-64kUpgrade linux-image-gcp-64k-7.0Upgrade linux-image-realtimeUpgrade linux-image-gcp-64kUpgrade linux-image-oracle-64k-7.0Upgrade linux-image-gke-hwe-26.04Upgrade linux-image-7.0.0-38-generic-64kUpgrade linux-image-7.0.0-38-genericUpgrade linux-image-7.0.0-1017-azureUpgrade linux-image-realtime-hwe-26.04Upgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-generic-64k-7.0Upgrade linux-image-gcp-7.0Upgrade linux-image-azure-fde-lts-26.04Upgrade linux-image-oracle-64kUpgrade linux-image-genericUpgrade linux-image-virtual-hwe-26.04Upgrade linux-image-7.0.0-1013-oracleUpgrade linux-image-7.0.0-1008-gke-64kUpgrade linux-image-ibm-7.0Upgrade linux-image-gcpUpgrade linux-image-azure-fde-7.0Upgrade linux-image-7.0.0-1014-awsUpgrade linux-image-7.0.0-1008-gkeUpgrade linux-image-realtime-64k-7.0Upgrade linux-image-7.0.0-1014-gcp-64kUpgrade linux-image-7.0.0-1015-ibmUpgrade linux-image-7.0.0-1014-aws-64kUpgrade linux-image-virtualUpgrade linux-image-oracleUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-virtual-7.0Upgrade linux-image-realtime-64k-hwe-26.04Upgrade linux-image-gkeUpgrade linux-image-azure-7.0Upgrade linux-image-oracle-7.0Upgrade linux-image-ibmUpgrade linux-image-generic-hwe-24.04Upgrade linux-image-azure-lts-26.04Upgrade linux-image-aws-64k | Oct 7, 2026 | Oct 6, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Sep 30, 2026 | Aug 28, 2026 |
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