CVE-2024-50274

idpf: avoid vport access in idpf_get_link_ksettings

High · published November 19, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
13.2
In the wild
Unconfirmed
What it is

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 record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00231 · 13.2th percentile
Published
2024-11-19T01:30Z
EPSS history
Timeline
  • 19 NOV 01:30Z
    idpf: avoid vport access in idpf_get_link_ksettings
    cvelistv5