cvelo
P4 · Info

sh: intc: Sort the prio and sense lists after filling them

  • CVE-2026-143409
  • EUVD-2026-145006

Summary

In the Linux kernel's sh interrupt controller code, register_intc_controller() sorted the priority and sense lists right after allocating them, using register counts rather than the actual number of vectors, and those lists were only filled later. On SH7785 boards the sort ran past a 32-byte allocation, corrupting kernel memory at boot. Kernels v6.5 and v6.6 panicked when registering the sh7785-irq0123 controller, and a debug-enabled SLUB build reported a redzone overwrite. The fix sorts the lists after all vectors are registered, using the number of entries actually added. The record does not list a CVSS score, and it is not on the CISA known exploited list.

AI summary · verify against the vendor advisory

Description

In the Linux kernel, the following vulnerability has been resolved: sh: intc: Sort the prio and sense lists after filling them register_intc_controller() sorts d->prio and d->sense right after allocating them, with hw->nr_prio_regs and hw->nr_sense_regs as the element count. The lists hold hw->nr_vectors entries and are only filled later, by intc_register_irq(). On SH7785, sh7785-irq0123 and sh7785-irq4567 have four vectors but the SoC's eleven priority registers, so sort() swaps 88 bytes in a 32 byte kmalloc object at boot. slub_debug=FZPU reports "Right Redzone overwritten" in kmalloc-32, and v6.5 and v6.6 panic in __kmem_cache_alloc_node() while registering sh7785-irq0123. Found with a custom QEMU model of the SH7785LCR. On it, v6.4 sh7785lcr_defconfig boots with SLAB, the defconfig default before v6.5, and hangs before the console is up when built with SLUB. Sort the lists once all vectors are registered, with the number of entries that were added.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • Linux

    Affected versionsFixed in
    3.4none stated
    before 3.4: not affectednone stated
    from 5.10.275 up to 5.10.*: not affectednone stated
    from 5.15.226 up to 5.15.*: not affectednone stated
    from 6.1.193 up to 6.1.*: not affectednone stated
    from 6.6.163 up to 6.6.*: not affectednone stated
    from 6.12.117 up to 6.12.*: not affectednone stated
    from 6.18.63 up to 6.18.*: not affectednone stated

    and 2 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.