MIPS: mm: do not write a huge TLB entry when the probe misses

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

MIPS: mm: do not write a huge TLB entry when the probe misses

__update_tlb() probes for the 8K pair at the address it is given and, for a huge pmd, writes the huge entry with tlbwi at the probed index or with tlbwr when the probe misses. That works only if the caller passes the faulting address, so that the probe finds the 4K entry the refill handler loaded for the faulting page and the huge entry replaces it.

update_mmu_cache_pmd() is not called that way. do_set_pmd() has always passed the huge-aligned address, and since commit ebcfc63d6bca ("mm: abstract THP allocation") the anonymous THP fault path does too (map_anon_folio_pmd()). The probe then misses the stale 4K entry, which sits at the faulting page somewhere else in the 2 MB range, tlbwr adds a huge entry next to it, and the TLB holds two entries matching the faulting address. Octeon raises "Machine Check exception - caused by multiple matching entries in the TLB" on the next refill of that page; a process on a CN63XX board died this way within a second of start, on the first anonymous THP of its bss.

Skip the write when the probe misses. The refill and TLBL/TLBS handlers probe the faulting address themselves and rewrite the stale entry with the huge one (they also set the software young bit), so the entry is installed on the next access at the cost of one exception.

ProductVersions
Linux Linuxfd062c847a8cea2821347d7e18165dfa658f7dce to before 2783340d1f2403fe970eafee590b8ce13a36b8cb Affectedfd062c847a8cea2821347d7e18165dfa658f7dce to before 41e3406fb6bdacb76fe3de8e71c1ea0e56c76e8e Affectedfd062c847a8cea2821347d7e18165dfa658f7dce to before 926d99c2299b655f452b07ca946255ce6d5abaad Affectedfd062c847a8cea2821347d7e18165dfa658f7dce to before dd799bae4c1898dd3ee810ade13c6ba4b0974aaa Affectedfd062c847a8cea2821347d7e18165dfa658f7dce to before bc977f434e9e7d0ce7f065ff18eba71e73e5f854 Affectedfd062c847a8cea2821347d7e18165dfa658f7dce to before 6407390b5aa1303536508c37a054696bdd30598f Affectedfd062c847a8cea2821347d7e18165dfa658f7dce to before 0a75547e19098e276f9fec563ceaee694b9610fe Affectedfd062c847a8cea2821347d7e18165dfa658f7dce to before 0cb17268887e1df5c425ea052f5146b42d126323 Affected
Linux Linux2.6.31 Affectedbefore 2.6.31 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.