Database/Kernel, userspace & hypervisor
Linux kernel perf: BPF event output writes past a small on-stack structure, corrupting kernel stack memory
Impact
perf_event_bpf_output passed a small struct where perf_output_begin expected a full perf_sample_data, so the header init path wrote beyond the caller's on-stack buffer - caught by KASAN as a stack out-of-bounds. Kernel stack corruption from a reachable code path is a candidate for local privilege escalation and a reliable way to panic the host. The trigger is BPF program load/unload while a side-band perf event is active, which is routine on GPU nodes running continuous profilers or eBPF-based observability agents alongside tenant jobs; a crash here takes the whole node and every co-located job down.
Who can reach it
Local, authenticated: requires the ability to open perf events (perf_event_paranoid permitting, or CAP_PERFMON) at the same time as BPF program load/teardown. Both are usually operator-side agents rather than tenant pods, but a pod granted perf or BPF privileges can reach it.
What to do
Update to a fixed stable kernel (commits in the record) and reboot the node - drain and reboot per host. As an interim step, tighten kernel.perf_event_paranoid and confirm no tenant workload holds CAP_PERFMON or CAP_BPF.
References
Related entries
- Linux i915 GPU kernel driver (active barrier tracking): Non-idle barriers were misused as fence trackers, corruptingCVE-2023-53087 · Linux i915 GPU kernel driver (active barrier tracking)High
- Linux kernel amdkfd (KFD compute driver, /dev/kfd) (drm/amdkfd): Missing or insufficient validation of user-suppliedCVE-2023-53090 · Linux kernel amdkfd (KFD compute driver, /dev/kfd) (drm/amdkfd)High
- Linux kernel arm64: vector length change allocates SVE state with the old length, undersizing the bufferCVE-2023-53184 · Linux kernel arm64 SVE/SME (vector length change reallocates state before the new length is stored)High
- Linux kernel (drivers/iommu/iommufd): The pfn batch carries the wrong page-frame number forward when a mapping spans aCVE-2023-53236 · Linux kernel (drivers/iommu/iommufd)High
- Linux i915 GPU kernel driver (display page table objects): The buffer object backing a display page tableCVE-2023-53378 · Linux i915 GPU kernel driver (display page table objects)High
- Linux i915 GPU kernel driver: A use-after-free in the i915 GPU kernel driver. The general shape is that a GPU object isCVE-2023-53552 · Linux i915 GPU kernel driverHigh
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.