همهٔ گزارش‌ها
متوسط

kernel: bpf, arm64: Fix address emission with tag-based KASAN enabled

متن اصلی

نسخه‌های متأثر

نسخه‌های متأثر
نامشخص
نسخهٔ اصلاح‌شده
اعلام نشده
نسخه‌های متأثر
نامشخص
نسخهٔ اصلاح‌شده
اعلام نشده

بهره‌برداری

CVE-2024-50203

احتمال بهره‌برداری در ۳۰ روز آینده: 0.23%

FIRST EPSS · ۱۴۰۵/۰۸/۲۷

شرح آسیب‌پذیری

In the Linux kernel, the following vulnerability has been resolved: bpf, arm64: Fix address emission with tag-based KASAN enabled When BPF_TRAMP_F_CALL_ORIG is enabled, the address of a bpf_tramp_image struct on the stack is passed during the size calculation pass and an address on the heap is passed during code generation. This may cause a heap buffer overflow if the heap address is tagged because emit_a64_mov_i64() will emit longer code than it did during the size calculation pass. The same problem could occur without tag-based KASAN if one of the 16-bit words of the stack address happened to be all-ones during the size calculation pass. Fix the problem by assuming the worst case (4 instructions) when calculating the size of the bpf_tramp_image address emission.

A flaw was found in the Linux kernel. Specifically, within the Berkeley Packet Filter (BPF) component, an issue arises when BPF_TRAMP_F_CALL_ORIG is enabled. During address emission, an incorrect size calculation can lead to a heap buffer overflow, where more data is written to a memory block than it was allocated for. This could allow a privileged local attacker to potentially cause a denial of service or execute arbitrary code. The default kernel configuration restricts unprivileged users from using eBPF, which reduces the attack surface for this vulnerability.