FreeBSD
Use-after-free in device pager page list
When msync(MS_INVALIDATE) is called on a mapping of an unmanaged device object, the physical pages in the mapping range are marked invalid but remain in the pager's page list. A subsequent page fault will cause the fault handler to re-insert the page into the object's list. This corrupts the list, and on object destruction the page is freed twice. An unprivileged local user with access to a device that provides memory-mapped I/O can trigger a use-after-free in the kernel, though this is limited to a pool of objects ("fictitious pages") that are never recycled for a different purpose. It may be possible to exploit this to escalate privileges.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 15.1-RELEASE, < p1
- >= 15.0-RELEASE, < p11
- >= 14.4-RELEASE, < p7
- >= 14.3-RELEASE, < p16
Fixed in p1, p11, p7, p16
Mitigation
Upgrade FreeBSD to p1 or p11 or p7 or p16 or later.
References
- Vendor advisory security.freebsd.org/advisories/FreeBSD-SA-26:37.vm.asc
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.