CVE-2024-5138

NameCVE-2024-5138
DescriptionThe snapctl component within snapd allows a confined snap to interact with the snapd daemon to take certain privileged actions on behalf of the snap. It was found that snapctl did not properly parse command-line arguments, allowing an unprivileged user to trigger an authorised action on behalf of the snap that would normally require administrator privileges to perform. This could possibly allow an unprivileged user to perform a denial of service or similar.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1072365

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
snapd (PTS)stretch (security)2.21-2+deb9u1fixed
stretch (lts), stretch2.21-2+deb9u3fixed
buster (security), buster, buster (lts)2.37.4-1+deb10u3fixed
bullseye (security), bullseye2.49-1+deb11u2vulnerable
bookworm2.57.6-1vulnerable
trixie, sid2.65.3-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
snapdsourcestretch(not affected)
snapdsourcebuster(not affected)
snapdsource(unstable)2.62-31072365

Notes

[bookworm] - snapd <no-dsa> (Minor issue)
[bullseye] - snapd <no-dsa> (Minor issue)
[buster] - snapd <not-affected> (The vulnerable code was introduced later)
https://bugs.launchpad.net/snapd/+bug/2065077
https://github.com/snapcore/snapd/security/advisories/GHSA-p9v8-q5m4-pf46
https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14
[stretch] - snapd <not-affected> (The vulnerable code was introduced later)

Search for package or bug name: Reporting problems