genirq/ipi: Fix NULL pointer deref in irq_data_get_affinity_mask()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.1.186.2.56.3In the Linux kernel, the following vulnerability has been resolved:
genirq/ipi: Fix NULL pointer deref in irq_data_get_affinity_mask()
If ipi_send_{mask|single}() is called with an invalid interrupt number, all the local variables there will be NULL. ipi_send_verify() which is invoked from these functions does verify its 'data' parameter, resulting in a kernel oops in irq_data_get_affinity_mask() as the passed NULL pointer gets dereferenced.
Add a missing NULL pointer check in ipi_send_verify()...
Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.
From the CVE record · Linux
The Linux kernel's genirq/ipi code can dereference a NULL pointer when ipi_send_mask() or ipi_send_single() is called with an invalid interrupt number. This can cause a kernel oops; the input does not establish whether an attacker can trigger the call, or what access or user interaction would be required.
Teams running the Linux kernel should check their versions against the vendor advisory; affected versions were not provided.