| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-50274: idpf: avoid vport access in idpf_get_link_ksettings |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| idpf: avoid vport access in idpf_get_link_ksettings |
| |
| When the device control plane is removed or the platform |
| running device control plane is rebooted, a reset is detected |
| on the driver. On driver reset, it releases the resources and |
| waits for the reset to complete. If the reset fails, it takes |
| the error path and releases the vport lock. At this time if the |
| monitoring tools tries to access link settings, it call traces |
| for accessing released vport pointer. |
| |
| To avoid it, move link_speed_mbps to netdev_priv structure |
| which removes the dependency on vport pointer and the vport lock |
| in idpf_get_link_ksettings. Also use netif_carrier_ok() |
| to check the link status and adjust the offsetof to use link_up |
| instead of link_speed_mbps. |
| |
| The Linux kernel CVE team has assigned CVE-2024-50274 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 6.7 with commit 02cbfba1add5bd9088c7d14c6b93b77a6ea8f3bb and fixed in 6.11.8 with commit fa4d906ad0fb63a980a1d586a061c78ea1a345ba |
| Issue introduced in 6.7 with commit 02cbfba1add5bd9088c7d14c6b93b77a6ea8f3bb and fixed in 6.12 with commit 81d2fb4c7c18a3b36ba3e00b9d5b753107472d75 |
| |
| 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-50274 |
| 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/intel/idpf/idpf.h |
| drivers/net/ethernet/intel/idpf/idpf_ethtool.c |
| drivers/net/ethernet/intel/idpf/idpf_lib.c |
| drivers/net/ethernet/intel/idpf/idpf_virtchnl.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/fa4d906ad0fb63a980a1d586a061c78ea1a345ba |
| https://git.kernel.org/stable/c/81d2fb4c7c18a3b36ba3e00b9d5b753107472d75 |