CVE-2026-143324

Not scored yetLast modified Dec 3, 2026

Description

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143325In the Linux kernel, the following vulnerability has been resolved: gpio: mpc8xxx: Fix potential use-after-free of IRQ domain GPIO chip clCVE-2026-143326In the Linux kernel, the following vulnerability has been resolved: net: sparx5/lan969x: release the in-flight slot of a stale TX skb sparCVE-2026-143327In the Linux kernel, the following vulnerability has been resolved: regulator: qcom_spmi: don't take a sleeping lock in the SAW IPI The SACVE-2026-143328In the Linux kernel, the following vulnerability has been resolved: virtio_blk: Reset device on probe error paths after DRIVER_OK virtblk_CVE-2026-143329In the Linux kernel, the following vulnerability has been resolved: vduse: avoid infinite loop when no affinity CPU is online If all CPUs CVE-2026-143337.5The Demi WordPress plugin before 0.0.7 stores its full-site backup archives in a publicly accessible location under a predictable filename CVE-2026-143330In the Linux kernel, the following vulnerability has been resolved: vhost-vdpa: drop the parent's vq callback before the call fd is releaseCVE-2026-143331In the Linux kernel, the following vulnerability has been resolved: vhost: reject invalid IOTLB update permissions vhost_chr_write_iter() CVE-2026-143332In the Linux kernel, the following vulnerability has been resolved: vdpa: fix double free of the reply skb in vdpa_nl_cmd_dev_config_get_doCVE-2026-143333In the Linux kernel, the following vulnerability has been resolved: vhost: fix dirty logging for in-order used ring entries With VIRTIO_F_CVE-2026-143334In the Linux kernel, the following vulnerability has been resolved: vhost-scsi: do not relock event vq mutex on send_evt fallback vhost_scCVE-2026-143335In the Linux kernel, the following vulnerability has been resolved: vdpa: invalidate DMA mappings before releasing memory vdpa can release
CVE-2026-143324: Unscored | Vulnix