aboutsummaryrefslogtreecommitdiffstats
path: root/cve/published/2021/CVE-2021-47177.mbox
blob: 0fdacb24da1b8028ebe2bc43f8a0dacd4c26c5bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
From bippy-b4257b672505 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2021-47177: iommu/vt-d: Fix sysfs leak in alloc_iommu()
Message-Id: <2024032538-CVE-2021-47177-4d4a@gregkh>
Content-Length: 2373
Lines: 56
X-Developer-Signature: v=1; a=openpgp-sha256; l=2430;
 i=gregkh@linuxfoundation.org; h=from:subject:message-id;
 bh=vZTRc1ZZN3fEokeChnJKTIATNPAUTWlbizXU851mnkU=;
 b=owGbwMvMwCRo6H6F97bub03G02pJDGmMDt90THZM+hPJsZpNxPz041tfXNmsGxt3W4iLv9u2x
 2l6kXpURywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkxwuG+W7vr2atvDR1+43j
 dq+XiLJNbGvZuohhwbY1pq6exkzJGQm7Mkxi+Iu8/WRjAQ==
X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp;
 fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

iommu/vt-d: Fix sysfs leak in alloc_iommu()

iommu_device_sysfs_add() is called before, so is has to be cleaned on subsequent
errors.

The Linux kernel CVE team has assigned CVE-2021-47177 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 4.11 with commit 39ab9555c2411 and fixed in 4.14.235 with commit 22da9f497838
	Issue introduced in 4.11 with commit 39ab9555c2411 and fixed in 4.19.193 with commit 2ec5e9bb6b05
	Issue introduced in 4.11 with commit 39ab9555c2411 and fixed in 5.4.124 with commit 044bbe8b92ab
	Issue introduced in 4.11 with commit 39ab9555c2411 and fixed in 5.10.42 with commit f01134321d04
	Issue introduced in 4.11 with commit 39ab9555c2411 and fixed in 5.12.9 with commit ca466561eef3
	Issue introduced in 4.11 with commit 39ab9555c2411 and fixed in 5.13 with commit 0ee74d5a4863

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2021-47177
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	drivers/iommu/intel/dmar.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/22da9f4978381a99f1abaeaf6c9b83be6ab5ddd8
	https://git.kernel.org/stable/c/2ec5e9bb6b0560c90d315559c28a99723c80b996
	https://git.kernel.org/stable/c/044bbe8b92ab4e542de7f6c93c88ea65cccd8e29
	https://git.kernel.org/stable/c/f01134321d04f47c718bb41b799bcdeda27873d2
	https://git.kernel.org/stable/c/ca466561eef36d1ec657673e3944eb6340bddb5b
	https://git.kernel.org/stable/c/0ee74d5a48635c848c20f152d0d488bf84641304