irqchip/ast2700-intc: Avoid allocating in the irq_domain activate() callback
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 7.2.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: irqchip/ast2700-intc: Avoid allocating in the irq_domain activate() callback The interrupt core calls the irq_domain_activate() callback from __setup_irq() with desc->lock held and interrupts disabled. Both aspeed_intc1_irq_domain_activate() and aspeed_intc0_resolve_route() test a compatible string with fwnode_device_is_compatible(). fwnode_device_is_compatible() invokes fwnode_property_match_string(), which allocates with GFP_KERNEL. That's obviously not possible with interrupts disabled and a raw spinlock held. Both call sites are only ever handed OF nodes, so use of_device_is_compatible() instead: it walks the property in place and does not allocate.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 07825e41519abb8ac13d6d1c553af47f57775f6b · fixed in f2f0da11648616e47419dca93610f6c0d70ec00b; From 07825e41519abb8ac13d6d1c553af47f57775f6b · fixed in b76eee9c2157223aa4aac42ceebb563288e078aa
- Linux Linux
7.2
- KernelLinux
From 7.2.0 · fixed in 7.2.6