Linux: accel/qaic: Address potential out-of-bounds read in resp_worker()
What fixes it
- 5807a65f301b6c0e73a2dc03dd6f5e80a2861b72LinuxCVE List
- 12deeade460d47031267256ba07add51cc7eabd0LinuxCVE List
- 6.6.158LinuxCVE List
- 6.12.111LinuxCVE List
- 6.18.53LinuxCVE List
- 6.20LinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
In the Linux kernel, the following vulnerability has been resolved:
accel/qaic: Address potential out-of-bounds read in resp_worker()
Although 'commit 2feec5ae5df7 ("accel/qaic: Handle DBC deactivation if the owner went away")' fixes the scenario it was intended for by walking the message and only decoding QAIC_TRANS_DEACTIVATE_FROM_DEV, if present, it skipped over the bounds checking code that is included in decode_message(). This could lead to issues such as reading past the slab allocation's end, infinite loops or kernel panics. For those issues to happen, a malformed wire message is needed to be sent from the device.
Instead of duplicating the bounds checking code already present in decode_message(), use the function inside resp_worker().
Text from CVE List
Affected versions 17
- Linuxaffected: 2dd67966f39a2abf8ccb4865031c722e40e01b7f before 5807a65f301b6c0e73a2dc03dd6f5e80a2861b72CVE List
- Linuxaffected: 08021f2d4a557d6491e3bcc288e96425f50aa3cf before f4b64488f3deca63f7fbc7d7c3835b2e668003f9CVE List
- Linuxaffected: f403094d9075d7c565a3d81002b781c325cb3c07 before 12deeade460d47031267256ba07add51cc7eabd0CVE List
- Linuxaffected: 2feec5ae5df785658924ab6bd91280dc3926507c before c72e81ee46bdd4c221114d6e9515e9b4647616d7CVE List
- Linuxaffected: 2feec5ae5df785658924ab6bd91280dc3926507c before ab243f74ab4084ca5c8dec608cb5b0deb27db067CVE List
- Linuxaffected: ee0180e77e6c8482644569632065411de844c515CVE List
- Linuxaffected: 6.6.134 before 6.6.158CVE List
- Linuxaffected: 6.12.81 before 6.12.111CVE List
- Linuxaffected: 6.18.22 before 6.18.53CVE List
- Linuxaffected: 6.19.12 before 6.20CVE List
- Linuxaffected: 7.0CVE List
- Linuxunaffected: all versions before 7.0CVE List
- Linuxunaffected: 6.6.158 through 6.6.*CVE List
- Linuxunaffected: 6.12.111 through 6.12.*CVE List
- Linuxunaffected: 6.18.53 through 6.18.*CVE List
- Linuxunaffected: 7.2.7 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List
References 5
- git.kernel.org/stable/c/5807a65f301b6c0e73a2dc03dd6f5e80a2861b72Referencevia CVE List
- git.kernel.org/stable/c/f4b64488f3deca63f7fbc7d7c3835b2e668003f9Referencevia CVE List
- git.kernel.org/stable/c/12deeade460d47031267256ba07add51cc7eabd0Referencevia CVE List
- git.kernel.org/stable/c/c72e81ee46bdd4c221114d6e9515e9b4647616d7Referencevia CVE List
- git.kernel.org/stable/c/ab243f74ab4084ca5c8dec608cb5b0deb27db067Referencevia CVE List