bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-4948

5.5medium

firewalld2.3.1in 3 of 4 releases

Reach firewalld · 6 builds in 3 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

A flaw was found in firewalld. A local unprivileged user can exploit this vulnerability by mis-authorizing two runtime D-Bus (Desktop Bus) setters, setZoneSettings2 and setPolicySettings. This mis-authorization allows the user to modify the runtime firewall state without proper authentication, leading to unauthorized changes in network security configurations.

Published 2026-03-27NVD

CVSS 3.1Local · low privileges · no user interaction

How it is reached

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None

What it costs

Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

References 7
Review Av26.10.0x86_64Not affected✓ accepted by a member, 2026-11-18 · settles 6 of 6

Fable 5.1 · high confidence · 2026-11-05

The mis-authorized decorators described by the CVE are present verbatim in this tree (setZoneSettings2 and setPolicySettings are gated by PK_ACTION_CONFIG_INFO instead of PK_ACTION_CONFIG, and none of the three Infix patches touch them).

However the flaw only has effect when polkit evaluates the (wrong) action ID, and polkit is not built into this image (# BR2_PACKAGE_POLKIT is not set, no polkit D-Bus service or library on target). In that case firewalld's dbus_polkit_require_auth decorator takes its fallback branch, which ignores the action ID entirely and rejects every sender whose UID is not 0, so an unprivileged local user cannot call these setters.

Additionally firewalld only runs when the operator enables the infix-firewall firewall presence container, D-Bus listens only on a local unix socket, and the factory image has no unprivileged interactive accounts, so the CVE's precondition is not met on a shipped device either way.

Evidence 9
  1. setZoneSettings2 and setPolicySettings are decorated with dbus_polkit_require_auth(config.dbus.PK_ACTION_CONFIG_INFO) - the vulnerable (unfixed) code from the CVE is present; other setters (e.g. line 1121) use PK_ACTION_CONFIG

    output/build/firewalld-2.3.1/src/firewall/server/firewalld.py:941-944 and :968-971

  2. Only three Infix patches apply (fw.py warning silencing, functions.py iptables name length, functions.py ip_forward); none touch src/firewall/server/ or the polkit action IDs, so no backport of the fix is present

    output/build/firewalld-2.3.1/.applied_patches_list; patches/firewalld/2.3.1/000[1-3]*.patch

  3. polkit is not built or installed in the target image, so org.freedesktop.PolicyKit1 is never available on the system bus

    output/.config:3773 (# BR2_PACKAGE_POLKIT is not set); output/target/usr/share/dbus-1/system-services/ (empty); no output/target/usr/lib/polkit-1 or libpolkit*

  4. dbus_polkit_require_auth only passes action_id to polkit CheckAuthorization when a polkit proxy exists; otherwise (lines 244-249) it resolves the sender UID and raises NotAuthorizedException for any uid != 0, independent of action_id. The mis-authorization therefore has no effect without polkit

    output/build/firewalld-2.3.1/src/firewall/server/decorators.py:214-249

  5. Bus policy allows any local user to send to org.fedoraproject.FirewallD1, so authorization relies entirely on the decorator - which, in this build, is the root-only UID fallback

    output/target/usr/share/dbus-1/system.d/FirewallD.conf (policy context=default)

  6. D-Bus system bus is present but uses EXTERNAL (socket-credential) auth and listens only on unix:path=/run/dbus/system_bus_socket - local only, not network reachable

    output/.config:1226 (BR2_PACKAGE_DBUS=y); output/target/usr/share/dbus-1/system.conf:36,42

  7. firewalld is not started in the factory-default configuration

    board/common/rootfs/etc/finit.d/available/firewalld.conf vs finit.d/enabled/ (mstpd, netconf, rauc only)

  8. firewalld is enabled via finit_enable("firewalld") only when the operator creates the infix-firewall `container firewall` presence node (with leaf enabled) through NETCONF/RESTCONF/CLI

    src/confd/src/firewall.c:755,781-782; src/confd/yang/confd/infix-firewall@2026-07-02.yang:136-140

  9. Only root has a login shell in the factory image; no unprivileged interactive local user exists by default, so the CVE's 'local unprivileged user' precondition is absent unless an operator adds accounts

    output/target/etc/passwd

Version and patches

NVD/Red Hat list firewalld 2.3.1 as affected and the unfixed decorators are indeed present in output/build/firewalld-2.3.1 (no stable backport; the three Infix patches do not address it). The exact upstream fixed release could not be verified from this tree (no network access); the fix is the one-line change of the polkit action on the two setters to PK_ACTION_CONFIG. The vulnerable feature (polkit action evaluation) is not compiled/installed in this build (BR2_PACKAGE_POLKIT unset), which is what makes the build not affected.

Recommendation

Document as N/A for v26.10.0: without polkit the authorization decorator is root-only regardless of action ID. Pick up the upstream fix (or carry the trivial two-line patch to src/firewall/server/firewalld.py) at the next firewalld bump as hygiene, and re-evaluate immediately if polkit (BR2_PACKAGE_POLKIT) is ever added to the image, since that would make the mis-authorization effective for any local non-root account an operator creates.

Open questions

Exact upstream fixed version number was not verifiable offline. The analysis assumes the runtime image matches output/target (polkit absent); if a separate overlay adds polkit at image-assembly time this verdict would change to USED_WHEN_ENABLED (firewall enabled via infix-firewall YANG firewall container, plus an operator-created non-root local account).

Members of Kernel Kit decide. Sign in if you are one.