CVE-2026-99617
arm64: mm: validate /dev/mem mmap ranges without overflow
What happened?
In the Linux kernel, the following vulnerability has been resolved:
arm64: mm: validate /dev/mem mmap ranges without overflow
An arm64 syzkaller reproducer creates a FUSE character device with major:minor 1:1, so opening it uses the /dev/mem file operations. It maps one page from offset 0xfffffffffffff000 at user address zero. The next openat() with a NULL pathname triggers a synchronous external abort (SEA, ESR 0x96000010) in strncpy_from_user() via do_getname(), panicking the kernel.
valid_mmap_phys_addr_range() checks the exclusive end by adding the mapping size to the starting address. For this offset, the sum wraps to zero and passes the PHYS_MASK test, allowing an out-of-range PFN to reach remap_pfn_range(). The inclusive-end overflow check in mmap_mem_prepare() does not catch it because the end is ULONG_MAX.
Reject starting PFNs outside PHYS_MASK and compare the inclusive length against the remaining physical range without overflowing. This also allows mappings that end exactly at PHYS_MASK, which the old check incorrectly rejects.
[catalin.marinas@arm.com: changed the check to look more like __access_ok()]
Affected software and versions
| Software | Version information | Fixed version |
|---|---|---|
| LinuxLinux | affected: 1d18c47c735e8adfe531fc41fae31e98f86b68fe to < 9ed663f51fa2d0a8a7c4754780809e35da7e5a41; affected: 1d18c47c735e8adfe531fc41fae31e98f86b68fe to < 99abd25b9037219ef82c937ff5d1f7c35615bc89; affected: 1d18c47c735e8adfe531fc41fae31e98f86b68fe to < 90ff5803ad3b85f1cfd07d427cc6b7d5f2d0d950; affected: 1d18c47c735e8adfe531fc41fae31e98f86b68fe to < bfcefa665475d737539dbecff57ab1749d81ab2e; affected: 1d18c47c735e8adfe531fc41fae31e98f86b68fe to < db6607fd74263ead8df644b98ff25fac74d86f0e; affected: 1d18c47c735e8adfe531fc41fae31e98f86b68fe to < fddf55af2d078f4186c5ab4f07383c8599b14640; affected: 1d18c47c735e8adfe531fc41fae31e98f86b68fe to < c9a54fc8147f45020badd9001d4ed234c74b9526; affected: 1d18c47c735e8adfe531fc41fae31e98f86b68fe to < b0958b1397fb5ffdb995c0ccc74349841929c08d | See vendor advisory |
| LinuxLinux | affected: 3.7; unaffected: 0 to < 3.7; unaffected: 5.10.275 to ≤ 5.10.*; unaffected: 5.15.226 to ≤ 5.15.*; unaffected: 6.1.193 to ≤ 6.1.*; unaffected: 6.6.163 to ≤ 6.6.*; unaffected: 6.12.118 to ≤ 6.12.*; unaffected: 6.18.64 to ≤ 6.18.*; unaffected: 7.3.5 to ≤ 7.3.*; unaffected: 7.4-rc2 to ≤ * | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2026-99617
- https://git.kernel.org/stable/c/9ed663f51fa2d0a8a7c4754780809e35da7e5a41
- https://git.kernel.org/stable/c/99abd25b9037219ef82c937ff5d1f7c35615bc89
- https://git.kernel.org/stable/c/90ff5803ad3b85f1cfd07d427cc6b7d5f2d0d950
- https://git.kernel.org/stable/c/bfcefa665475d737539dbecff57ab1749d81ab2e
- https://git.kernel.org/stable/c/db6607fd74263ead8df644b98ff25fac74d86f0e
- https://git.kernel.org/stable/c/fddf55af2d078f4186c5ab4f07383c8599b14640
- https://git.kernel.org/stable/c/c9a54fc8147f45020badd9001d4ed234c74b9526
- https://git.kernel.org/stable/c/b0958b1397fb5ffdb995c0ccc74349841929c08d