In the Linux kernel, the following vulnerability has been resolved: bpf: Clamp the trace length in __bpf_get_stack() again get_perf_callchain() and get_callchain_entry_for_task() store a trace in a per-CPU entry, one per context.
Overview
In the Linux kernel, the following vulnerability has been resolved: bpf: Clamp the trace length in __bpf_get_stack() again get_perf_callchain() and get_callchain_entry_for_task() store a trace in a per-CPU entry, one per context. They release the entry before they return it. Thus a second user in the same context can write to the entry while the first user reads it. preempt_disable() stops only other tasks. __bpf_get_stack() requests at most max_depth frames. This is skip plus the frames that fit in the buffer, but not more than perf_event_max_stack. Since the commit below, it copies 'trace->nr - skip' frames with no limit. But a second user can store a longer trace. The unwinders of PowerPC add context markers that max_depth does not limit. In both cases the copy writes after the end of the buffer. Read trace->nr one time. Clamp the value to max_depth before the skip test, as __bpf_get_stack_pe() does. Thus when max_depth is less than skip, the helper returns -EFAULT, and 'trace_nr - skip' does not underflow. The copied frames can still be those of the second user.
- Published
- 12/3/2026
- Last modified
- 12/3/2026
- CVE assigner
- Linux
- NVD analysis
- Received
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
Linux Linux | ≥ 0c472ae306761526ba5e96bc4a618e29edb3a85c, < 7735e81c34d7aed929b4a3864941f675f34ea07f | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ 8fc78e468f9e4dfaa278a84d0b349e2f773aa19b, < 5e0ae0ed5db60a22aca6ef1f8aeed677bed323f9 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ e17d62fedd10ae56e2426858bd0757da544dbc73, < f9045c09e95923b91d99916f0c821a4efbff4be4 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ e17d62fedd10ae56e2426858bd0757da544dbc73, < 007fd460798be9af7d4874734f934afa47742f29 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | 7944e9f95f36d09b37229d985a7d78e7c2edfb01 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ 6.12.63, < 6.12.120 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ 6.18.2, < 6.18.66 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ 6.17.13, < 6.18 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | 6.19 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
No CVSS score is published for this record yet. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.