MOTD CVE warning being shown on already-patched package versions when running apt upgrades

Bug #2072677 reported by Dagmawi Biru
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

OS: Ubuntu 22.04
ubuntu-advantage-tools version: 32.3.1~22.04

Problem:
Running "apt dist-upgrade" shows a MOTD message for a CVE that's already been patched on the host:

--------
➜ ~ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
#
# OpenSSH CVE-2024-6387 fix is available for all affected Ubuntu releases.
# RegreSSHion: Possible RCE Due To A Race Condition In Signal Handling.
# For more details see: https://ubuntu.com/blog/ubuntu-regresshion-security-fix
#
The following packages have been kept back:
--------

Looking into the aptnews.json where this is pulled (Querying https://motd.ubuntu.com/aptnews.json)
we see that there is a selector logic matching versions below 1.8.9p1:
--------

 "begin": "2024-07-03T00:00:00Z",
            "selectors": {
                "codenames": ["jammy"],
                "packages": [
                    ["openssh-server", "<", "1:8.9p1-3ubuntu0.10"]
--------

But this host already satisfies this version:
--------

ii openssh-server 1:8.9p1-3ubuntu0.10
--------

So something seems to be off in the selector comparison logic being used.
This only is shown on "apt dist-upgrade" from what I've seen, but I don't know if this is the only way to trigger this.

Tags: dist-upgrade
Dagmawi Biru (dagbiru)
description: updated
description: updated
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Can you please attach /var/log/ubuntu-advantage.log and the output of "sudo dmesg -T | grep ubuntu_pro"?

Alternatively, run:

  apport-collect 2072677

and that will attach the relevant logs to this bug

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.