CVE-2024-50274: idpf: avoid vport access in idpf_get_link_ksettings
In the Linux kernel, the following vulnerability has been resolved:
idpf: avoid vport access in idpfgetlinkksettings
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 linkspeedmbps to netdevpriv structure which removes the dependency on vport pointer and the vport lock in idpfgetlinkksettings. Also use netifcarrierok() to check the link status and adjust the offsetof to use linkup instead of linkspeedmbps.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50274?
The severity of CVE-2024-50274 is rated as high due to the potential for device control plane disruption.
How do I fix CVE-2024-50274?
To fix CVE-2024-50274, update your Linux kernel to version 6.12-rc7 or later.
Which versions of the Linux kernel are affected by CVE-2024-50274?
CVE-2024-50274 affects versions of the Linux kernel from 6.7 to 6.11.8 and versions 6.12-rc1 to 6.12-rc6.
Is there a workaround for CVE-2024-50274?
There are no specific workarounds recommended for CVE-2024-50274 aside from applying the patch.
What components are impacted by CVE-2024-50274?
CVE-2024-50274 impacts the idpf driver in the Linux kernel, particularly concerning vport access during driver resets.