Public bug reported:
buntu 24.04.2 LTS, network-manager and libnm0 1.46.0-1ubuntu2.9 (from
noble-security), kernel 6.8.0-71-generic.
Impact
On 2026-11-27 unattended-upgrades installed network-manager
1.46.0-1ubuntu2.9 and the package upgrade restarted NetworkManager. On
16 of the 62 servers with the setup below, the bridge came back with no
IPv4 address and no DHCP server, and stayed that way until we
reactivated its profile by hand three to four days later. Every device
behind those bridges lost its network for that time. An automatic
security update taking servers off their network is critical for us.
The same thing happened to 17 of these servers in October 2026 after a
`systemctl restart NetworkManager` (together with a systemd-resolved
restart) on 1.46.0-1ubuntu2.2 to 2.4. So the trigger is the restart, not
a change in 2.9.
Setup (profiles stored by the netplan backend)
- br-dev: type bridge, ipv4.method shared, ipv4.addresses 10.42.1.1/24,
bridge.stp no, autoconnect yes
- br-dev0, br-dev1: type ethernet on ethdev0 and ethdev1, master br-dev,
slave-type bridge, autoconnect yes
- One device is cabled to ethdev1 and takes its address from NetworkManager's
dnsmasq on br-dev.
On a failing host (journal-host-a-failing.txt)
1. On SIGTERM the old NetworkManager logs `device (br-dev): bridge port ethdev1
was detached`, then deactivates br-dev (`activated -> deactivating (reason
'unmanaged')`), and its dnsmasq exits. ethdev1 stays enslaved to br-dev in the
kernel.
2. The new NetworkManager sees br-dev with carrier (`device (br-dev): carrier:
link connected`), assumes it as an external device (`unavailable ->
disconnected (reason 'connection-assumed', sys-iface-state: 'external')`) and
activates a generated in-memory connection named br-dev, with ipv4.method
disabled, instead of the persistent profile.
3. The persistent shared profile is never activated, so br-dev has no IPv4
address and no dnsmasq.
On a working host after the same upgrade (journal-host-b-working.txt)
1. The old NetworkManager deactivates br-dev first and then logs `detached
bridge port ethdev0` and `detached bridge port ethdev1`, so the bridge is left
without ports.
2. The new NetworkManager logs `policy: auto-activating connection 'br-dev'`,
and the shared profile comes back with its address and dnsmasq.
Whether a restart breaks the network therefore depends on whether the
exiting instance detached the bridge ports in the kernel.
Expected
After a restart, NetworkManager activates the persistent shared profile
for br-dev again (address and dnsmasq), or prefers the persistent
profile over a generated external connection.
Workaround
`nmcli connection up uuid <br-dev profile>`, then the port profiles. We
now hold network-manager so that unattended-upgrades cannot restart it.
Attachments: journal-host-a-failing.txt, journal-host-b-working.txt,
host-a-versions-and-profiles.txt
** Affects: network-manager (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "journal.zip"
https://bugs.launchpad.net/bugs/2178410/+attachment/6022191/+files/journal.zip
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2178410
Title:
NetworkManager restart (e.g. by an unattended security upgrade) leaves
a shared-mode bridge assumed as external, with no IPv4 address and no
dnsmasq
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2178410/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs