• Linux : Oh Snap! More Lemmings (Local Privilege Escalation in snap-confine)

    Home » Forums » Cyber Security Information and Advisories » Code Red – Security/Privacy advisories » Linux : Oh Snap! More Lemmings (Local Privilege Escalation in snap-confine)

    Author
    Topic
    #2427280

    https://www.qualys.com/2022/02/17/cve-2021-44731/oh-snap-more-lemmings.txt

    Summary

    Two minor bugs
    An unexploitable bug
    CVE-2021-44730: Hardlink attack in snap-confine’s sc_open_snapd_tool()
    CVE-2021-44731: Race condition in snap-confine’s setup_private_mount()
    – Case study: Ubuntu Server, near-default installation
    – Case study: Ubuntu Desktop, default installation
    CVE-2021-3996: Unauthorized unmount in util-linux’s libmount
    CVE-2021-3995: Unauthorized unmount in util-linux’s libmount
    CVE-2021-3998: Unexpected return value from glibc’s realpath()
    CVE-2021-3999: Off-by-one buffer overflow/underflow in glibc’s getcwd()
    CVE-2021-3997: Uncontrolled recursion in systemd’s systemd-tmpfiles…

    Viewing 1 reply thread
    Author
    Replies
    • #2427283

      For those who don’t know.
      The bottom line: If you don’t use snap you don’t have to worry.

      Snap is a software packaging and deployment system for Linux. The packages are called snaps

      cheers, Paul

      3 users thanked author for this post.
    • #2427900

      ? says:

      linux is always on the lookout and always fixes problems pronto. my opinion based on years of experience. on the snap problem i always remove snap so i can do manual security updates. terminal recipe:

      journalctl
      snap list
      sudo snap remove snap-store
      sudo snap remove gtk-common-themes
      sudo snap remove gnome-3-34-1804
      sudo snap remove core18
      df
      sudo apt purge snapd -s
      sudo apt purge snapd
      rm -rf ~/snap
      sudo rm -rf /snap
      sudo rm -rf /var/snap
      sudo rm -rf /var/lib/snapd

      tada…

      1 user thanked author for this post.
      • #2434113

        ? says:

        ubuntu 22.04 has a new method for removing the snap snafu:

        df -h -a
        sudo snap list

        remove the loops individually when on live media
        if one or more get stuck use: sudo umount -l /dev/loop(x)

        sudo snap remove snap-store
        sudo apt remove snapd
        sudo umount /dev/loop*  (if on live media remove on at a time to avoid killing loop0)
        sudo rm -rf /snap
        sudo rm -rf /var/snap
        sudo rm -rf /var/lib/snapd
        sudo rm -rf /etc/systemd/system/snap*
        sudo rm -rf /root/snap/ /home/*/snap
        sudo apt purge snapd
        echo -e ‘Package: snapd\nPin: origin *\nPin-Priority: -1’ | sudo tee /etc/apt/preferences.d/no_snapd

        no more snap!

    Viewing 1 reply thread
    Reply To: Linux : Oh Snap! More Lemmings (Local Privilege Escalation in snap-confine)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: