mm/page_table_check: skip special zero mappings
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f6cf9832e677ec07b1675782bd2bad472cfd3cdc, Kernel 084b031a1cc13b1d50b9660baace0b7eba52bebe, Kernel 51e16e5adadaa78b56f31a1cb02eb7267787625e and 8 more.
In the Linux kernel, the following vulnerability has been resolved: mm/page_table_check: skip special zero mappings page_table_check_set() and page_table_check_clear() account mappings based on PageAnon(). Shared zero-page PTEs and huge zero PMDs are special mappings, but page_table_check can still account them as file-backed pages. An unprivileged process can populate enough zero mappings to overflow file_map_count and hit the existing BUG_ON(). The PTE path can do this with the shared zero page, and the PMD path can do the same with huge zero mappings. Skip special zero mappings in the user page-table accounting paths. Keep the PTE-side pte_special() check, and identify huge zero PMDs from the mapped folio instead of pmd_special(). That covers architectures where pmd_special() is a no-op without adding huge_zero_pfn checks to the generic counter helpers.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=df4e817b710809425d899340dbfa8504a3ca4ba5 <f6cf9832e677ec07b1675782bd2bad472cfd3cdc, >=df4e817b710809425d899340dbfa8504a3ca4ba5 <084b031a1cc13b1d50b9660baace0b7eba52bebe, >=df4e817b710809425d899340dbfa8504a3ca4ba5 <51e16e5adadaa78b56f31a1cb02eb7267787625e, >=df4e817b710809425d899340dbfa8504a3ca4ba5 <7755be923e325dc300f4b0c3e1ad7e91b28b3cb9, >=df4e817b710809425d899340dbfa8504a3ca4ba5 <8db4bab826ccc9ec10fa41736a48031cd338d392, >=df4e817b710809425d899340dbfa8504a3ca4ba5 <b726eb3c94d23e09da0e0f46b0fa09fb2b5d99cc, =5.17 | f6cf9832e677ec07b1675782bd2bad472cfd3cdc, 084b031a1cc13b1d50b9660baace0b7eba52bebe, 51e16e5adadaa78b56f31a1cb02eb7267787625e, 7755be923e325dc300f4b0c3e1ad7e91b28b3cb9, 8db4bab826ccc9ec10fa41736a48031cd338d392, b726eb3c94d23e09da0e0f46b0fa09fb2b5d99cc |
| linux-kernel: Kernel | >=6.13.0 <6.18.46, >=6.19.0 <7.1.9, >=6.2.0 <6.6.160, >=6.7.0 <6.12.114, >=5.17.0 <6.1.191 | 6.18.46, 7.1.9, 6.6.160, 6.12.114, 6.1.191 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket