CVE-2024-56707: octeontx2-pf: handle otx2_mbox_get_rsp errors in otx2_dmac_flt.c
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
octeontx2-pf: handle otx2_mbox_get_rsp errors in otx2_dmac_flt.c
Add error pointer checks after calling otx2_mbox_get_rsp().
The Linux kernel CVE team has assigned CVE-2024-56707 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.14 with commit 79d2be385e9eabe4403eb85bcc7d3efc6b936a76 and fixed in 6.1.120 with commit 1611b1ea7cf8d07dff091a45389b10401bb6d5b3 Issue introduced in 5.14 with commit 79d2be385e9eabe4403eb85bcc7d3efc6b936a76 and fixed in 6.6.64 with commit 3ccbc7a518868eff1d5a198b9e454e182b651e00 Issue introduced in 5.14 with commit 79d2be385e9eabe4403eb85bcc7d3efc6b936a76 and fixed in 6.11.11 with commit 20e06a5137a1174214bae3a29ce623e69455ee0f Issue introduced in 5.14 with commit 79d2be385e9eabe4403eb85bcc7d3efc6b936a76 and fixed in 6.12.2 with commit fc595472fbad96533ccbb7b9ebb82b743ec26829 Issue introduced in 5.14 with commit 79d2be385e9eabe4403eb85bcc7d3efc6b936a76 and fixed in 6.13-rc1 with commit f5b942e6c54b13246ee49d42dcfb71b7f29e3c64
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2024-56707
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ethernet/marvell/octeontx2/nic/otx2_dmac_flt.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/1611b1ea7cf8d07dff091a45389b10401bb6d5b3 https://git.kernel.org/stable/c/3ccbc7a518868eff1d5a198b9e454e182b651e00 https://git.kernel.org/stable/c/20e06a5137a1174214bae3a29ce623e69455ee0f https://git.kernel.org/stable/c/fc595472fbad96533ccbb7b9ebb82b743ec26829 https://git.kernel.org/stable/c/f5b942e6c54b13246ee49d42dcfb71b7f29e3c64