CVE-2026-139232

ksmbd: fix link speed query in fsctl_query_iface_info_ioctl()

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix link speed query in fsctl_query_iface_info_ioctl()

fsctl_query_iface_info_ioctl() used to call
netdev->ethtool_ops->get_link_ksettings() directly and never checked the
return value. If the callback fails, cmd.base.speed may be left
uninitialized. Also, SPEED_UNKNOWN (-1) is treated as a numeric link speed
and would be converted into a bogus link speed.

Use __ethtool_get_link_ksettings() 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 SPEED_UNKNOWN.

Analysis

AI-generated

Technical impact

In the Linux kernel, the ksmbd module’s fsctl_query_iface_info_ioctl() function was calling the get_link_ksettings callback directly without validating its return value. When the callback fails, the cmd.base.speed field can remain uninitialized, and a special value of SPEED_UNKNOWN (-1) is incorrectly treated as a numeric speed. This flaw causes a bogus link speed to be reported, potentially leading applications or administrators to view incorrect network interface information. The fix introduces proper locking, checks the return status, and falls back to a sane default of 1 Gbps when the query fails or reports an invalid speed.

Affected Systems

All Linux kernel builds that include the ksmbd module prior to the patch are affected. The issue was present before the incorporation of the commits referenced in the advisory and was corrected in the kernel source maintained by the Linux community.

Risk and Exploitability

Without a CVSS or EPSS metric, the vulnerability is not assigned an official severity, and it is not listed in CISA KEV. The flaw merely causes the kernel to return an uninitialized link speed or interpret SPEED_UNKNOWN as a numeric value, which leads to incorrect reporting in userspace tools that query the ksmbd ioctl interface. The likely attack vector is a local user who has permission to issue ioctl commands to the ksmbd module, or a remote SMB client that communicates with the kernel’s SMB server and sends the specific query used to trigger the fault. Because the misreporting does not provide memory control or privilege escalation, the overall risk remains low, but accurate network diagnostics could be impacted.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the ksmbd link speed query fix.
  • If a kernel upgrade is not feasible, manually apply the commit changes to the ksmbd source code, rebuild the kernel, and load the updated module.
  • If ksmbd is not required on the system, disable the module to prevent the potential misreporting of link speeds.
  • Continuously monitor network interface speed outputs and validate against expected values to detect any anomalies.

Generated by OpenCVE AI on December 1, 2026 at 10:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-457
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix link speed query in fsctl_query_iface_info_ioctl() fsctl_query_iface_info_ioctl() used to call netdev->ethtool_ops->get_link_ksettings() directly and never checked the return value. If the callback fails, cmd.base.speed may be left uninitialized. Also, SPEED_UNKNOWN (-1) is treated as a numeric link speed and would be converted into a bogus link speed. Use __ethtool_get_link_ksettings() 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 SPEED_UNKNOWN.
Title ksmbd: fix link speed query in fsctl_query_iface_info_ioctl()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-457

    Use of Uninitialized Variable

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM