CVE-2024-50203CWE-787

CVE-2024-50203

High · published November 8, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
13.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00232 · 13.3th percentile
Weakness
CWE-787 · Out-of-bounds Write
Published
2024-11-08T11:15Z
Affected products (6)
ProductVersionsFixed in
linux/linux_kernel≥ 6.10.3, < 6.116.11
linux/linux_kernel≥ 6.11, < 6.11.66.11.6
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (4)
EPSS history
Timeline
  • 08 NOV 06:07Z
    bpf, arm64: Fix address emission with tag-based KASAN enabled
    cvelistv5