Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-29341

dnf update --security is incorrectly updating nss_db and glibc.

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • rhel-8.9.0
    • dnf-plugins-core
    • None
    • None
    • Low
    • 1
    • rhel-sst-cs-software-management
    • ssg_core_services
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • DNF Sprint 3
    • None
    • None
    • None

      Issue:

      `yum update --security` is updating nss_db (and glibc as a dependency) when no security errata is available.

      Steps to reproduce

      1. podman run -it ubi8:latest
      2. yum install glibc-2.28-236.el8.7.x86_64 glibc-2.28-236.el8.7.i686 libnsl-2.28-236.el8.7.x86_64 nscd-2.28-236.el8.7.x86_64 nss_db-2.28-236.el8.7.i686 nss_db-2.28-236.el8.7.x86_64
      3. yum update --security nss_db

      Expected results

      No security updates needed for "nss_db", but 1 update available
      Dependencies resolved.
      Nothing to do.
      Complete!

      Actual results

       

      [root@ubi8 /]$yum update --security nss_db
      Updating Subscription Management repositories.
      Unable to read consumer identity
      subscription-manager is operating in container mode.
      Last metadata expiration check: 0:09:38 ago on Fri Mar 15 17:42:30 2024.
      Dependencies resolved.
      ==============================================================================================================================
       Package                          Architecture     Version                      Repository                               Size
      ==============================================================================================================================
      Upgrading:
       glibc                            i686             2.28-236.el8_9.12            rhel-8-for-x86_64-baseos-rpms           2.0 M
       glibc                            x86_64           2.28-236.el8_9.12            rhel-8-for-x86_64-baseos-rpms           2.2 M
       glibc-common                     x86_64           2.28-236.el8_9.12            rhel-8-for-x86_64-baseos-rpms           1.0 M
       glibc-gconv-extra                i686             2.28-236.el8_9.12            rhel-8-for-x86_64-baseos-rpms           1.6 M
       glibc-gconv-extra                x86_64           2.28-236.el8_9.12            rhel-8-for-x86_64-baseos-rpms           1.6 M
       glibc-langpack-en                x86_64           2.28-236.el8_9.12            rhel-8-for-x86_64-baseos-rpms           829 k
       glibc-minimal-langpack           x86_64           2.28-236.el8_9.12            rhel-8-for-x86_64-baseos-rpms            68 k
       libnsl                           x86_64           2.28-236.el8_9.12            rhel-8-for-x86_64-baseos-rpms           108 k
       nscd                             x86_64           2.28-236.el8_9.12            rhel-8-for-x86_64-baseos-rpms           137 k
       nss_db                           i686             2.28-236.el8_9.12            rhel-8-for-x86_64-baseos-rpms            80 k
       nss_db                           x86_64           2.28-236.el8_9.12            rhel-8-for-x86_64-baseos-rpms            81 kTransaction Summary
      ==============================================================================================================================
      Upgrade  11 PackagesTotal download size: 9.6 M
      Is this ok [y/N]: 

       

       

      Additional Info

      No security updates are avaiable for later versions of nss_db or this version.

       

      Looking at the updateinfo.xml, there is only an RHBA for this package available. 

       

      $rpm -q nss_db
      nss_db-2.28-236.el8.7.i686
      nss_db-2.28-236.el8.7.x86_64
       
      [root@ubi8 /]$zcat /var/cache/dnf/rhel-8-for-x86_64-baseos-rpms-51b3b78d5698246b/repodata/*updateinfo* | egrep 'RHSA|RHBA|nss_db' | grep nss_db.*236 -B3
            <reference href="https://access.redhat.com/errata/RHBA-2022:7734" type="self" id="RHBA-2022:7734" title="RHBA-2022:7734" />
          <id>RHBA-2023:7107</id>
            <reference href="https://access.redhat.com/errata/RHBA-2023:7107" type="self" id="RHBA-2023:7107" title="RHBA-2023:7107" />
              <package src="glibc-2.28-236.el8.7.src.rpm" name="nss_db" epoch="0" version="2.28" release="236.el8.7" arch="i686">
                <filename>nss_db-2.28-236.el8.7.i686.rpm</filename>
              <package src="glibc-2.28-236.el8.7.src.rpm" name="nss_db" epoch="0" version="2.28" release="236.el8.7" arch="x86_64">
                <filename>nss_db-2.28-236.el8.7.x86_64.rpm</filename>
      --
            <reference href="https://access.redhat.com/errata/RHBA-2022:7728" type="self" id="RHBA-2022:7728" title="RHBA-2022:7728" />
          <id>RHBA-2024:0902</id>
            <reference href="https://access.redhat.com/errata/RHBA-2024:0902" type="self" id="RHBA-2024:0902" title="RHBA-2024:0902" />
              <package src="glibc-2.28-236.el8_9.12.src.rpm" name="nss_db" epoch="0" version="2.28" release="236.el8_9.12" arch="x86_64">
                <filename>nss_db-2.28-236.el8_9.12.x86_64.rpm</filename>
              <package src="glibc-2.28-236.el8_9.12.src.rpm" name="nss_db" epoch="0" version="2.28" release="236.el8_9.12" arch="i686">
                <filename>nss_db-2.28-236.el8_9.12.i686.rpm</filename>
      

       

        1. debugdata.tar.bz2
          109.32 MB
          John Castranio

              jmracek@redhat.com Jaroslav Mracek
              rhn-support-jcastran John Castranio
              packaging-team-maint packaging-team-maint
              Software Management QE Software Management QE
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: