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

Summary

CVECVE-2026-138969
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:17:58 UTC
Updated2026-11-30 14:17:58 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected fd062c847a8cea2821347d7e18165dfa658f7dce 2783340d1f2403fe970eafee590b8ce13a36b8cb git Not specified
CNA Linux Linux affected fd062c847a8cea2821347d7e18165dfa658f7dce 41e3406fb6bdacb76fe3de8e71c1ea0e56c76e8e git Not specified
CNA Linux Linux affected fd062c847a8cea2821347d7e18165dfa658f7dce 926d99c2299b655f452b07ca946255ce6d5abaad git Not specified
CNA Linux Linux affected fd062c847a8cea2821347d7e18165dfa658f7dce dd799bae4c1898dd3ee810ade13c6ba4b0974aaa git Not specified
CNA Linux Linux affected fd062c847a8cea2821347d7e18165dfa658f7dce bc977f434e9e7d0ce7f065ff18eba71e73e5f854 git Not specified
CNA Linux Linux affected fd062c847a8cea2821347d7e18165dfa658f7dce 6407390b5aa1303536508c37a054696bdd30598f git Not specified
CNA Linux Linux affected fd062c847a8cea2821347d7e18165dfa658f7dce 0a75547e19098e276f9fec563ceaee694b9610fe git Not specified
CNA Linux Linux affected fd062c847a8cea2821347d7e18165dfa658f7dce 0cb17268887e1df5c425ea052f5146b42d126323 git Not specified
CNA Linux Linux affected 2.6.31 Not specified
CNA Linux Linux unaffected 2.6.31 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/2783340d1f2403fe970eafee590b8ce13a36b8cb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/6407390b5aa1303536508c37a054696bdd30598f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0a75547e19098e276f9fec563ceaee694b9610fe 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0cb17268887e1df5c425ea052f5146b42d126323 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/dd799bae4c1898dd3ee810ade13c6ba4b0974aaa 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/926d99c2299b655f452b07ca946255ce6d5abaad 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/41e3406fb6bdacb76fe3de8e71c1ea0e56c76e8e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/bc977f434e9e7d0ce7f065ff18eba71e73e5f854 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report