6.2medium
Missing large page handling in pmap_pkru_update_range()
- Severity
- 6.2medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.21% (higher than 11% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- freebsd
Description
In order to apply a particular protection key to an address range, the kernel must update the corresponding page table entries. The subroutine which handled this failed to take into account the presence of 1GB largepage mappings created using the shm_create_largepage(3) interface. In particular, it would always treat a page directory page entry as pointing to another page table page. The bug can be abused by an unprivileged user to cause pmap_pkru_update_range() to treat userspace memory as a page table page, and thus overwrite memory to which the application would otherwise not have access.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| FreeBSD FreeBSD | from 15.0-RELEASE before p6, from 14.4-RELEASE before p2, from 14.3-RELEASE before p11, from 13.5-RELEASE before p12, 13.5, 14.3, 14.4, 15.0 | CVE List, NVD |
Classification
What each source says
CVE List
In order to apply a particular protection key to an address range, the kernel must update the corresponding page table entries. The subroutine which handled this failed to take into account the presence of 1GB largepage mappings created using the shm_create_largepage(3) interface. In particular, it would always treat a page directory page entry as pointing to another page table page. The bug can be abused by an unprivileged user to cause pmap_pkru_update_range() to treat userspace memory as a page table page, and thus overwrite memory to which the application would otherwise not have access.
NVD (es)
Para aplicar una clave de protección particular a un rango de direcciones, el kernel debe actualizar las entradas de tabla de páginas correspondientes. La subrutina que manejó esto no tuvo en cuenta la presencia de mapeos de páginas grandes de 1GB creados usando la interfaz shm_create_largepage(3). En particular, siempre trataría una entrada de página de directorio de páginas como apuntando a otra página de tabla de páginas. El error puede ser abusado por un usuario sin privilegios para hacer que pmap_pkru_update_range() trate la memoria del espacio de usuario como una página de tabla de páginas, y así sobrescribir memoria a la que la aplicación de otro modo no tendría acceso.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-6386 changed 2026-04-22 | CVE Terms of Use |
| NVD | CVE-2026-6386 changed 2026-11-11 | Public domain |