https://bugs.kde.org/show_bug.cgi?id=464245
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #9 from [email protected] --- Additional evidence for the special-value handling issue described in Comment 2, including a `permanent` reproducer and the relevant code path. Observed on the affected system in September 2026: - Fedora Linux 44, KDE Plasma Desktop Edition - plasma-nm 6.7.2-1.fc44 - kf6-networkmanager-qt 6.28.0-1.fc44 - NetworkManager 1.56.1-2.fc44 After setting the following option and reactivating the connection: nmcli connection modify "<profile>" 802-11-wireless.cloned-mac-address permanent the active interface used its permanent hardware MAC, and nmcli reported `permanent`. However, opening the Wi-Fi connection editor showed `00:00:65:00:72:00` in “Cloned MAC address”. This was not the address actually in use. The profile name above is a placeholder. The saved keyfile contained: [wifi] cloned-mac-address=permanent mac-address-randomization=1 NetworkManager's D-Bus GetSettings returned: 'assigned-mac-address': <'permanent'> 'mac-address-randomization': <uint32 1> Thus, the saved configuration, NetworkManager's D-Bus representation and the active interface agreed; the editor displayed an incorrect value. Source inspection found that WifiConnectionWidget::loadConfig() in plasma-nm v6.7.2 and the master source checked for this report reads clonedMacAddress() and formats the result with macAddressAsString(). The save path uses macAddressFromString() and setClonedMacAddress(). In NetworkManagerQt v6.28.0, clonedMacAddress() passes the assigned-MAC string through macAddressFromString(). That helper allocates six bytes and parses colon-separated hexadecimal components without validating the input format. A special keyword therefore goes through an inappropriate binary-MAC conversion. This supports the observed bogus display; the particular displayed bytes should not be considered deterministic. There is also a potential risk of replacing the special value with a literal MAC when saving through this editor. I have NOT tested saving the affected working profile, so actual configuration corruption is not confirmed. Expected behavior: display and preserve special values such as `permanent`, alongside explicit addresses and the unset/default state. MR !617 appears directly relevant and is currently open: https://invent.kde.org/plasma/plasma-nm/-/merge_requests/617 This report supplies an additional observed `permanent` case for consideration when validating that work. Sources: https://github.com/KDE/plasma-nm/blob/v6.7.2/libs/editor/settings/wificonnectionwidget.cpp https://github.com/KDE/networkmanager-qt/blob/v6.28.0/src/settings/wirelesssetting.cpp https://github.com/KDE/networkmanager-qt/blob/v6.28.0/src/utils.cpp -- You are receiving this mail because: You are watching all bug changes.
