crypto: iaa - Fix potential use after free bug
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.10.136.11.26.12In the Linux kernel, the following vulnerability has been resolved:
crypto: iaa - Fix potential use after free bug
The free_device_compression_mode(iaa_device, device_mode) function frees "device_mode" but it iss passed to iaa_compression_modes[i]->free() a few lines later resulting in a use after free.
The good news is that, so far as I can tell, nothing implements the ->free() function and the use after free happens in dead code. But, with this fix, when something does implement it, we'll be ready. :)
From the CVE record · Linux
The Linux kernel's IAA crypto code frees a compression mode and then passes it to a free callback, creating a potential use-after-free. The description says no implementation currently provides that callback, so the affected path is dead code; it does not specify an attacker action, access requirement, or user interaction.
Engineers running the Linux kernel should check whether their kernel includes the affected IAA crypto code; affected versions are not specified.