ksmbd: fix link speed query in fsctl_query_iface_info_ioctl()
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
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.
| Product | Versions |
|---|---|
| Linux Linux | e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before e3f56d093f9bf009c5e9ae182a02c79942e277f8 Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 6c20b1d858002def541993b07a9eeec500ead66f Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before c31d0b03aeb18569f54d795d6ed4105f3dcbb01d Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before a25c18e9a86980646b1b3a24d6fec881d37d8b7a Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before b8011a3fcdd8b8714b4c5a39c4e275b14d180a77 Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 9acc5061317753d5b7700f2806ad5913963b6733 Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 2bc1d25fc8597fa6cbf6b1ff92653881939a6436 Affected |
| Linux Linux | 5.15 Affectedbefore 5.15 Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/e3f56d093f9bf009c5e9ae182a02c79942e277f8
- https://git.kernel.org/stable/c/6c20b1d858002def541993b07a9eeec500ead66f
- https://git.kernel.org/stable/c/c31d0b03aeb18569f54d795d6ed4105f3dcbb01d
- https://git.kernel.org/stable/c/a25c18e9a86980646b1b3a24d6fec881d37d8b7a
- https://git.kernel.org/stable/c/b8011a3fcdd8b8714b4c5a39c4e275b14d180a77
- https://git.kernel.org/stable/c/9acc5061317753d5b7700f2806ad5913963b6733
- https://git.kernel.org/stable/c/2bc1d25fc8597fa6cbf6b1ff92653881939a6436
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.