{"api_version":"1","generated_at":"2026-12-04T04:10:22+00:00","cve":"CVE-2026-143324","urls":{"html":"https://cve.report/CVE-2026-143324","api":"https://cve.report/api/cve/CVE-2026-143324.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143324","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143324"},"summary":{"title":"bpf: Don't move a MAP_FIXED address in arena_get_unmapped_area()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't move a MAP_FIXED address in arena_get_unmapped_area()\n\nThe user range of an arena must not cross a 4 GiB boundary. Thus\narena_get_unmapped_area() asks the mm for 2 * len bytes and rounds the\nresult up if necessary. This is correct only if the mm finds a free range.\nWith MAP_FIXED the mm does no search and returns addr. For\nMAP_FIXED_NOREPLACE, do_mmap() also sets MAP_FIXED.\n\nWith MAP_FIXED the arena is not at addr after round_up(). Thus mmap()\nremoves mappings outside the range from addr to addr + len. It keeps a part\nof those in this range. Also, round_up() can wrap to address 0, and the\ntest for address 0 is before it.\n\nThe arch code gets twice the length of the mapping. Thus it can refuse a\nvalid MAP_FIXED range. On s390 the arch code also grows the page table for\nthe range. With the double length it can omit this step for a valid range.\n\nThe test for a crossing is not exact. Because ret is a long, ret >> 32\nextends the sign, but the other side is unsigned. The sides are never equal\nfor an address with bit 63 set, and round_up() always runs. Such user\naddresses exist on s390. arena_map_alloc() does the same test with a u64.\n\nWith MAP_FIXED, pass len to the mm. Return -EINVAL if the range crosses a\nboundary, as for address 0. Make ret unsigned, so that only these ranges\nget the error. On x86-64, if round_up() gives address 0 today, mmap() now\nfails with -EINVAL or with -ENOMEM from the mm. Today mmap() can also fail\nfor the address after round_up(), for example with -ENOMEM, -EEXIST, -EPERM\nor -EBUSY.\n\nWithout MAP_FIXED the mm must still find a free range of 2 * len bytes\ninside the address space of the task. The range after round_up() is inside\nit, and round_up() cannot wrap. An address with bit 63 set now moves only\nif its range crosses a boundary.\n\nFor an arena, libbpf uses MAP_FIXED only with map_extra, and\narena_map_alloc() refuses a map_extra range that crosses a boundary. A\nsubsequent mmap() must use the range of the first mmap(). For mmap() of the\nmap fd, this range comes from arena_get_unmapped_area(), thus it crosses no\nboundary. arena_map_alloc() still accepts a map_extra above TASK_SIZE, and\nmmap() of such an arena fails.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:18:19","updated_at":"2026-12-03 10:18:19"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/c6850945f8da9bc4940b2b1079cc130c0225b31d","name":"https://git.kernel.org/stable/c/c6850945f8da9bc4940b2b1079cc130c0225b31d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/92b5ce3ca5b7c641e2678f92419aa7833951bc9d","name":"https://git.kernel.org/stable/c/92b5ce3ca5b7c641e2678f92419aa7833951bc9d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143324","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143324","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 317460317a02a1af512697e6e964298dedd8a163 c6850945f8da9bc4940b2b1079cc130c0225b31d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 317460317a02a1af512697e6e964298dedd8a163 92b5ce3ca5b7c641e2678f92419aa7833951bc9d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.9","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"143324","cve":"CVE-2026-143324","epss":"0.001980000","percentile":"0.099430000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["kernel/bpf/arena.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"c6850945f8da9bc4940b2b1079cc130c0225b31d","status":"affected","version":"317460317a02a1af512697e6e964298dedd8a163","versionType":"git"},{"lessThan":"92b5ce3ca5b7c641e2678f92419aa7833951bc9d","status":"affected","version":"317460317a02a1af512697e6e964298dedd8a163","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/bpf/arena.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.9"},{"lessThan":"6.9","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"6.9","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't move a MAP_FIXED address in arena_get_unmapped_area()\n\nThe user range of an arena must not cross a 4 GiB boundary. Thus\narena_get_unmapped_area() asks the mm for 2 * len bytes and rounds the\nresult up if necessary. This is correct only if the mm finds a free range.\nWith MAP_FIXED the mm does no search and returns addr. For\nMAP_FIXED_NOREPLACE, do_mmap() also sets MAP_FIXED.\n\nWith MAP_FIXED the arena is not at addr after round_up(). Thus mmap()\nremoves mappings outside the range from addr to addr + len. It keeps a part\nof those in this range. Also, round_up() can wrap to address 0, and the\ntest for address 0 is before it.\n\nThe arch code gets twice the length of the mapping. Thus it can refuse a\nvalid MAP_FIXED range. On s390 the arch code also grows the page table for\nthe range. With the double length it can omit this step for a valid range.\n\nThe test for a crossing is not exact. Because ret is a long, ret >> 32\nextends the sign, but the other side is unsigned. The sides are never equal\nfor an address with bit 63 set, and round_up() always runs. Such user\naddresses exist on s390. arena_map_alloc() does the same test with a u64.\n\nWith MAP_FIXED, pass len to the mm. Return -EINVAL if the range crosses a\nboundary, as for address 0. Make ret unsigned, so that only these ranges\nget the error. On x86-64, if round_up() gives address 0 today, mmap() now\nfails with -EINVAL or with -ENOMEM from the mm. Today mmap() can also fail\nfor the address after round_up(), for example with -ENOMEM, -EEXIST, -EPERM\nor -EBUSY.\n\nWithout MAP_FIXED the mm must still find a free range of 2 * len bytes\ninside the address space of the task. The range after round_up() is inside\nit, and round_up() cannot wrap. An address with bit 63 set now moves only\nif its range crosses a boundary.\n\nFor an arena, libbpf uses MAP_FIXED only with map_extra, and\narena_map_alloc() refuses a map_extra range that crosses a boundary. A\nsubsequent mmap() must use the range of the first mmap(). For mmap() of the\nmap fd, this range comes from arena_get_unmapped_area(), thus it crosses no\nboundary. arena_map_alloc() still accepts a map_extra above TASK_SIZE, and\nmmap() of such an arena fails."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:21:51.023Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/c6850945f8da9bc4940b2b1079cc130c0225b31d"},{"url":"https://git.kernel.org/stable/c/92b5ce3ca5b7c641e2678f92419aa7833951bc9d"}],"title":"bpf: Don't move a MAP_FIXED address in arena_get_unmapped_area()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143324","datePublished":"2026-12-03T09:21:51.023Z","dateReserved":"2026-12-03T03:10:28.366Z","dateUpdated":"2026-12-03T09:21:51.023Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:18:19","lastModifiedDate":"2026-12-03 10:18:19","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143324","Ordinal":"1","Title":"bpf: Don't move a MAP_FIXED address in arena_get_unmapped_area()","CVE":"CVE-2026-143324","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143324","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't move a MAP_FIXED address in arena_get_unmapped_area()\n\nThe user range of an arena must not cross a 4 GiB boundary. Thus\narena_get_unmapped_area() asks the mm for 2 * len bytes and rounds the\nresult up if necessary. This is correct only if the mm finds a free range.\nWith MAP_FIXED the mm does no search and returns addr. For\nMAP_FIXED_NOREPLACE, do_mmap() also sets MAP_FIXED.\n\nWith MAP_FIXED the arena is not at addr after round_up(). Thus mmap()\nremoves mappings outside the range from addr to addr + len. It keeps a part\nof those in this range. Also, round_up() can wrap to address 0, and the\ntest for address 0 is before it.\n\nThe arch code gets twice the length of the mapping. Thus it can refuse a\nvalid MAP_FIXED range. On s390 the arch code also grows the page table for\nthe range. With the double length it can omit this step for a valid range.\n\nThe test for a crossing is not exact. Because ret is a long, ret >> 32\nextends the sign, but the other side is unsigned. The sides are never equal\nfor an address with bit 63 set, and round_up() always runs. Such user\naddresses exist on s390. arena_map_alloc() does the same test with a u64.\n\nWith MAP_FIXED, pass len to the mm. Return -EINVAL if the range crosses a\nboundary, as for address 0. Make ret unsigned, so that only these ranges\nget the error. On x86-64, if round_up() gives address 0 today, mmap() now\nfails with -EINVAL or with -ENOMEM from the mm. Today mmap() can also fail\nfor the address after round_up(), for example with -ENOMEM, -EEXIST, -EPERM\nor -EBUSY.\n\nWithout MAP_FIXED the mm must still find a free range of 2 * len bytes\ninside the address space of the task. The range after round_up() is inside\nit, and round_up() cannot wrap. An address with bit 63 set now moves only\nif its range crosses a boundary.\n\nFor an arena, libbpf uses MAP_FIXED only with map_extra, and\narena_map_alloc() refuses a map_extra range that crosses a boundary. A\nsubsequent mmap() must use the range of the first mmap(). For mmap() of the\nmap fd, this range comes from arena_get_unmapped_area(), thus it crosses no\nboundary. arena_map_alloc() still accepts a map_extra above TASK_SIZE, and\nmmap() of such an arena fails.","Type":"Description","Title":"bpf: Don't move a MAP_FIXED address in arena_get_unmapped_area()"}]}}}