Score:9

Is there a security changelog for Canonical snap packages?

cn flag

Lets take CVE-2021-3448 as an example.

It's easy to see when the deb package got the backported fix, and what package is installed on the server.

But the same package in a snap:

/snap/lxd/21468/bin/dnsmasq --version
Dnsmasq version 2.80 .....
snap list
lxd     4.18      21468  latest/stable/…  canonical✓  -

Do you know if there is a way to see if that CVE is backported to 2.80 in the Canonical lxd snap somewhere?
Perhaps I am missing some really easy way to get this information.

Score:9
cn flag

With the deb update information, you're halfway there.

  1. Since LXD is distributed as a snap, you should always be running the latest version for your channel automatically. In this example, LXD 4.0.7 is in the stable channel, and installed on a 20.04 server:

    $ snap list lxd
    Name  Version  Rev    Tracking      Publisher   Notes
    lxd   4.0.7    21029  4.0/stable/…  canonical✓  -
    
  2. Next, let's head over to https://launchpad.net/lxd/+snaps and find that stable version...

    enter image description here

    ...aha. Here it is: https://launchpad.net/~ubuntu-lxc/+snap/lxd-4.0-candidate . You can see the build date --which is after the CVE (good)-- and a link to the build log for each architecture.

    enter image description here

  3. Let's take a closer look at that build log. This particular snap is built, under the hood, from debs! Let's zero in on the exact deb package used for the build.

    (Wait a second....It's the dnsmasq-base package instead of the dnsmasq package. No dnsmasq package suggests that the CVE may-or-may-not apply after all. However, let's overlook that and keep going for the final step)

  4. Finally, let's look at the Ubuntu Security Team CVE tracker to make sure that the package is properly fixed. Were the LXD snap using dnsmasq instead of dnsmasq-base, you can see that the build used a properly patched version (highlighted).

    • Remember that we're looking for the 18.04 (Bionic) package, since that's what was used to build the Snap.

    enter image description here

cn flag
May you get many upvotes :) 2 thumbs up
cn flag
Marked as a correct answer. A huge thanks for your time!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.