7.8
CWE
362
Advisory Published
Updated

CVE-2021-44731: Race Condition

First published: Thu Feb 17 2022(Updated: )

A race condition existed in the snapd 2.54.2 snap-confine binary when preparing a private mount namespace for a snap. This could allow a local attacker to gain root privileges by bind-mounting their own contents inside the snap's private mount namespace and causing snap-confine to execute arbitrary code and hence gain privilege escalation. Fixed in snapd versions 2.54.3+18.04, 2.54.3+20.04 and 2.54.3+21.10.1

Credit: security@ubuntu.com security@ubuntu.com

Affected SoftwareAffected VersionHow to fix
Canonical snapd<=2.54.2
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=20.04
Canonical Ubuntu Linux=21.10
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Debian Debian Linux=10.0
Debian Debian Linux=11.0
debian/snapd
2.37.4-1+deb10u1
2.37.4-1+deb10u3
2.49-1+deb11u2
2.57.6-1
2.61.2-2
ubuntu/snapd<2.54.3+18.04
2.54.3+18.04
ubuntu/snapd<2.54.3+20.04
2.54.3+20.04
ubuntu/snapd<2.54.3+21.10.1
2.54.3+21.10.1
ubuntu/snapd<2.54.3+14.04~
2.54.3+14.04~
ubuntu/snapd<2.54.3
2.54.3
ubuntu/snapd<2.54.3+16.04~
2.54.3+16.04~

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is CVE-2021-44731?

    CVE-2021-44731 is a vulnerability that existed in the snapd 2.54.2 snap-confine binary when preparing a private mount namespace for a snap, allowing a local attacker to gain root privileges.

  • How severe is CVE-2021-44731?

    CVE-2021-44731 has a severity score of 7.8 (high).

  • Which software versions are affected by CVE-2021-44731?

    The affected software versions include snapd 2.37.4-1+deb10u1, 2.37.4-1+deb10u3, 2.49-1+deb11u2, 2.57.6-1, and 2.60.2-1 on Debian, as well as snapd 2.54.3+18.04 on Ubuntu 18.04 LTS, snapd 2.54.3+20.04 on Ubuntu 20.04 LTS, snapd 2.54.3+21.10.1 on Ubuntu 21.10, and snapd 2.54.3 (upstream version) on Ubuntu (all versions).

  • How can I fix CVE-2021-44731?

    To fix CVE-2021-44731, update snapd to version 2.54.3+18.04 on Ubuntu 18.04 LTS, 2.54.3+20.04 on Ubuntu 20.04 LTS, 2.54.3+21.10.1 on Ubuntu 21.10, or 2.54.3 (upstream version) on Ubuntu (all versions). For Debian, update to snapd versions 2.37.4-1+deb10u1, 2.37.4-1+deb10u3, 2.49-1+deb11u2, 2.57.6-1, or 2.60.2-1.

  • Where can I find more information about CVE-2021-44731?

    You can find more information about CVE-2021-44731 at the following references: [1] http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html [2] http://seclists.org/fulldisclosure/2022/Dec/4 [3] http://www.openwall.com/lists/oss-security/2022/02/18/2

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203