Affected versions: Fedora 42

📖 ~4 min read  •  Source: Fedora update FEDORA-2026-49dc95b509

Related CVEs: CVE-2026-46529

Upstream summary: Fix command injection CVE-2026-46529

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

Exploitation of evince is user-driven: the danger arrives when someone opens a hostile page, message or attachment, so exposure sits on each Fedora 42 workstation rather than on any serving path. Desktop sessions run for weeks, and the package manager only replaces files on disk — a evince process started before the update keeps the old code mapped until the user quits and relaunches it. Consequences are local: theft of saved credentials and session cookies, access to the user’s profile data under $HOME, and code execution as the logged-in account. evince is a graphical application launched by a user from their desktop session, not a system service: there is no unit to restart, and systemctl or journalctl will report nothing for it.

Environment & Reproduction

Reproduction targets Fedora 42. Confirm release and the installed package:

cat /etc/fedora-release
cat /etc/os-release
rpm -q evince
dnf info evince | head -20
# Fedora 41+ ships dnf5 by default:
dnf5 info evince | head -20

Exercise the workload that uses evince while collecting:

sudo journalctl -xe --no-pager | tail -200
sudo tail -200 /var/log/dnf.log
sudo tail -200 /var/log/dnf5.log
sudo tail -200 /var/log/audit/audit.log
# For an evidence bundle with sosreport:
sudo sosreport --batch

Root Cause Analysis

Root cause is documented in Fedora update FEDORA-2026-49dc95b509. Fedora packagers shipped fixes in the corresponding evince update for Fedora 42; running an outdated build leaves the host exposed to the failure modes described in the advisory. Correlate dnf history with system logs:

sudo dnf history | head
sudo dnf history list evince
sudo dnf history info <id>
sudo dnf5 history list                       # Fedora 41+
sudo ausearch -m AVC,USER_AVC -ts today | tail -100
cat /proc/sys/kernel/tainted   # non-zero = tainted kernel / out-of-tree modules

Quick Triage

Run these on Fedora 42 to capture the current state of evince:

rpm -q evince                              # installed NVR
rpm -V evince                              # verify shipped files
sudo dnf check-update --security
sudo dnf updateinfo list cves
sudo dnf5 check-upgrade --security        # Fedora 41+
systemctl --failed --no-pager
sudo firewall-cmd --list-all
getenforce && sestatus
dnf repoquery -l evince 2>/dev/null | grep -E '/lib/systemd/system/.*\.(service|socket|timer)$'  # same check WITHOUT installing (EL7/Amazon Linux 2: yum install yum-utils, then: repoquery -l evince)
systemctl show --no-pager -p Type,RemainAfterExit <UNIT>  # Type=oneshot (often paired with a .timer) means a one-shot job, NOT a daemon -- do not 'restart' it, let the timer fire

Step-by-Step Diagnosis

  1. List failed systemd units.

    systemctl --failed --no-pager
  2. Tail the journal for evince and the system bus.

    sudo journalctl -xe -f --no-pager
  3. Inspect firewall posture.

    sudo firewall-cmd --list-all-zones --permanent
    sudo nft list ruleset 2>/dev/null | head -50
  4. Surface SELinux denials and author a local policy module if needed.

    sudo ausearch -m AVC,USER_AVC -ts today
    sudo ausearch -m AVC -ts today | audit2allow -a -M /tmp/local-fix
    sudo semodule -i /tmp/local-fix.pp
  5. Verify evince integrity and reinstall if anything is altered.

    sudo rpm -V evince
    sudo dnf reinstall evince
    sudo dnf5 reinstall evince                 # Fedora 41+
  6. Correlate findings with /var/log/dnf.log, dnf history, and Fedora update FEDORA-2026-49dc95b509 to pin the change that introduced the regression.

Solution – Primary Fix

Before changing system packages on a btrfs-rooted Fedora 42 host take a cheap snapshot so a bad upgrade can be rolled back in seconds:

sudo btrfs subvolume snapshot / /.snapshots/pre-upgrade-$(date +%s)
sudo btrfs subvolume list / | tail

Apply the corrective dnf transaction referenced by Fedora update FEDORA-2026-49dc95b509, then reload affected systemd units:

sudo dnf -y makecache
sudo dnf -y upgrade --security              # apply ALL security errata (recommended)
# Fedora 41+ ships dnf5 by default — equivalent commands:
sudo dnf5 upgrade --refresh
sudo dnf5 upgrade-minimal --security
# Or target a single package:
sudo dnf -y upgrade evince
sudo dnf5 upgrade evince                     # Fedora 41+
# Unit name may differ from pkg name; check first:
rpm -q evince                                # confirm new NVR

For kernel / glibc / systemd / openssl advisories a reboot is required (or kpatch where licensed):

sudo dnf needs-restarting -r                 # report whether reboot needed
sudo systemctl reboot                        # or: sudo shutdown -r now
# kpatch (where licensed) avoids reboot for many kernel CVEs:
sudo dnf install -y kpatch kpatch-dnf
sudo dnf kpatch auto                         # enable auto-patching
sudo kpatch list

Need help rolling this patch across a Fedora fleet? Our IT Solutions & Services team manages Fedora and CentOS Stream lifecycle with bodhi automation plus dnf-automatic. Get in touch for a free consultation.

Solution – Alternative Approaches

If the primary patch is not viable, choose from these:

  • Roll back the offending dnf transaction:

    sudo dnf history list | head
    sudo dnf history info <id>
    sudo dnf history undo <id>
    sudo dnf5 history undo <id>                  # Fedora 41+
  • Version-lock the package so dnf cannot upgrade it:

    sudo dnf install -y python3-dnf-plugin-versionlock
    sudo dnf versionlock add evince
    sudo dnf versionlock list
    sudo dnf versionlock delete evince      # remove the lock
  • Install an older NVR if a regression is suspected:

    dnf --showduplicates list evince | tac | head
    sudo dnf install -y --allowerasing evince-<older-NVR>
  • Switch SELinux to permissive briefly to confirm policy is the cause, then re-enforce:

    sudo setenforce 0
    # reproduce, capture denials, author a custom module:
    sudo ausearch -m AVC -ts recent | audit2allow -a -M mylocal
    sudo semodule -i mylocal.pp
    sudo setenforce 1
  • Roll back via a btrfs snapshot taken before the upgrade (Fedora default root filesystem):

    sudo btrfs subvolume list /
    # boot a rescue / live image, then promote the snapshot to /:
    sudo btrfs subvolume snapshot /.snapshots/pre-upgrade-<ts> /root-restored
    # update /etc/fstab and the bootloader to point at the restored subvolume.
  • Where kpatch is available, apply kernel fixes without reboot:

    sudo kpatch list
    sudo kpatch load /usr/lib/modules/$(uname -r)/extra/kpatch/*.ko

Verification & Acceptance Criteria

All of these should pass after the fix:

rpm -q evince                                            # expected fixed NVR
sudo dnf updateinfo list cves --installed               # CVEs above no longer listed
sudo firewall-cmd --list-services
getenforce
sudo dnf needs-restarting -r

The conditions described in the advisory must no longer be reported for evince across two consecutive runs.

Rollback Plan

Capture state before any change:

rpm -qa > /root/rpm-pre.txt
sudo dnf history list > /root/dnf-history-pre.txt
# Cheap btrfs snapshot of the root subvolume:
sudo btrfs subvolume snapshot / /.snapshots/pre-upgrade-$(date +%s)

To revert if the patch is bad:

sudo dnf history undo <id>
sudo dnf5 history undo <id>                  # Fedora 41+
# Or downgrade just the package:
sudo dnf install -y --allowerasing evince-<older-NVR>
# Or boot rescue and promote the btrfs snapshot back to /.
# Custom SELinux policy cleanup:
sudo semodule -r mylocal

Prevention & Hardening

Reduce the chance of this recurring on Fedora 42:

  • Enable automatic security patching with dnf-automatic:

    sudo dnf install -y dnf-automatic
    sudo sed -i 's/^upgrade_type.*/upgrade_type = security/' /etc/dnf/automatic.conf
    sudo sed -i 's/^apply_updates.*/apply_updates = yes/' /etc/dnf/automatic.conf
    sudo systemctl enable --now dnf-automatic.timer
    sudo systemctl enable --now dnf-automatic-install.timer
    dnf updateinfo list cves --available
  • Subscribe to fedora-announce and watch the Bodhi security updates feed for upstream changes.

  • Mirror through a local repo for controlled rollouts:

    sudo dnf install -y dnf-utils createrepo_c
    sudo reposync --download-metadata --downloadcomps -p /srv/mirror --repoid=fedora
    sudo createrepo_c /srv/mirror/fedora
  • Version-lock sensitive packages so they cannot be auto-upgraded:

    sudo dnf install -y python3-dnf-plugin-versionlock
    sudo dnf versionlock add evince
  • Monitor file integrity with AIDE:

    sudo dnf install -y aide
    sudo aide --init && sudo mv /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
    sudo aide --check
  • Enable kpatch (where available) so kernel CVEs can be remediated without reboot:

    sudo dnf install -y kpatch kpatch-dnf
    sudo dnf kpatch auto
    sudo kpatch list
  • Keep SELinux in enforcing mode and review custom modules in /etc/selinux/targeted/ after every package upgrade.

  • Apply CIS Fedora 42 Benchmark hardening and remove unused packages.

Issues that commonly surface alongside a evince update: dnf lock contention, systemd unit ordering cycles, SELinux AVC bursts, firewalld zone drift, and kernel taint flags. Useful triage:

sudo dnf check
systemd-analyze critical-chain
sudo ausearch -m AVC -ts today | tail
sudo firewall-cmd --get-active-zones
cat /proc/sys/kernel/tainted
sudo dnf needs-restarting -r

View all fedora-42 tutorials on the Tutorials Hub →

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Primary reference: Fedora update FEDORA-2026-49dc95b509. Manual pages useful on Fedora 42:

man dnf
man dnf5
man dnf.conf
man systemctl
man journalctl
man firewall-cmd
man semanage
man audit2allow
man kpatch
man sosreport
man btrfs

Other resources: docs.fedoraproject.org, Bodhi update system, Red Hat CVE database, and per-package notes in /usr/share/doc/evince/ for components implicated in this advisory.


View all Fedora 42 tutorials on the Tutorials Hub →