{"id":"CVE-2025-71231","aliases":["CVE-2025-71231"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: iaa - Fix out-of-bounds index in find_empty_iaa_compression_mode","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: iaa - Fix out-of-bounds index in find_empty_iaa_compression_mode\n\nThe local variable 'i' is initialized with -EINVAL, but the for loop\nimmediately overwrites it and -EINVAL is never returned.\n\nIf no empty compression mode can be found, the function would return the\nout-of-bounds index IAA_COMP_MODES_MAX, which would cause an invalid\narray access in add_iaa_compression_mode().\n\nFix both issues by returning either a valid index or -EINVAL.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: iaa - Fix out-of-bounds index in find_empty_iaa_compression_mode\n\nThe local variable 'i' is initialized with -EINVAL, but the for loop\nimmediately overwrites it and -EINVAL is never returned.\n\nIf no empty compression mode can be found, the function would return the\nout-of-bounds index IAA_COMP_MODES_MAX, which would cause an invalid\narray access in add_iaa_compression_mode().\n\nFix both issues by returning either a valid index or -EINVAL.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:\n\ncrypto: iaa - Corrección de índice fuera de límites en find_empty_iaa_compression_mode\n\nLa variable local 'i' se inicializa con -EINVAL, pero el bucle for la sobrescribe inmediatamente y -EINVAL nunca se devuelve.\n\nSi no se encuentra ningún modo de compresión vacío, la función devolvería el índice fuera de límites IAA_COMP_MODES_MAX, lo que causaría un acceso a array inválido en add_iaa_compression_mode().\n\nSe corrigen ambos problemas devolviendo un índice válido o -EINVAL.","source":"nvd"}],"published":"2026-02-18T14:53:15.668Z","modified":"2026-11-05T22:17:39.757Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"b190447e0fa3ef7355480d641d078962e03768b4","fixed":"c77b33b58512708bd5603f48465f018c8b748847","status":"affected"},{"type":"git","introduced":"b190447e0fa3ef7355480d641d078962e03768b4","fixed":"d75207465eed20bc9b0daa4a0927de9568996067","status":"affected"},{"type":"git","introduced":"b190447e0fa3ef7355480d641d078962e03768b4","fixed":"de16f5bca05cace238d237791ed1b6e9d22dab60","status":"affected"},{"type":"git","introduced":"b190447e0fa3ef7355480d641d078962e03768b4","fixed":"48329301969f6d21b2ef35f678e40f72b59eac94","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.8","status":"unaffected"},{"type":"semver","introduced":"6.12.72","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.11","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.1","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.8","fixed":"6.12.72"},{"status":"affected","introduced":"6.13","fixed":"6.18.11"},{"status":"affected","introduced":"6.19","fixed":"6.19.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c77b33b58512708bd5603f48465f018c8b748847","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d75207465eed20bc9b0daa4a0927de9568996067","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de16f5bca05cace238d237791ed1b6e9d22dab60","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/48329301969f6d21b2ef35f678e40f72b59eac94","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:15:41.870Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-71231","url":"https://www.cve.org/CVERecord?id=CVE-2025-71231","licence":"CVE Terms of Use","modified":"2026-11-05T21:23:11.127Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-71231","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71231","licence":"Public domain","modified":"2026-11-05T22:17:39.757Z"}],"updatedAt":"2026-11-25T22:59:11.273Z","epss":{"score":0.00178,"percentile":0.07754,"date":"2026-12-01T12:00:22.000Z"}}