Description
In the Linux kernel, the following vulnerability has been resolved: ALSA: fireworks: bound device-supplied status before string array lookup The status field in an EFW response is a 32-bit value supplied by the firewire device. efr_status_names[] has 17 entries so a status value outside that range goes off into the weeds when looking at the %s value. Even worse, the status could return EFR_STATUS_INCOMPLETE which is 0x80000000, and is obviously not in that array of potential strings. Fix this up by properly bounding the index against the array size and printing "unknown" if it's not recognized.
Product status
bde8a8f23bbe6db51fa4e81644273af18fef3d7a (git) before 183aa0de0f680496b9feb85c9d182681ad4600dd
bde8a8f23bbe6db51fa4e81644273af18fef3d7a (git) before 62fcb273fbee5b2a0e7ed41cc914c8d7d1a5d285
bde8a8f23bbe6db51fa4e81644273af18fef3d7a (git) before 327f8e730e3c65ec97df9d3b07de66aeb3dc932d
bde8a8f23bbe6db51fa4e81644273af18fef3d7a (git) before f856f4b6efd51be7950e4b84c06cd961961ca41c
bde8a8f23bbe6db51fa4e81644273af18fef3d7a (git) before e103f98f6615ed2934e9cf340654f0cad9eb8a8a
bde8a8f23bbe6db51fa4e81644273af18fef3d7a (git) before 67cfd14074cdafab5de3f7cfc0952c1a9b653e5d
bde8a8f23bbe6db51fa4e81644273af18fef3d7a (git) before cc624b3d2be13297100539b64ad950695188e046
bde8a8f23bbe6db51fa4e81644273af18fef3d7a (git) before 682d8accf0d83a871e8c327b95c81f53902c922b
bde8a8f23bbe6db51fa4e81644273af18fef3d7a (git) before 07704bbf36f57e4379e4cadf96410dab14621e3b
3.16
Any version before 3.16
5.10.258 (semver)
5.15.209 (semver)
6.1.175 (semver)
6.6.136 (semver)
6.12.83 (semver)
6.18.24 (semver)
6.19.14 (semver)
7.0.1 (semver)
7.1-rc1 (original_commit_for_fix)
References
git.kernel.org/...c/183aa0de0f680496b9feb85c9d182681ad4600dd
git.kernel.org/...c/62fcb273fbee5b2a0e7ed41cc914c8d7d1a5d285
git.kernel.org/...c/327f8e730e3c65ec97df9d3b07de66aeb3dc932d
git.kernel.org/...c/f856f4b6efd51be7950e4b84c06cd961961ca41c
git.kernel.org/...c/e103f98f6615ed2934e9cf340654f0cad9eb8a8a
git.kernel.org/...c/67cfd14074cdafab5de3f7cfc0952c1a9b653e5d
git.kernel.org/...c/cc624b3d2be13297100539b64ad950695188e046
git.kernel.org/...c/682d8accf0d83a871e8c327b95c81f53902c922b
git.kernel.org/...c/07704bbf36f57e4379e4cadf96410dab14621e3b