Bug 2324615 (CVE-2024-50203) - CVE-2024-50203 kernel: bpf, arm64: Fix address emission with tag-based KASAN enabled
Summary: CVE-2024-50203 kernel: bpf, arm64: Fix address emission with tag-based KASAN ...
Keywords:
Status: NEW
Alias: CVE-2024-50203
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2324672
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-08 13:48 UTC by OSIDB Bzimport
Modified: 2024-11-21 18:53 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-11-08 13:48:35 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.