In the Linux kernel, the following vulnerability has been resolved:
ftrace: Do not over-allocate ftrace memory
The pg_remaining calculation in ftrace_process_locs() assumes that ENTRIES_PER_PAGE multiplied by 2^order equals the actual capacity of the allocated page group. However, ENTRIES_PER_PAGE is PAGE_SIZE / ENTRY_SIZE (integer division). When PAGE_SIZE is not a multiple of ENTRY_SIZE (e.g. 4096 / 24 = 170 with remainder 16), high-order allocations (like 256 pages) have significantly more capacity than 256 * 170. This leads to pg_remaining being underestimated, which in turn makes skip (derived from skipped - pg_remaining) larger than expected, causing the WARN(skip != remaining) to trigger.
Extra allocated pages for ftrace: 2 with 654 skipped WARNING: CPU: 0 PID: 0 at kernel/trace/ftrace.c:7295 ftrace_process_locs+0x5bf/0x5e0
A similar problem in ftrace_allocate_records() can result in allocating too many pages. This can trigger the second warning in ftrace_process_locs().
Extra allocated pages for ftrace WARNING: CPU: 0 PID: 0 at kernel/trace/ftrace.c:7276 ftrace_process_locs+0x548/0x580
Use the actual capacity of a page group to determine the number of pages to allocate. Have ftrace_allocate_pages() return the number of allocated pages to avoid having to calculate it. Use the actual page group capacity when validating the number of unused pages due to skipped entries. Drop the definition of ENTRIES_PER_PAGE since it is no longer used.
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Redhat_linux | — | No solution exists | Jul 17, 2026 | Feb 4, 2026 |
| Ubuntu | — | Upgrade linux-image-oracleUpgrade linux-image-6.17.0-1019-oracleUpgrade linux-image-6.17.0-1019-oracle-64kUpgrade linux-image-nvidia-hwe-24.04Upgrade linux-image-nvidia-64k-hwe-24.04Upgrade linux-image-6.17.0-1018-realtimeUpgrade linux-image-gcp-6.17Upgrade linux-image-gcp-64k-6.17Upgrade linux-image-gcp-64kUpgrade linux-image-realtime-6.17Upgrade linux-image-nvidia-64k-6.17Upgrade linux-image-azure-fde-6.17Upgrade linux-image-oem-24.04Upgrade linux-image-6.17.0-1021-gcp-64kUpgrade linux-image-nvidia-6.17Upgrade linux-image-6.17.0-1021-gcpUpgrade linux-image-azure-fdeUpgrade linux-image-6.17.0-1021-azureUpgrade linux-image-oracle-6.17Upgrade linux-image-oem-24.04bUpgrade linux-image-6.17.0-1031-nvidia-64kUpgrade linux-image-oracle-64k-6.17Upgrade linux-image-oem-24.04dUpgrade linux-image-azureUpgrade linux-image-6.17.0-1018-azure-fdeUpgrade linux-image-oracle-64kUpgrade linux-image-oem-6.17Upgrade linux-image-realtime-hwe-24.04Upgrade linux-image-oem-24.04cUpgrade linux-image-oem-24.04aUpgrade linux-image-azure-6.17Upgrade linux-image-6.17.0-1030-oemUpgrade linux-image-gcpUpgrade linux-image-6.17.0-1031-nvidia | Jul 21, 2026 | Jul 20, 2026 |
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