apparmor: fix reference count leak in aa_pivotroot()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2ea3ffb7782a84da33a8382f13ebd016da50079b · < 3ca40ad7afae144169a43988ef1a3f16182faf0a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
apparmor: fix reference count leak in aa_pivotroot()
The aa_pivotroot() function has a reference counting bug in a specific path. When aa_replace_current_label() returns on success, the function forgets to decrement the reference count of “target”, which is increased earlier by build_pivotroot(), causing a reference leak.
Fix it by decreasing the refcount of “target” in that path.
From the CVE record · Linux
The Linux kernel’s AppArmor aa_pivotroot() function leaks a reference to “target” when aa_replace_current_label() succeeds. The input does not specify how an attacker could trigger this path, what they could accomplish, or whether access or user interaction is required.
Engineers running Linux kernels with AppArmor should check their versions against the vendor advisory; affected versions are not specified here.