CVE-2026-139232: ksmbd: fix link speed query in fsctl_query_iface_info_ioctl()
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix link speed query in fsctlqueryifaceinfoioctl()
fsctlqueryifaceinfoioctl() used to call netdev->ethtoolops->getlinkksettings() directly and never checked the return value. If the callback fails, cmd.base.speed may be left uninitialized. Also, SPEEDUNKNOWN (-1) is treated as a numeric link speed and would be converted into a bogus link speed.
Use ethtoolgetlinkksettings() to acquire the per-netdev ops lock when needed. Fall back to 1Gbps when the query fails, or when the reported speed is 0 or SPEEDUNKNOWN.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ksmbd's fsctl_query_iface_info_ioctl(), use __ethtool_get_link_ksettings() instead of calling get_link_ksettings() directly, check its return value, and fall back to 1Gbps if the query fails or reports 0 or SPEED_UNKNOWN.