iommu/tegra241-cmdqv: Don't run the error ISR before probe sets up vintfs
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iommu/tegra241-cmdqv: Don't run the error ISR before probe sets up vintfs
__tegra241_cmdqv_probe() requests the error IRQ before it has allocated the cmdqv->vintfs array and set cmdqv->num_vintfs. A CMDQV left enabled with a latched error across a kexec fires the IRQ as soon as it is requested, and tegra241_cmdqv_isr() then walks the uninitialized cmdqv->vintfs array.
Request the IRQ only after cmdqv->vintfs is allocated and zeroed, so that a latched interrupt firing early runs the ISR against a valid array of NULL slots that it safely skips.
From the CVE record · Linux
The Linux kernel’s Tegra241 CMDQV driver requests an error interrupt before initializing the array used by its error handler. If a CMDQV remains enabled with a latched error across kexec, the interrupt can fire immediately and the handler can access the uninitialized array. The input does not establish an attacker-controlled trigger or authentication requirements.
Engineers running Linux kernels with the Tegra241 CMDQV driver should check whether their kernel includes the fix; affected versions are not specified.