CVE-2026-80627 PUBLISHED

MIPS: mm: Fix out-of-bounds write in maar_res_walk()

Assigner: Linux
Reserved: 26.08.2026 Published: 28.08.2026 Updated: 28.08.2026

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

MIPS: mm: Fix out-of-bounds write in maar_res_walk()

maar_res_walk() uses wi->num_cfg as the index into the fixed-size wi->cfg array, but checks whether the array is full only after it has filled the selected entry. If walk_system_ram_range() reports more than 16 memory ranges, the overflow call writes one struct maar_config past the end of the array before WARN_ON() prevents num_cfg from advancing.

Move the full-array check before taking the array slot and return non-zero when the scratch array is full, so walk_system_ram_range() terminates the walk instead of invoking the callback for further ranges.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from a5718fe8f70f33b1b5b47a153057cfdd19684598 to a594100e147a6a67eb29189170f1df3645cda12b (excl.)
  • affected from a5718fe8f70f33b1b5b47a153057cfdd19684598 to 8b3e0c1c63015deaf084286899f5b2d0526715de (excl.)
  • affected from a5718fe8f70f33b1b5b47a153057cfdd19684598 to 44c1d902cf0798b60762a7a98be992b9f5ded7dd (excl.)
  • affected from a5718fe8f70f33b1b5b47a153057cfdd19684598 to ac7385af1dca86a5ea704c80ca4dc822083ff9e2 (excl.)
  • affected from a5718fe8f70f33b1b5b47a153057cfdd19684598 to 431812eb88c200bc3ec33b88782c8cc415842074 (excl.)
  • affected from a5718fe8f70f33b1b5b47a153057cfdd19684598 to 92f38fe85198ace9b211bc7712b7951acfb94560 (excl.)
  • affected from a5718fe8f70f33b1b5b47a153057cfdd19684598 to 038f068cced8e9c49e8c419f3112d909ad366a3a (excl.)
  • affected from a5718fe8f70f33b1b5b47a153057cfdd19684598 to 1b001b16bc88f3f7817e228acfd91ee01bdcfcce (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.4 is affected
  • unaffected from 0 to 5.4 (excl.)
  • unaffected from 5.10.261 to 5.10.* (incl.)
  • unaffected from 5.15.212 to 5.15.* (incl.)
  • unaffected from 6.1.178 to 6.1.* (incl.)
  • unaffected from 6.6.145 to 6.6.* (incl.)
  • unaffected from 6.12.97 to 6.12.* (incl.)
  • unaffected from 6.18.40 to 6.18.* (incl.)
  • unaffected from 7.1.5 to 7.1.* (incl.)
  • unaffected from 7.2 to * (incl.)

References