AZL-115399: CVE-2026-99617 affecting package kernel 6.6.161.1-1
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 strncpyfromuser() via dogetname(), panicking the kernel.
validmmapphysaddrrange() checks the exclusive end by adding the mapping size to the starting address. For this offset, the sum wraps to zero and passes the PHYSMASK test, allowing an out-of-range PFN to reach remappfnrange(). The inclusive-end overflow check in mmapmemprepare() does not catch it because the end is ULONGMAX.
Reject starting PFNs outside PHYSMASK and compare the inclusive length against the remaining physical range without overflowing. This also allows mappings that end exactly at PHYSMASK, which the old check incorrectly rejects.
[catalin.marinas@arm.com: changed the check to look more like accessok()]