networkd-dispatcher missing state 'initialized'

Bug #1971550 reported by halfgaar
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
networkd-dispatcher (Ubuntu)
Fix Released
Critical
Rodrigo Figueiredo Zaiden

Bug Description

Errors in syslog with unclear consequences:

networkd-dispatcher[564]: Traceback (most recent call last):
networkd-dispatcher[564]: File "/usr/bin/networkd-dispatcher", line 430, in _receive_signal
networkd-dispatcher[564]: self.handle_state(iface_name,
networkd-dispatcher[564]: File "/usr/bin/networkd-dispatcher", line 345, in handle_state
networkd-dispatcher[564]: raise UnknownState(administrative_state)
networkd-dispatcher[564]: UnknownState: initialized

Happens during processing the following signal:

Signal: typ=dbus.String('org.freedesktop.network1.Link'), data=dbus.Dictionary({dbus.String('AdministrativeState'): dbus.String('initialized', variant_level=1)}, signature=dbus.Signature('sv')), path=dbus.ObjectPath('/org/freedesktop/network1/link/_32')

I attached a log of all the signals processed during boot.

Ubuntu (AWS AMI): 22.04
networkd-dispatcher: 2.1-2ubuntu0.22.04.1
Kernel: 5.15.0-1005-aws #7-Ubuntu SMP

CVE References

Revision history for this message
halfgaar (wiebe-halfgaar) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :

This is a regression from the security update.

tags: added: regression-update
Changed in networkd-dispatcher (Ubuntu):
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
Julian Andres Klode (juliank) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :

Forwarded the missing manual page entry to https://github.com/systemd/systemd/issues/23262

Changed in networkd-dispatcher (Ubuntu):
assignee: nobody → Rodrigo Figueiredo Zaiden (rodrigo-zaiden)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package networkd-dispatcher - 2.1-2ubuntu0.22.04.2

---------------
networkd-dispatcher (2.1-2ubuntu0.22.04.2) jammy-security; urgency=medium

  * SECURITY REGRESSION: Incomplete security fix (LP: #1971550)
    - debian/patches/CVE-2022-29799-regression.patch: Add initialized state
      in ADMIN_STATES in networkd-dispatcher.

 -- Rodrigo Figueiredo Zaiden <email address hidden> Wed, 04 May 2022 10:29:43 -0300

Changed in networkd-dispatcher (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package networkd-dispatcher - 2.1-2ubuntu0.21.10.2

---------------
networkd-dispatcher (2.1-2ubuntu0.21.10.2) impish-security; urgency=medium

  * SECURITY REGRESSION: Incomplete security fix (LP: #1971550)
    - debian/patches/CVE-2022-29799-regression.patch: Add initialized state
      in ADMIN_STATES in networkd-dispatcher.

 -- Rodrigo Figueiredo Zaiden <email address hidden> Wed, 04 May 2022 10:40:18 -0300

Changed in networkd-dispatcher (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Ryan Friedman (ryanf55) wrote :

How do I get this fix in Ubuntu 22.04?

On the following version, I have this same problem.
ryan@ryan-B650:~$ sudo apt-cache madison networkd-dispatcher
networkd-dispatcher | 2.1-2ubuntu0.22.04.2 | http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
networkd-dispatcher | 2.1-2ubuntu0.22.04.2 | http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
networkd-dispatcher | 2.1-2ubuntu0.22.04.2 | http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
networkd-dispatcher | 2.1-2ubuntu0.22.04.2 | http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
networkd-dispatcher | 2.1-2 | http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
networkd-dispatcher | 2.1-2 | http://us.archive.ubuntu.com/ubuntu jammy/main i386 Packages

Revision history for this message
Steve Langasek (vorlon) wrote :

This bug is reported fixed in version 2.1-2ubuntu0.22.04.2 which is the version shown in your output. If you are experiencing problems with this version please post output showing exactly what you are referring to.

Revision history for this message
Peter Goodall (pjgoodall) wrote (last edit ):

I believe I have this problem currently.

❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy

❯ apt show networkd-dispatcher
Package: networkd-dispatcher
Version: 2.1-2ubuntu0.22.04.2
Priority: important
Section: utils
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Julian Andres Klode <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 70.7 kB
Depends: dbus, gir1.2-glib-2.0, python3-dbus, python3-gi, python3:any
Suggests: iw | wireless-tools
Homepage: https://github.com/craftyguy/networkd-dispatcher
Task: minimal
Download-Size: 15.8 kB
APT-Manual-Installed: no

Feb 21 13:59:47 networkd-dispatcher[3033]: WARNING: systemd-networkd is not running, output will be incomplete.
Feb 21 13:59:47 networkd-dispatcher[2564]: ERROR:Unknown state for interface NetworkctlListState(idx=1, name='lo', type='loopback', operational='n/a', administrative='unmanaged'): n/a
Feb 21 13:59:47 networkd-dispatcher[2564]: Traceback (most recent call last):
Feb 21 13:59:47 networkd-dispatcher[2564]: File "/usr/bin/networkd-dispatcher", line 298, in trigger_all
Feb 21 13:59:47 networkd-dispatcher[2564]: self.handle_state(iface_name,
Feb 21 13:59:47 networkd-dispatcher[2564]: File "/usr/bin/networkd-dispatcher", line 348, in handle_state
Feb 21 13:59:47 networkd-dispatcher[2564]: raise UnknownState(operational_state)
Feb 21 13:59:47 networkd-dispatcher[2564]: UnknownState: n/a
Feb 21 13:59:47 networkd-dispatcher[2564]: ERROR:Unknown state for interface NetworkctlListState(idx=2, name='eno1', type='ether', operational='n/a', administrative='unmanaged'): n/a

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.