PT-2026-167182
CVE-2026-143324
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
bpf: Don't move a MAP FIXED address in arena get unmapped area()
The user range of an arena must not cross a 4 GiB boundary. Thus
arena get unmapped area() asks the mm for 2 * len bytes and rounds the
result up if necessary. This is correct only if the mm finds a free range.
With MAP FIXED the mm does no search and returns addr. For
MAP FIXED NOREPLACE, do mmap() also sets MAP FIXED.
With MAP FIXED the arena is not at addr after round up(). Thus mmap()
removes mappings outside the range from addr to addr + len. It keeps a part
of those in this range. Also, round up() can wrap to address 0, and the
test for address 0 is before it.
The arch code gets twice the length of the mapping. Thus it can refuse a
valid MAP FIXED range. On s390 the arch code also grows the page table for
the range. With the double length it can omit this step for a valid range.
The test for a crossing is not exact. Because ret is a long, ret >> 32
extends the sign, but the other side is unsigned. The sides are never equal
for an address with bit 63 set, and round up() always runs. Such user
addresses exist on s390. arena map alloc() does the same test with a u64.
With MAP FIXED, pass len to the mm. Return -EINVAL if the range crosses a
boundary, as for address 0. Make ret unsigned, so that only these ranges
get the error. On x86-64, if round up() gives address 0 today, mmap() now
fails with -EINVAL or with -ENOMEM from the mm. Today mmap() can also fail
for the address after round up(), for example with -ENOMEM, -EEXIST, -EPERM
or -EBUSY.
Without MAP FIXED the mm must still find a free range of 2 * len bytes
inside the address space of the task. The range after round up() is inside
it, and round up() cannot wrap. An address with bit 63 set now moves only
if its range crosses a boundary.
For an arena, libbpf uses MAP FIXED only with map extra, and
arena map alloc() refuses a map extra range that crosses a boundary. A
subsequent mmap() must use the range of the first mmap(). For mmap() of the
map fd, this range comes from arena get unmapped area(), thus it crosses no
boundary. arena map alloc() still accepts a map extra above TASK SIZE, and
mmap() of such an arena fails.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾