{"id":"CVE-2026-138969","summary":"MIPS: mm: do not write a huge TLB entry when the probe misses","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nMIPS: mm: do not write a huge TLB entry when the probe misses\n\n__update_tlb() probes for the 8K pair at the address it is given and,\nfor a huge pmd, writes the huge entry with tlbwi at the probed index or\nwith tlbwr when the probe misses. That works only if the caller passes\nthe faulting address, so that the probe finds the 4K entry the refill\nhandler loaded for the faulting page and the huge entry replaces it.\n\nupdate_mmu_cache_pmd() is not called that way. do_set_pmd() has always\npassed the huge-aligned address, and since commit ebcfc63d6bca (\"mm:\nabstract THP allocation\") the anonymous THP fault path does too\n(map_anon_folio_pmd()). The probe then misses the stale 4K entry, which\nsits at the faulting page somewhere else in the 2 MB range, tlbwr adds\na huge entry next to it, and the TLB holds two entries matching the\nfaulting address. Octeon raises \"Machine Check exception - caused by\nmultiple matching entries in the TLB\" on the next refill of that page;\na process on a CN63XX board died this way within a second of start, on\nthe first anonymous THP of its bss.\n\nSkip the write when the probe misses. The refill and TLBL/TLBS handlers\nprobe the faulting address themselves and rewrite the stale entry with\nthe huge one (they also set the software young bit), so the entry is\ninstalled on the next access at the cost of one exception.","modified":"2026-11-30T15:01:38.927936184Z","published":"2026-11-30T13:26:39.723Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138969.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0a75547e19098e276f9fec563ceaee694b9610fe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0cb17268887e1df5c425ea052f5146b42d126323"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2783340d1f2403fe970eafee590b8ce13a36b8cb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/41e3406fb6bdacb76fe3de8e71c1ea0e56c76e8e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6407390b5aa1303536508c37a054696bdd30598f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/926d99c2299b655f452b07ca946255ce6d5abaad"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bc977f434e9e7d0ce7f065ff18eba71e73e5f854"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dd799bae4c1898dd3ee810ade13c6ba4b0974aaa"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138969.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138969"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"fd062c847a8cea2821347d7e18165dfa658f7dce"},{"fixed":"2783340d1f2403fe970eafee590b8ce13a36b8cb"},{"fixed":"41e3406fb6bdacb76fe3de8e71c1ea0e56c76e8e"},{"fixed":"926d99c2299b655f452b07ca946255ce6d5abaad"},{"fixed":"dd799bae4c1898dd3ee810ade13c6ba4b0974aaa"},{"fixed":"bc977f434e9e7d0ce7f065ff18eba71e73e5f854"},{"fixed":"6407390b5aa1303536508c37a054696bdd30598f"},{"fixed":"0a75547e19098e276f9fec563ceaee694b9610fe"},{"fixed":"0cb17268887e1df5c425ea052f5146b42d126323"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138969.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.31"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138969.json"}}],"schema_version":"1.9.2"}