Skip to content

Commit b7150e9

Browse files
1 parent a2da6b7 commit b7150e9

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-3g2j-vm47-x4mj",
4+
"modified": "2025-11-13T23:01:44Z",
5+
"published": "2025-11-13T23:01:44Z",
6+
"aliases": [],
7+
"summary": "LXD vulnerable to a local privilege escalation through custom storage volumes",
8+
"details": "**Impact**\n\nThis affects any LXD user in an environment where an unprivileged user may have root access to a container with an attached custom storage volume that has the `security.shifted` property set to `true` as well as access to the host as an unprivileged user.\n\nThe most common case for this would be systems using `lxd-user` with the less privileged lxd group to provide unprivileged users with an isolated restricted access to LXD. Such users may be able to create a custom storage volume with the necessary property (depending on kernel and filesystem support) and can then write a setuid binary from within the container which can be executed as an unprivileged user on the host to gain root privileges.\n\n**Patches**\n\nPatches for this issue are available: \n\n- LXD 6 series: https://github.com/canonical/lxd/pull/16904\n- LXD 5.21 LTS series: https://github.com/canonical/lxd/pull/16922\n- LXD 5.0 LTS series: https://github.com/canonical/lxd/pull/16923\n- LXD 4.0 LTS series: https://github.com/canonical/lxd/pull/16924 \n\nThe first commit changes the permissions for any new storage pool, the later commit adds a patch that applies it on startup to all existing storage pools.\n\nThese fixes are also available in the associated candidate snap channels for each LTS series:\n\n- 5.21/candidate (5.21.4-8a3cf61)\n- 5.0/candidate (5.0.5-5c60378)\n- 4.0/candidate (4.0.10-35a8127)\n\nWe will be preparing intermediate releases to the associated stable snap channels shortly.\n\n**Workarounds**\n\nPermissions can be manually restricted until a patched version of LXD is deployed.\n\nThis is done with:\n\n```\nsudo nsenter --mount=/run/snapd/ns/lxd.mnt -- chmod 0700 /var/snap/lxd/common/lxd/storage-pools/*/{custom*,virtual-machines*,images}\nsudo nsenter --mount=/run/snapd/ns/lxd.mnt -- chmod 0711 /var/snap/lxd/common/lxd/storage-pools/*/{containers*,buckets*}\n```\n\nThose are the same permissions which will be applied by the patched LXD for both new and existing storage pools.\n\n**References**\n\nThis was reported to Incus publicly on Github here: \n\n- https://github.com/lxc/incus/security/advisories/GHSA-56mx-8g9f-5crf\n- https://github.com/lxc/incus/issues/2641",
9+
"severity": [
10+
{
11+
"type": "CVSS_V4",
12+
"score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
13+
}
14+
],
15+
"affected": [
16+
{
17+
"package": {
18+
"ecosystem": "Go",
19+
"name": "lxd"
20+
},
21+
"ranges": [
22+
{
23+
"type": "ECOSYSTEM",
24+
"events": [
25+
{
26+
"introduced": "0"
27+
},
28+
{
29+
"last_affected": "6.18.0"
30+
}
31+
]
32+
}
33+
]
34+
}
35+
],
36+
"references": [
37+
{
38+
"type": "WEB",
39+
"url": "https://github.com/canonical/lxd/security/advisories/GHSA-3g2j-vm47-x4mj"
40+
},
41+
{
42+
"type": "WEB",
43+
"url": "https://github.com/lxc/incus/security/advisories/GHSA-56mx-8g9f-5crf"
44+
},
45+
{
46+
"type": "WEB",
47+
"url": "https://github.com/lxc/incus/issues/2641"
48+
},
49+
{
50+
"type": "WEB",
51+
"url": "https://github.com/canonical/lxd/pull/16904"
52+
},
53+
{
54+
"type": "WEB",
55+
"url": "https://github.com/canonical/lxd/pull/16922"
56+
},
57+
{
58+
"type": "WEB",
59+
"url": "https://github.com/canonical/lxd/pull/16923"
60+
},
61+
{
62+
"type": "WEB",
63+
"url": "https://github.com/canonical/lxd/pull/16924"
64+
},
65+
{
66+
"type": "PACKAGE",
67+
"url": "https://github.com/canonical/lxd"
68+
}
69+
],
70+
"database_specific": {
71+
"cwe_ids": [
72+
"CWE-269"
73+
],
74+
"severity": "HIGH",
75+
"github_reviewed": true,
76+
"github_reviewed_at": "2025-11-13T23:01:44Z",
77+
"nvd_published_at": null
78+
}
79+
}

0 commit comments

Comments
 (0)