In the Linux kernel, the following vulnerability has been resolved:
crypto: iaa - Fix out-of-bounds index in findemptyiaacompressionmode
The local variable 'i' is initialized with -EINVAL, but the for loop immediately overwrites it and -EINVAL is never returned.
If no empty compression mode can be found, the function would return the out-of-bounds index IAACOMPMODESMAX, which would cause an invalid array access in addiaacompressionmode().
Fix both issues by returning either a valid index or -EINVAL.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71231.json"
}